FairRoot/PandaRoot
Functions
QA/run4/recoqa_complete.C File Reference

Go to the source code of this file.

Functions

int recoqa_complete (Int_t nEvents=0)
 

Function Documentation

int recoqa_complete ( Int_t  nEvents = 0)

Ideal Track finder

QA task

Definition at line 9 of file QA/run4/recoqa_complete.C.

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

10 {
11  //-----User Settings:------------------------------------------------------
12  TString parAsciiFile = "all.par";
13  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
14  TString output = "recoqa";
15  TString friend1 = "sim";
16  TString friend2 = "digi";
17  TString friend3 = "reco";
18  TString friend4 = "";
19 
20  // ----- Initial Settings --------------------------------------------
22  fRun->SetInput(input);
23  fRun->SetOutput(output);
24  fRun->AddFriend(friend1);
25  fRun->AddFriend(friend2);
26  fRun->AddFriend(friend3);
27  fRun->AddFriend(friend4);
28  fRun->SetParamAsciiFile(parAsciiFile);
29  fRun->Setup();
30 
31  // ----- Add tasks ----------------------------------------------------
33  PndIdealTrackFinder* idealTracking = new PndIdealTrackFinder();
34  idealTracking->AddBranchName("MVDHitsPixel");
35  idealTracking->AddBranchName("MVDHitsStrip");
36  idealTracking->AddBranchName("STTHit");
37  idealTracking->AddBranchName("GEMHit");
38  fRun->AddTask(idealTracking);
39 
41  PndTrackingQATask* trackingQA = new PndTrackingQATask("SttMvdGemGenTrack", "IdealTrack");
42  fRun->AddTask(trackingQA);
43 
44  // ----- Intialise and run --------------------------------------------
46  fRun->Init();
47  fRun->Run(0, nEvents);
48  fRun->Finish();
49 
50  return 0;
51 }
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
Ideal track finder for all types of tracking detectors The PndIdealTrackFinder combines all hits in ...
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 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.
virtual void AddBranchName(TString name)
Search for tracks only in given branches. If no BranchName is given all tracking detectors are taken...