FairRoot/PandaRoot
prod_aod.C
Go to the documentation of this file.
1 int prod_aod(TString prefix="")
2 {
3  if (prefix=="")
4  {
5  cout << "USAGE:\n";
6  cout << "prod_aod.C( <pref> )\n\n";
7  cout << " <pref> : input/output file names prefix\n\n";
8  return 0;
9  }
10  //-----User Settings:------------------------------------------------------
11  TString parAsciiFile = "all.par";
12  TString output = "pid";
13  TString opt = "";
14 
15  // ----- Initial Settings --------------------------------------------
17  fRun->SetInput("dummy");
18  fRun->SetOutput(output);
19  fRun->SetParamAsciiFile(parAsciiFile);
20  fRun->Setup(prefix);
21  if (opt!="") fRun->SetOptions(opt);
22 
23  // ----- Add tasks ----------------------------------------------------
24  fRun->AddDigiTasks(kFALSE);
25  fRun->AddRecoTasks(kFALSE);
26  fRun->AddPidTasks();
27 
28  // ----- Intialise and run --------------------------------------------
29  fRun->Init();
30  fRun->Run(0);
31  fRun->Finish();
32  return 0;
33 }
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.
void AddRecoTasks(Bool_t pers=kTRUE)
Add reconstruction tasks.
void AddPidTasks(Bool_t pers=kTRUE)
Add pid tasks.
void SetOptions(TString par)
Setter of the reconstruction options This string can be: &quot;&quot; -&gt; default settings &quot;day1&quot; -&gt; 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_aod(TString prefix="")
Definition: prod_aod.C:1