FairRoot/PandaRoot
QA/day1/digi_day1.C
Go to the documentation of this file.
1 // Macro for running Panda digitization tasks
2 // to run the macro:
3 // root digi_day1.C or in root session root>.x digi_complete.C
4 
5 int digi_day1(Int_t nEvents = 0)
6 {
7  //-----User Settings:------------------------------------------------------
8  TString parAsciiFile = "all.par";
9  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
10  TString output = "digi";
11  TString friend1 = "";
12  TString friend2 = "";
13  TString friend3 = "";
14  TString friend4 = "";
15 
16  // ----- Initial Settings --------------------------------------------
18  fRun->SetOptions("day1+fakeonline"); // day1 phase1 gem3 nogem fakeonline
19  fRun->SetInput(input);
20  fRun->SetOutput(output);
21  fRun->AddFriend(friend1);
22  fRun->AddFriend(friend2);
23  fRun->AddFriend(friend3);
24  fRun->AddFriend(friend4);
25  fRun->SetParamAsciiFile(parAsciiFile);
26  fRun->Setup("fakeonline");
27 
28  // ----- Add tasks ----------------------------------------------------
29  fRun->AddDigiTasks();
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.
int digi_day1(Int_t nEvents=0)
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.
Int_t nEvents
Definition: hit_dirc.C:11
void SetOptions(TString par)
Setter of the reconstruction options This string can be: "" -> default settings "day1" -> Setup for ...
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.