FairRoot/PandaRoot
Functions
prod_aod.C File Reference

Go to the source code of this file.

Functions

int prod_aod (TString prefix="")
 

Function Documentation

int prod_aod ( TString  prefix = "")

Definition at line 1 of file prod_aod.C.

References PndMasterRunAna::AddDigiTasks(), PndMasterRunAna::AddPidTasks(), PndMasterRunAna::AddRecoTasks(), PndMasterRunAna::Finish(), fRun, output, PndMasterRunAna::SetInput(), PndMasterRunAna::SetOptions(), PndMasterRunAna::SetOutput(), PndMasterRunAna::SetParamAsciiFile(), PndMasterRunAna::Setup(), and TString.

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.