testHReconstruction.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <string>
3 
4 using namespace std;
5 
6 #include "testlib.h"
7 #include "cmpEvent.h"
8 #include <adst/RecEventFile.h>
9 
10 void run(const std::string& refFile, const std::string& testFile);
11 
12 int
13 main(int argc, char *argv[])
14 {
15  string dir("HReconstruction/");
16  string refFile = dir + string("ADST.ref.root");
17  string testFile = dir + string("ADST.root");
18  if (argc < 3)
19  run(refFile, testFile);
20  else
21  run(string(argv[1]), string(argv[2]));
22 
23  return 0;
24 }
25 
26 void
27 run(const std::string& refFile, const std::string& testFile)
28 {
29 
30  plan(0);
31  fexists(refFile);
32  fexists(testFile);
33 
34  RecEventFile refRFile(refFile.c_str(), RecEventFile::eRead);
35  RecEventFile testRFile(testFile.c_str(), RecEventFile::eRead);
36  cmpRecEventFile(refRFile, testRFile);
37 }
38 
bool fexists(const std::string &filename)
Definition: testlib.cc:393
int main(int argc, char *argv[])
Definition: DBSync.cc:58
fwk::VModule::ResultFlag(fwk::VModule::* run)(evt::Event &)
Definition: fwkPython.cc:59
void cmpRecEventFile(RecEventFile &refFile, RecEventFile &testFile)
Definition: cmpEvent.cc:28
void plan(int n)
Definition: testlib.cc:41

, generated on Tue Sep 26 2023.