FairRoot/PandaRoot
pidideal_day1.C
Go to the documentation of this file.
1 // Macro for running Panda pid tasks
2 // to run the macro:
3 // root pid_day1.C or in root session root>.x pid_complete.C
4 int pidideal_day1(Int_t nEvents = 0)
5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString options = "day1+strip"; //with fts1234
9  //TString options = "day1+strip+fts1256";
10  TString input = "evtday1";
11  TString output = "pidideal";
12  TString friend1 = "digi";
13  TString friend2 = "recoideal";
14  TString friend3 = "";
15  TString friend4 = "";
16 
17  // ----- Initial Settings --------------------------------------------
19  fRun->SetOptions(options);
20  fRun->SetInput(input);
21  fRun->SetOutput(output);
22  fRun->AddFriend(friend1);
23  fRun->AddFriend(friend2);
24  fRun->AddFriend(friend3);
25  fRun->AddFriend(friend4);
26  fRun->SetParamAsciiFile(parAsciiFile);
27  fRun->Setup();
28 
29  // ----- Add tasks ----------------------------------------------------
30  fRun->AddPidTasks();
31 
32  // ----- Intialise and run --------------------------------------------
34  fRun->Init();
35  fRun->Run(0, nEvents);
36  fRun->Finish();
37 
38  if (gROOT->GetVersionInt() >= 60602) {
39  gGeoManager->GetListOfVolumes()->Delete();
40  gGeoManager->GetListOfShapes()->Delete();
41  delete gGeoManager;
42  }
43  return 0;
44 }
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
TGeoManager * gGeoManager
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 pidideal_day1(Int_t nEvents=0)
Definition: pidideal_day1.C:4
Int_t nEvents
Definition: hit_dirc.C:11
static void Init(Int_t MapVersion)
void AddPidTasks(Bool_t pers=kTRUE)
Add pid tasks.
void SetOptions(TString par)
Setter of the reconstruction options This string can be: "" -> default settings "day1" -> Setup for ...
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.