FairRoot/PandaRoot
Functions
cellTrackFinder.C File Reference

Go to the source code of this file.

Functions

int cellTrackFinder (Int_t nEvents=0)
 

Function Documentation

int cellTrackFinder ( Int_t  nEvents = 0)

Definition at line 4 of file cellTrackFinder.C.

References PndMasterRunAna::AddFriend(), PndSttCellTrackFinderTask::AddHitBranch(), PndMasterRunAna::Finish(), fRun, nEvents, output, PndSttCellTrackFinderTask::SetAnalyseSteps(), PndMasterRunAna::SetInput(), PndMasterRunAna::SetOutput(), PndMasterRunAna::SetParamAsciiFile(), PndSttCellTrackFinderTask::SetPersistence(), PndSttCellTrackFinderTask::SetRunTimeBased(), PndMasterRunAna::Setup(), PndSttCellTrackFinderTask::SetVerbose(), and TString.

5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString prefix = "evtcomplete";
9  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
10  TString output = "cell";
11  TString friend1 = "sim";
12  TString friend2 = "digi";
13  TString friend3 = "";
14  TString friend4 = "";
15  TString fOptions = ""; // "gf2" for genfit 2
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 
28 // FairGeane *Geane = new FairGeane();
29 // fRun->AddTask(Geane);
30 
32  cellTrackFinder->SetPersistence(kTRUE);
33  cellTrackFinder->AddHitBranch("STTHit");
34  cellTrackFinder->SetAnalyseSteps(kFALSE);
35  cellTrackFinder->SetVerbose(0);
36  cellTrackFinder->SetRunTimeBased(kFALSE);
37 // cellTrackFinder->SetClusterTime(300);
38  fRun->AddTask(cellTrackFinder);
39 
40 
41  // ----- Intialise and run --------------------------------------------
42  fRun->Init();
43  fRun->Run(0, nEvents);
44  fRun->Finish();
45  return 0;
46 }
Class for the master reconstruction chain.
Bool_t Setup(TString outprefix="")
Initial setup.
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.
void AddHitBranch(TString branchName)
Int_t nEvents
Definition: hit_dirc.C:11
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.
int cellTrackFinder(Int_t nEvents=0)