FairRoot/PandaRoot
rho/tut_aod.C
Go to the documentation of this file.
1 // Macro for running Panda digitization, reconstruction and pid tasks
2 // to run the macro:
3 // root full_complete.C or in root session root>.x full_complete.C
4 void tut_aod(Int_t nEvents = 0, TString prefix = "signal")
5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString output = "pid";
9 
10  // ----- Initial Settings --------------------------------------------
12  fRun->SetInput("dummy");
13  fRun->SetOutput(output);
14  fRun->SetParamAsciiFile(parAsciiFile);
15  fRun->Setup(prefix);
16 
17  // ----- Add tasks ----------------------------------------------------
18  fRun->AddDigiTasks(kFALSE);
19  fRun->AddRecoTasks(kFALSE);
20  fRun->AddPidTasks();
21 
22  // ----- Intialise and run --------------------------------------------
23  fRun->Init();
24  fRun->Run(0, nEvents);
25  fRun->Finish();
26 }
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
FairParRootFileIo * output
Definition: sim_emc_apd.C:120
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_t nEvents
Definition: hit_dirc.C:11
void AddPidTasks(Bool_t pers=kTRUE)
Add pid tasks.
void tut_aod(Int_t nEvents=0, TString prefix="signal")
Definition: rho/tut_aod.C:4
void AddDigiTasks(Bool_t pers=kTRUE)
Add digitization and local reconstruction tasks.
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.