16 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
19 TString inFile=
"$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/digiMVD/Combined.raw.root";
22 TString mcFile=
"$SIMPATH/pandaroot/macro/data/MvdTpc_D+D-_2Disks/Combined.mc.root";
26 inFile.ReplaceAll(
"$SIMPATH",SIMPATH);
27 mcFile.ReplaceAll(
"$SIMPATH",SIMPATH);
34 if(gSystem->Exec(cmd)){
35 std::cout<<
"Could not create Job-Directory "<<jobDir
36 <<
". Aborting."<<std::endl;
41 outFile.ReplaceAll(inDir,jobDir);
42 outFile.ReplaceAll(
".raw.root",
".reco.root");
45 paramIn.ReplaceAll(
".raw.root",
".param.root");
47 paramOut.ReplaceAll(
".reco.root",
".param.root");
58 std::cout<<
"Input: "<<inFile<<std::endl;
59 std::cout<<
"Output: "<<outFile<<std::endl;
60 std::cout<<
"MCFile: "<<mcFile<<std::endl;
61 std::cout<<
"ParamIn: "<<paramIn<<std::endl;
62 std::cout<<
"ParamOut: "<<paramOut<<std::endl;
82 FairRunAna *
fRun=
new FairRunAna();
84 fRun->SetInputFile(inFile);
85 fRun->AddFriend(mcFile);
87 fRun->SetOutputFile(outFile);
93 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
95 FairParRootFileIo*
parInput1 =
new FairParRootFileIo(kTRUE);
96 parInput1->open(paramIn.Data(),
"UPDATE");
100 rtdb->setFirstInput(parInput1);
119 mvdmccls->SetVerbose(iVerbose);
120 fRun->AddTask(mvdmccls);
124 mvdClusterizer->SetVerbose(iVerbose);
125 fRun->AddTask(mvdClusterizer);
127 FairParRootFileIo*
output=
new FairParRootFileIo(kTRUE);
128 output->open(paramOut.Data());
129 rtdb->setOutput(output);
139 fRun->Run(0,nEvents);
147 cout << endl << endl;
148 cout <<
"Macro finished succesfully." << endl;
149 cout <<
"Output file is " << outFile << endl;
150 cout <<
"Parameter file is " << paramOut << endl;
151 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
PndMvdPixelClusterTask * mvdClusterizer
FairParRootFileIo * parInput1
PndMvdStripClusterTask * mvdmccls
FairParRootFileIo * output