FairRoot/PandaRoot
Functions
pidideal_day1.C File Reference

Go to the source code of this file.

Functions

int pidideal_day1 (Int_t nEvents=0)
 

Function Documentation

int pidideal_day1 ( Int_t  nEvents = 0)

Definition at line 4 of file pidideal_day1.C.

References PndMasterRunAna::AddFriend(), PndMasterRunAna::AddPidTasks(), PndMasterRunAna::Finish(), fRun, gGeoManager, 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 = "day1+strip"; //with fts1234
9  //TString options = "day1+strip+fts1256";
10  TString input = "evtday1";
11  TString output = "pidideal";
12  TString friend1 = "digi";
13  TString friend2 = "recoideal";
14  TString friend3 = "";
15  TString friend4 = "";
16 
17  // ----- Initial Settings --------------------------------------------
19  fRun->SetOptions(options);
20  fRun->SetInput(input);
21  fRun->SetOutput(output);
22  fRun->AddFriend(friend1);
23  fRun->AddFriend(friend2);
24  fRun->AddFriend(friend3);
25  fRun->AddFriend(friend4);
26  fRun->SetParamAsciiFile(parAsciiFile);
27  fRun->Setup();
28 
29  // ----- Add tasks ----------------------------------------------------
30  fRun->AddPidTasks();
31 
32  // ----- Intialise and run --------------------------------------------
34  fRun->Init();
35  fRun->Run(0, nEvents);
36  fRun->Finish();
37 
38  if (gROOT->GetVersionInt() >= 60602) {
39  gGeoManager->GetListOfVolumes()->Delete();
40  gGeoManager->GetListOfShapes()->Delete();
41  delete gGeoManager;
42  }
43  return 0;
44 }
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 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.