FairRoot/PandaRoot
Functions
rho/tut_aod.C File Reference

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 4 of file rho/tut_aod.C.

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

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 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.