FairRoot/PandaRoot
recoideal_day1.C
Go to the documentation of this file.
1 // Macro for running Panda reconstruction tasks
2 // to run the macro:
3 // root recoideal_day1.C or in root session root>.x reco_complete.C
4 // It uses an ideal pattern recognition both in the barrel and the forward part with a smearing of momentum and position vectors.
5 // After the ideal pattern reco the genfit kalman filter runs over the data set.
6 
7 int recoideal_day1(Int_t nEvents = 0)
8 {
9  //-----User Settings:------------------------------------------------------
10  TString parAsciiFile = "all.par";
11  TString options = "day1+strip"; //with fts1234
12  //TString options = "day1+strip+fts1256";
13  TString input = "evtday1";
14  TString output = "recoideal";
15  TString friend1 = "digi";
16  TString friend2 = "";
17  TString friend3 = "";
18  TString friend4 = "";
19 
20  // ----- Initial Settings --------------------------------------------
22  fRun->SetOptions(options);
23  fRun->SetInput(input);
24  fRun->SetOutput(output);
25  fRun->AddFriend(friend1);
26  fRun->AddFriend(friend2);
27  fRun->AddFriend(friend3);
28  fRun->AddFriend(friend4);
29  fRun->SetParamAsciiFile(parAsciiFile);
30  fRun->Setup();
31 
32  // ----- Add tasks ----------------------------------------------------
33  fRun->AddRecoIdealTasks();
34 
35  // ----- Intialise and run --------------------------------------------
37  fRun->Init();
38  fRun->Run(0, nEvents);
39  fRun->Finish();
40 
41  if (gROOT->GetVersionInt() >= 60602) {
42  gGeoManager->GetListOfVolumes()->Delete();
43  gGeoManager->GetListOfShapes()->Delete();
44  delete gGeoManager;
45  }
46  return 0;
47 }
int recoideal_day1(Int_t nEvents=0)
Definition: recoideal_day1.C:7
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
TGeoManager * gGeoManager
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 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.