FairRoot/PandaRoot
QA/run3/pidideal_complete.C
Go to the documentation of this file.
1 // Macro for running Panda pid tasks
2 // to run the macro:
3 // root pidideal_complete.C or in root session root>.x pidideal_complete.C
4 int pidideal_complete(Int_t nEvents = 0)
5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
9  TString output = "pidideal";
10  TString friend1 = "sim";
11  TString friend2 = "digi";
12  TString friend3 = "recoideal";
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  FairGeane *Geane = new FairGeane();
28  fRun->AddTask(Geane);
29 
31  //corr->SetVerbose();
32  corr->SetBarrelTrackBranch("SttMvdGemGenTrack");
33 // corr->SetInputIDBranch("SttMvdGemGenTrackID");
34  corr->SetForwardTrackBranch("FtsIdealGenTrack");
35 // corr->SetInputIDBranch2("FtsIdealGenTrackID");
36  corr->SetIdeal(kTRUE);
37  corr->SetIdealHyp(kTRUE);
38  //corr->SetDebugMode(kTRUE);
39  //corr->SetFast(kTRUE);
40  //corr->SetBackPropagate(kFALSE);
41  fRun->AddTask(corr);
42 
43  PndMcCloner *clone = new PndMcCloner();
44  fRun->AddTask(clone);
45 
47  fRun->AddTask(assMC);
48 
50  fRun->AddTask(assMvd);
51 
53  fRun->AddTask(assMdt);
54 
56  fRun->AddTask(assDrc);
57 
59  fRun->AddTask(assDisc);
60 
62  fRun->AddTask(assStt);
63 
65  fRun->AddTask(assEMC);
66 
67  // ----- Intialise and run --------------------------------------------
69  fRun->Init();
70  fRun->Run(0, nEvents);
71  fRun->Finish();
72 
73  return 0;
74 }
void SetIdeal(Bool_t id)
Class for the master reconstruction chain.
PndPidCorrelator * corr
Bool_t Setup(TString outprefix="")
Initial setup.
void SetBarrelTrackBranch(TString branch)
PndPidIdealAssociatorTask * assMC
PndPidMdtHCAssociatorTask * assMdt
PndPidDiscAssociatorTask * assDisc
PndPidMvdAssociatorTask * assMvd
PndPidEmcBayesAssociatorTask * assEMC
void AddFriend(TString par)
Setter of friend root files.
FairParRootFileIo * output
Definition: sim_emc_apd.C:120
FairGeane * Geane
FairRunAna * fRun
Definition: hit_dirc.C:58
void SetInput(TString par)
Input of the macro.
PndPidSttAssociatorTask * assStt
Int_t nEvents
Definition: hit_dirc.C:11
static void Init(Int_t MapVersion)
PndPidDrcAssociatorTask * assDrc
void Finish()
Final diagnostics.
void SetForwardTrackBranch(TString branch)
void SetOutput(TString par)
Tag of the output file of the macro.
void SetIdealHyp(Bool_t opt=kTRUE)
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.