9 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
17 std::cout <<
"LinkFile: " << linkFile.Data() << std::endl;
19 gSystem->Load(
"libMCMatch");
30 FairRunAna *
fRun=
new FairRunAna();
32 fRun->SetInputFile(linkFile);
34 fRun->SetOutputFile(outFile);
40 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
42 FairParRootFileIo*
parInput1 =
new FairParRootFileIo(kTRUE);
43 parInput1->open(parFile.Data(),
"UPDATE");
47 rtdb->setFirstInput(parInput1);
51 rtdb->setOutput(parInput1);
66 PndMCMatchLoaderTask*
mcMatch =
new PndMCMatchLoaderTask();
67 fRun->AddTask(mcMatch);
69 PndMCMatchSelectorTask*
mcSelector =
new PndMCMatchSelectorTask(31,1);
70 mcSelector->SetAllWeights(1.);
71 fRun->AddTask(mcSelector);
73 PndMCMatchSelectorTask*
mcSelector2 =
new PndMCMatchSelectorTask(32,1);
74 mcSelector2->SetAllWeights(1.);
75 fRun->AddTask(mcSelector2);
79 fRun->Run(startEvent,stopEvent);
90 cout <<
"Macro finished succesfully." << endl;
91 cout <<
"Output file is " << outFile << endl;
92 cout <<
"Parameter file is " << parFile << endl;
93 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
PndMCMatchCreatorTask * mcMatch
PndMCMatchSelectorTask * mcSelector
FairParRootFileIo * parInput1
PndMCMatchSelectorTask * mcSelector2