FairRoot/PandaRoot
Functions
barrelTrackFinder.C File Reference

Go to the source code of this file.

Functions

int barrelTrackFinder (Int_t nEvents=0)
 

Function Documentation

int barrelTrackFinder ( Int_t  nEvents = 0)

Definition at line 4 of file barrelTrackFinder.C.

References PndMasterRunAna::AddFriend(), PndMasterRunAna::Finish(), fRun, Geane, nEvents, output, recoKalman, PndRecoKalmanTask2::SetBusyCut(), PndRecoKalmanTask::SetBusyCut(), PndMasterRunAna::SetInput(), PndMasterRunAna::SetOutput(), PndMasterRunAna::SetParamAsciiFile(), PndPersistencyTask::SetPersistency(), PndRecoKalmanTask2::SetTrackInBranchName(), PndRecoKalmanTask::SetTrackInBranchName(), PndRecoKalmanTask2::SetTrackOutBranchName(), PndRecoKalmanTask::SetTrackOutBranchName(), PndRecoKalmanTask::SetTrackRep(), PndMasterRunAna::Setup(), tracking, TString, and PndBarrelTrackFinder::UseMvdSttGem().

5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString prefix = "evtcomplete";
9  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
10  TString output = "barreltracking";
11  TString friend1 = "sim";
12  TString friend2 = "digi";
13  TString friend3 = "";
14  TString friend4 = "";
15  TString fOptions = "gf2";
16 
17  // ----- Initial Settings --------------------------------------------
19  fRun->SetInput(input);
20  fRun->SetOutput(output);
21  fRun->AddFriend(friend1);
22  fRun->AddFriend(friend2);
23  fRun->AddFriend(friend3);
24  fRun->AddFriend(friend4);
25  fRun->SetParamAsciiFile(parAsciiFile);
26  fRun->Setup(prefix);
27 
29  tracking->UseMvdSttGem(kTRUE, kTRUE, kTRUE);
30  tracking->SetPersistency(kTRUE);
31  fRun->AddTask(tracking);
32 
33  if (fOptions.Contains("gf1")){
34  FairGeane *Geane = new FairGeane();
35  fRun->AddTask(Geane);
36 
38  fRun->AddTask(recoKalman = new PndRecoKalmanTask());
39  recoKalman->SetTrackInBranchName("BarrelTrack");
40  recoKalman->SetTrackOutBranchName("BarrelGenTrack");
41 
42  recoKalman->SetBusyCut(50); // CHECK to be tuned
43  //recoKalman->SetIdealHyp(kTRUE);
44  //recoKalman->SetNumIterations(3);
45  recoKalman->SetTrackRep(0); // 0 Geane (default), 1 RK
46  //recoKalman->SetPropagateToIP(kFALSE);
47  } else if (fOptions.Contains("gf2")){
48  FairGeane *Geane = new FairGeane();
49  fRun->AddTask(Geane);
50 
51  PndRecoKalmanTask2* recoKalman = NULL;
52  fRun->AddTask(recoKalman = new PndRecoKalmanTask2());
53  recoKalman->SetTrackInBranchName("BarrelTrack");
54  recoKalman->SetTrackOutBranchName("BarrelGenTrack");
55 
56  recoKalman->SetBusyCut(50); // CHECK to be tuned
57  //recoKalman->SetIdealHyp(kTRUE);
58  //recoKalman->SetNumIterations(3);
59  //recoKalman->SetTrackRep(0); // 0 Geane (default), 1 RK
60  //recoKalman->SetPropagateToIP(kFALSE);
61  }
62 
63  // ----- Intialise and run --------------------------------------------
64  fRun->Init();
65  fRun->Run(0, nEvents);
66  fRun->Finish();
67  return 0;
68 }
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
void SetTrackInBranchName(const TString &name)
void SetPersistency(Bool_t val=kTRUE)
void AddFriend(TString par)
Setter of friend root files.
FairParRootFileIo * output
Definition: sim_emc_apd.C:120
void SetTrackOutBranchName(const TString &name)
FairGeane * Geane
FairRunAna * fRun
Definition: hit_dirc.C:58
void SetInput(TString par)
Input of the macro.
void SetTrackOutBranchName(const TString &name)
Int_t nEvents
Definition: hit_dirc.C:11
PndTrkTracking * tracking
void SetTrackRep(Short_t num)
void SetBusyCut(Int_t b)
void SetTrackInBranchName(const TString &name)
void UseMvdSttGem(const Bool_t useMvd, const Bool_t useStt, const Bool_t useGem)
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 SetBusyCut(Int_t b)