FairRoot/PandaRoot
thailand2017/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 //
4 // root -l -b -q tut_aod.C
5 //
6 // to run with different input prefix (0 = all events)
7 //
8 // root -l -b -q 'tut_aud.C(0,"mydata")'
9 
10 #include "auxtut.C"
11 
12 void tut_aod(Int_t nEvents = 0, TString prefix = "signal")
13 {
14  //-----User Settings:------------------------------------------------------
15  TString parAsciiFile = "all.par";
16  TString output = "pid";
17 
18  // ----- Initial Settings --------------------------------------------
20  fRun->SetInput("dummy");
21  fRun->SetOutput(output);
22  fRun->SetParamAsciiFile(parAsciiFile);
23  fRun->Setup(prefix);
24 
25  // ----- Add tasks ----------------------------------------------------
26  fRun->AddDigiTasks(kFALSE);
27  fRun->AddRecoTasks(kFALSE);
28  fRun->AddPidTasks();
29 
30  // ----- Intialise and run --------------------------------------------
31  fRun->Init();
32  fRun->Run(0, nEvents);
33  fRun->Finish();
34 
35  // *** temporaty fix to avoid error on macro exit
37 }
Class for the master reconstruction chain.
void RemoveGeoManager()
Definition: auxtut.C:11
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 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.
void tut_aod(Int_t nEvents=0, TString prefix="signal")