FairRoot/PandaRoot
production/dayone-2017/fullsim/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 int digi_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 = "digi";
12  TString friend1 = "";
13  TString friend2 = "";
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->AddDigiTasks();
31 
32  // ----- Intialise and run --------------------------------------------
33  fRun->Init();
34  fRun->Run(0, nEvents);
35  fRun->Finish();
36 
37  if (gROOT->GetVersionInt() >= 60602) {
38  gGeoManager->GetListOfVolumes()->Delete();
39  gGeoManager->GetListOfShapes()->Delete();
40  delete gGeoManager;
41  }
42  return 0;
43 }
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_t nEvents
Definition: hit_dirc.C:11
int digi_day1(Int_t nEvents=0)
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.