FairRoot/PandaRoot
Functions
production/scripts/prod_pid.C File Reference

Go to the source code of this file.

Functions

int prod_pid (TString prefix="")
 

Function Documentation

int prod_pid ( TString  prefix = "")

Definition at line 1 of file production/scripts/prod_pid.C.

References PndMasterRunAna::AddFriend(), PndMasterRunAna::AddPidTasks(), PndMasterRunAna::Finish(), fRun, PndEmcMapper::Init(), nEvents, output, PndMasterRunAna::SetInput(), PndMasterRunAna::SetOptions(), PndMasterRunAna::SetOutput(), PndMasterRunAna::SetParamAsciiFile(), PndMasterRunAna::Setup(), and TString.

2 {
3  //-----User Settings:------------------------------------------------------
4  TString parAsciiFile = "all.par";
5  TString output = "pid";
6  TString friend1 = "digi";
7  TString friend2 = "reco";
8  TString opt = "";
9 
10  // ----- Initial Settings --------------------------------------------
12  fRun->SetInput("dummy");
13  fRun->SetOutput(output);
14  fRun->AddFriend(friend1);
15  fRun->AddFriend(friend2);
16  fRun->SetParamAsciiFile(parAsciiFile);
17  fRun->Setup(prefix);
18  if (opt!="") fRun->SetOptions(opt);
19 
20  // ----- Add tasks ----------------------------------------------------
21  fRun->AddPidTasks();
22 
23  // ----- Intialise and run --------------------------------------------
25  fRun->Init();
26  fRun->Run(0, nEvents);
27  fRun->Finish();
28 
29  return 0;
30 }
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.
Int_t nEvents
Definition: hit_dirc.C:11
static void Init(Int_t MapVersion)
void AddPidTasks(Bool_t pers=kTRUE)
Add pid tasks.
void SetOptions(TString par)
Setter of the reconstruction options This string can be: "" -> default settings "day1" -> Setup for ...
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.