9 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
19 std::cout <<
"MCFile : " << MCFile.Data()<< std::endl;
20 std::cout <<
"DigiFile: " << DigiFile.Data()<< std::endl;
21 std::cout <<
"RecoFile: " << RecoFile.Data()<< std::endl;
24 gSystem->Load(
"libMCMatch");
25 gSystem->Load(
"libMCMatchExamples");
36 FairRunAna *
fRun=
new FairRunAna();
38 fRun->SetInputFile(MCFile);
39 fRun->AddFriend(DigiFile);
40 fRun->AddFriend(RecoFile);
44 fRun->SetOutputFile(outFile);
50 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
52 FairParRootFileIo*
parInput1 =
new FairParRootFileIo(kTRUE);
53 parInput1->open(parFile.Data(),
"UPDATE");
55 rtdb->setFirstInput(parInput1);
57 rtdb->setOutput(parInput1);
72 PndMCMatchCreatorTask*
mcMatch =
new PndMCMatchCreatorTask();
73 fRun->AddTask(mcMatch);
78 PndMCTestHitCompare*
hitmatch =
new PndMCTestHitCompare();
79 fRun->AddTask(hitmatch);
92 cout <<
"Macro finished succesfully." << endl;
93 cout <<
"Output file is " << outFile << endl;
94 cout <<
"Parameter file is " << parFile << endl;
95 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
PndMCMatchCreatorTask * mcMatch
PndMCTestHitCompare * hitmatch
FairParRootFileIo * parInput1