FairRoot/PandaRoot
full_box.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_box.C or in root session root>.x full_box.C
4 int full_box(Int_t nEvents = 0)
5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString input = "box_1pi_1GeV_theta10-120";
9  TString output = "pid";
10  TString friend1 = "";
11  TString friend2 = "";
12  TString friend3 = "";
13  TString friend4 = "";
14 
15  // ----- Initial Settings --------------------------------------------
17  fRun->SetInput(input);
18  fRun->SetOutput(output);
19  fRun->AddFriend(friend1);
20  fRun->AddFriend(friend2);
21  fRun->AddFriend(friend3);
22  fRun->AddFriend(friend4);
23  fRun->SetParamAsciiFile(parAsciiFile);
24  fRun->Setup();
25 
26  // ----- Add tasks ----------------------------------------------------
27  fRun->AddDigiTasks(kFALSE);
28  fRun->AddRecoTasks(kFALSE);
29  fRun->AddPidTasks();
30 
31  // ----- Intialise and run --------------------------------------------
32  fRun->Init();
33  fRun->Run(0, nEvents);
34  fRun->Finish();
35 
36  return 0;
37 }
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
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.
int full_box(Int_t nEvents=0)
Definition: full_box.C:4
void SetOutput(TString par)
Tag of the output file of the macro.
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.