23 FairRunAna *
fRun=
new FairRunAna();
24 fRun->SetInputFile(
infile);
25 fRun->AddFriend(
"digi_complete.root");
26 fRun->AddFriend(
"sim_complete.root");
27 fRun->SetOutputFile(outFile);
28 fRun->SetGenerateRunInfo(kFALSE);
29 FairGeane *
Geane =
new FairGeane();
34 emcDigiFile +=
"/macro/params/";
37 FairRuntimeDb*
rtdb = fRun->GetRuntimeDb();
38 FairParRootFileIo*
parInput1 =
new FairParRootFileIo();
39 parInput1->open(parFile.Data());
41 FairParAsciiFileIo*
parIo1 =
new FairParAsciiFileIo();
42 parIo1->open(emcDigiFile.Data(),
"in");
44 rtdb->setFirstInput(parInput1);
45 rtdb->setSecondInput(parIo1);
51 fRun->AddTask(builderTask);
55 cout <<
"fRun->Init()" << endl;
68 cout <<
"Macro finished successfully." << endl;
69 cout <<
"Output file is " << outFile << endl;
70 cout <<
"Parameter file is " << parFile << endl;
71 cout <<
"Real time " << rtime <<
" s, CPU time " << ctime <<
" s" << endl;
74 cout <<
" Test passed" << endl;
75 cout <<
" All ok " << endl;
static void Init(Int_t MapVersion)
void dbuilder(TString infile="reco_complete.root", Int_t nEvents=0)
FairParRootFileIo * parInput1
FairParAsciiFileIo * parIo1
TFile infile("dedx_out.root","READ")