FairRoot/PandaRoot
Functions
macro/QA/run4/recoideal_complete.C File Reference
#include "../auxi.C"

Go to the source code of this file.

Functions

int recoideal_complete (Int_t nEvents=0)
 

Function Documentation

int recoideal_complete ( Int_t  nEvents = 0)

Definition at line 2 of file macro/QA/run4/recoideal_complete.C.

References PndMasterRunAna::AddFriend(), CloseGeoManager(), PndMasterRunAna::Finish(), fRun, Geane, PndEmcMapper::Init(), nEvents, output, recoKalman, recoKalmanFwd, PndRecoKalmanTask::SetBusyCut(), PndMasterRunAna::SetInput(), PndMasterRunAna::SetOutput(), PndIdealTrackFinder::SetOutputBranchName(), PndMasterRunAna::SetParamAsciiFile(), PndPersistencyTask::SetPersistency(), PndIdealTrackFinder::SetRelativeMomentumSmearing(), PndRecoKalmanTask::SetTrackInBranchName(), PndIdealTrackFinder::SetTrackingEfficiency(), PndRecoKalmanTask::SetTrackOutBranchName(), PndIdealTrackFinder::SetTrackSelector(), PndMasterRunAna::Setup(), PndIdealTrackFinder::SetVertexSmearing(), track, trackFts, and TString.

3 {
4  TString parAsciiFile = "all.par";
5  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
6  TString output = "recoideal";
7  TString friend1 = "sim";
8  TString friend2 = "digi";
9  TString friend3 = "";
10  TString friend4 = "";
11 
12  // ----- Initial Settings --------------------------------------------
14  fRun->SetInput(input);
15  fRun->SetOutput(output);
16  fRun->AddFriend(friend1);
17  fRun->AddFriend(friend2);
18  fRun->AddFriend(friend3);
19  fRun->AddFriend(friend4);
20  fRun->SetParamAsciiFile(parAsciiFile);
21  fRun->SetUseFairLinks(kTRUE);
22  fRun->Setup();
23 
24  FairGeane *Geane = new FairGeane();
25  fRun->AddTask(Geane);
26 
27 
29  track->SetTrackSelector("NoFtsTrackFunctor");
30  track->SetRelativeMomentumSmearing(0.05);
31  track->SetVertexSmearing(0.05, 0.05, 0.05);
32  track->SetTrackingEfficiency(1.);
33  track->SetOutputBranchName("SttMvdGemIdealTrack");
34  track->SetPersistency(kFALSE);
35  fRun->AddTask(track);
36 
37 
39  recoKalman->SetTrackInBranchName("SttMvdGemIdealTrack");
40  //recoKalman->SetTrackInIDBranchName("SttMvdGemIdealTrackID");
41  recoKalman->SetTrackOutBranchName("SttMvdGemGenTrack");
42  recoKalman->SetBusyCut(50); // CHECK to be tuned
43  //recoKalman->SetIdealHyp(kTRUE);
44  //recoKalman->SetNumIterations(3);
45  fRun->AddTask(recoKalman);
46 
47 
49  trackFts->SetTrackSelector("FtsTrackFunctor");
50  trackFts->SetRelativeMomentumSmearing(0.05);
51  trackFts->SetVertexSmearing(0.05, 0.05, 0.05);
52  trackFts->SetTrackingEfficiency(1.);
53  trackFts->SetOutputBranchName("FtsIdealTrack");
54  trackFts->SetPersistency(kFALSE);
55  fRun->AddTask(trackFts);
56 
57 
59  recoKalmanFwd->SetTrackInBranchName("FtsIdealTrack");
60  //recoKalmanFwd->SetTrackInIDBranchName("FtsIdealTrackID");
61  recoKalmanFwd->SetTrackOutBranchName("FtsIdealGenTrack");
62  recoKalmanFwd->SetBusyCut(50); // CHECK to be tuned
63  //recoKalmanFwd->SetIdealHyp(kTRUE);
64  //recoKalmanFwd->SetNumIterations(3);
65  fRun->AddTask(recoKalmanFwd);
66 
67 
68  // ----- Intialise and run --------------------------------------------
70  fRun->Init();
71  fRun->Run(0, nEvents);
72  fRun->Finish();
73 
75  return 0;
76 }
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
void SetTrackingEfficiency(Double_t eff=1.)
Ideal track finder for all types of tracking detectors The PndIdealTrackFinder combines all hits in ...
void SetPersistency(Bool_t val=kTRUE)
virtual void SetOutputBranchName(TString name)
void AddFriend(TString par)
Setter of friend root files.
FairParRootFileIo * output
Definition: sim_emc_apd.C:120
void SetTrackOutBranchName(const TString &name)
void CloseGeoManager()
Definition: QA/auxi.C:11
FairGeane * Geane
FairRunAna * fRun
Definition: hit_dirc.C:58
void SetInput(TString par)
Input of the macro.
void SetTrackSelector(TString selector)
PndRecoKalmanTask * recoKalmanFwd
Int_t nEvents
Definition: hit_dirc.C:11
PndMCTrack * track
Definition: anaLmdCluster.C:89
static void Init(Int_t MapVersion)
PndFtsTrackerIdeal * trackFts
void SetVertexSmearing(Double_t sigmax=-1., Double_t sigmay=-1., Double_t sigmaz=-1.)
void SetBusyCut(Int_t b)
void SetTrackInBranchName(const TString &name)
void Finish()
Final diagnostics.
PndRecoKalmanTask * recoKalman
void SetOutput(TString par)
Tag of the output file of the macro.
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.
void SetRelativeMomentumSmearing(Double_t dpop=-1.)