FairRoot/PandaRoot
Functions
thailand2017/tut_aod.C File Reference
#include "auxtut.C"

Go to the source code of this file.

Functions

void tut_aod (Int_t nEvents=0, TString prefix="signal")
 

Function Documentation

void tut_aod ( Int_t  nEvents = 0,
TString  prefix = "signal" 
)

Definition at line 12 of file thailand2017/tut_aod.C.

References PndMasterRunAna::AddDigiTasks(), PndMasterRunAna::AddPidTasks(), PndMasterRunAna::AddRecoTasks(), PndMasterRunAna::Finish(), fRun, nEvents, output, RemoveGeoManager(), PndMasterRunAna::SetInput(), PndMasterRunAna::SetOutput(), PndMasterRunAna::SetParamAsciiFile(), PndMasterRunAna::Setup(), and TString.

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.