FairRoot/PandaRoot
production/scripts/prod_dig.C
Go to the documentation of this file.
1 int prod_dig(TString prefix="")
2 {
3  //-----User Settings:------------------------------------------------------
4  TString parAsciiFile = "all.par";
5  TString output = "digi";
6  TString opt = "";
7 
8  // ----- Initial Settings --------------------------------------------
10  fRun->SetInput("dummy");
11  fRun->SetOutput(output);
12  fRun->SetParamAsciiFile(parAsciiFile);
13  fRun->Setup(prefix);
14  if (opt!="") fRun->SetOptions(opt);
15 
16  // ----- Add tasks ----------------------------------------------------
17  fRun->AddDigiTasks();
18 
19  // ----- Intialise and run --------------------------------------------
20  fRun->Init();
21  fRun->Run(0, nEvents);
22  fRun->Finish();
23 
24  return 0;
25 }
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.
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.
int prod_dig(TString prefix="")