FairRoot/PandaRoot
production/scripts/prod_rec.C
Go to the documentation of this file.
1 int prod_rec(TString prefix="")
2 {
3  //-----User Settings:------------------------------------------------------
4  TString parAsciiFile = "all.par";
5  TString output = "reco";
6  TString friend1 = "digi";
7  TString opt = "";
8 
9  // ----- Initial Settings --------------------------------------------
11  fRun->SetInput("dummy");
12  fRun->SetOutput(output);
13  fRun->AddFriend(friend1);
14  fRun->SetParamAsciiFile(parAsciiFile);
15  fRun->Setup(prefix);
16  if (opt!="") fRun->SetOptions(opt);
17 
18  // ----- Add tasks ----------------------------------------------------
19  fRun->AddRecoTasks();
20 
21  // ----- Intialise and run --------------------------------------------
23  fRun->Init();
24  fRun->Run(0, nEvents);
25  fRun->Finish();
26  return 0;
27 }
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
static void Init(Int_t MapVersion)
void SetOptions(TString par)
Setter of the reconstruction options This string can be: "" -> default settings "day1" -> Setup for ...
void Finish()
Final diagnostics.
int prod_rec(TString prefix="")
void SetOutput(TString par)
Tag of the output file of the macro.
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.