FairRoot/PandaRoot
Functions
master/reco_complete.C File Reference

Go to the source code of this file.

Functions

int reco_complete (Int_t nEvents=0, TString prefix="evtcomplete")
 

Function Documentation

int reco_complete ( Int_t  nEvents = 0,
TString  prefix = "evtcomplete" 
)

Definition at line 4 of file master/reco_complete.C.

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

5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString options = "multikalman"; //"genfit2"
9  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
10  TString output = "reco";
11  TString friend1 = "sim";
12  TString friend2 = "digi";
13  TString friend3 = "";
14  TString friend4 = "";
15 
16  // ----- Initial Settings --------------------------------------------
18  fRun->SetInput(input);
19  fRun->SetOutput(output);
20  fRun->AddFriend(friend1);
21  fRun->AddFriend(friend2);
22  fRun->AddFriend(friend3);
23  fRun->AddFriend(friend4);
24  fRun->SetParamAsciiFile(parAsciiFile);
25  fRun->SetOptions(fRun->GetOptions()+options);
26  fRun->Setup(prefix);
27 
28  // ----- Add tasks ----------------------------------------------------
29 // fRun->SetOptions("multikalman;pion;proton");
30  fRun->SetOptions("multikalman");
31  fRun->AddRecoTasks();
32 
33  // ----- Intialise and run --------------------------------------------
35  fRun->Init();
36  fRun->Run(0, nEvents);
37  fRun->Finish();
38  return 0;
39 }
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)
TString GetOptions()
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.