FairRoot/PandaRoot
QA/run4/reco_complete.C
Go to the documentation of this file.
1 // Macro for running Panda reconstruction tasks
2 // to run the macro:
3 // root reco_complete.C or in root session root>.x reco_complete.C
4 #include "../auxi.C"
5 int reco_complete(Int_t nEvents = 0)
6 {
7  //-----User Settings:------------------------------------------------------
8  TString parAsciiFile = "all.par";
9  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
10  TString output = "reco";
11  TString friend1 = "sim";
12  TString friend2 = "digi";
13  TString friend3 = "";
14  TString friend4 = "";
15 
16  // ----- Initial Settings --------------------------------------------
18  fRun->SetInput(input);
19  fRun->SetOutput(output);
20  fRun->AddFriend(friend1);
21  fRun->AddFriend(friend2);
22  fRun->AddFriend(friend3);
23  fRun->AddFriend(friend4);
24  fRun->SetParamAsciiFile(parAsciiFile);
25  fRun->Setup();
26 
27  // ----- Add tasks ----------------------------------------------------
28  fRun->AddRecoTasks();
29 
30  // ----- Intialise and run --------------------------------------------
32  fRun->Init();
33  fRun->Run(0, nEvents);
34  fRun->Finish();
35 
37  return 0;
38 }
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
void AddFriend(TString par)
Setter of friend root files.
FairParRootFileIo * output
Definition: sim_emc_apd.C:120
void CloseGeoManager()
Definition: QA/auxi.C:11
FairRunAna * fRun
Definition: hit_dirc.C:58
void SetInput(TString par)
Input of the macro.
void AddRecoTasks(Bool_t pers=kTRUE)
Add reconstruction tasks.
int reco_complete()
Int_t nEvents
Definition: hit_dirc.C:11
static void Init(Int_t MapVersion)
void Finish()
Final diagnostics.
void SetOutput(TString par)
Tag of the output file of the macro.
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.