FairRoot/PandaRoot
Functions
recoideal_box.C File Reference

Go to the source code of this file.

Functions

int recoideal_box (Int_t nEvents=0)
 

Function Documentation

int recoideal_box ( Int_t  nEvents = 0)

Definition at line 4 of file recoideal_box.C.

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

5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString input = "box_1pi_1gev_theta10-120";
9  TString output = "recoideal";
10  TString friend1 = "digi";
11  TString friend2 = "";
12  TString friend3 = "";
13  TString friend4 = "";
14 
15  // ----- Initial Settings --------------------------------------------
17  fRun->SetInput(input);
18  fRun->SetOutput(output);
19  fRun->AddFriend(friend1);
20  fRun->AddFriend(friend2);
21  fRun->AddFriend(friend3);
22  fRun->AddFriend(friend4);
23  fRun->SetParamAsciiFile(parAsciiFile);
24  fRun->Setup();
25 
26  // ----- Add tasks ----------------------------------------------------
27  fRun->AddRecoIdealTasks();
28 
29  // ----- Intialise and run --------------------------------------------
31  fRun->Init();
32  fRun->Run(0, nEvents);
33  fRun->Finish();
34 
35  return 0;
36 }
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 AddRecoIdealTasks(Bool_t pers=kTRUE)
Add ideal pattern 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.