FairRoot/PandaRoot
Functions
recoLocal_complete.C File Reference

Go to the source code of this file.

Functions

int recoLocal_complete (Int_t nEvents=0)
 

Function Documentation

int recoLocal_complete ( Int_t  nEvents = 0)

Definition at line 4 of file recoLocal_complete.C.

References PndMasterRunAna::AddFriend(), PndMasterRunAna::Finish(), fRun, nEvents, output, PndMasterRunAna::SetInput(), PndMasterRunAna::SetOutput(), PndMasterRunAna::SetParamAsciiFile(), PndMasterRunAna::Setup(), 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 = "sim";
11  TString friend1 = "digi";
12  TString friend2 = "digionly";
13  TString friend3 = "";
14  TString friend4 = "";
15 
16  // ----- Initial Settings --------------------------------------------
18  fRun->SetInput(input);
19  fRun->SetOutput(output);
20  fRun->AddFriend(friend1);
21  fRun->AddFriend(friend2);
22  fRun->AddFriend(friend3);
23  fRun->AddFriend(friend4);
24  fRun->SetParamAsciiFile(parAsciiFile);
25  fRun->Setup(prefix);
26 
27  PndPersistencyTask *task;
28 
29  // ----- Add tasks ----------------------------------------------------
30 
31  task = new PndMvdClusterTask();
32  task->SetVerbose(0);
33  fRun->AddTask(task);
34 
35  task = new PndEmcMakeCluster();
36  task->SetVerbose(0);
37  fRun->AddTask(task);
38 
39  task = new PndEmcMakeBump();
40  task->SetVerbose(0);
41  fRun->AddTask(task);
42 
43  task = new PndMdtTrkProducer();
44  task->SetVerbose(0);
45  fRun->AddTask(task);
46 
47  task = new PndGemFindHits("GEM Hit Finder", 0);
48  task->SetVerbose(0);
49  fRun->AddTask(task);
50 
51  // ----- Intialise and run --------------------------------------------
52  fRun->Init();
53  fRun->Run(0, nEvents);
54  fRun->Finish();
55  return 0;
56 }
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.
Int_t nEvents
Definition: hit_dirc.C:11
Takes clusters and slits them up into bumps.
Task to cluster PndEmcDigis.
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.