testBookFromAIDA.cc

Go to the documentation of this file.
00001 #include "Rivet/Rivet.hh"
00002 #include "Rivet/RivetAIDA.hh"
00003 
00004 using namespace Rivet;
00005 
00006 int main(int argc, char* argv[]) {
00007   string paper = "HepEx0112029";
00008   if (argc > 1) paper = argv[1];
00009 
00010   cout << "Path to data file: " << getDataPath(paper) << endl;
00011   const map<string, BinEdges> datasets = getBinEdges(paper);
00012 
00013   // Print out the edges
00014   for (map<string, BinEdges>::const_iterator d = datasets.begin(); d != datasets.end(); ++d) {
00015     cout << "Dataset " << d->first << ": ";
00016     cout << "[";
00017     for (vector<double>::const_iterator e = d->second.begin(); e != d->second.end(); ++e) {
00018       cout << *e << " ";
00019     }
00020     cout << "]" << endl;
00021   }
00022 
00023   return EXIT_SUCCESS;
00024 }