FairRoot/PandaRoot
printFairLinks.C
Go to the documentation of this file.
1 int printFairLinks(Int_t nEvents = 0)
2 {
3 
4  // Number of events to process
5 // Int_t nEvents = 0; // if 0 all the vents will be processed
6 
7  TString parAsciiFile = "all.par";
8  TString prefix = "./data/evtcomplete_15G";
9  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
10  TString output = "digionly";
11  TString friend1 = "digi";
12  TString friend2 = "reco";
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  fRun->UseFairLinks(kTRUE);
28 
29  FairGeane *Geane = new FairGeane();
30  fRun->AddTask(Geane);
31 
32  // ------------------------------------------------------------------------
33 
34  PndPrintFairLinks* printlinksTask = new PndPrintFairLinks();
35  fRun->AddTask(printlinksTask);
36 
37  // ----- Intialise and run --------------------------------------------
38 
39  cout << "fRun->Init()" << endl;
40 
41  fRun->Init();
42  fRun->Run(0,nEvents);
43  // ------------------------------------------------------------------------
44 
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
FairGeane * Geane
FairRunAna * fRun
Definition: hit_dirc.C:58
void SetInput(TString par)
Input of the macro.
Int_t nEvents
Definition: hit_dirc.C:11
void UseFairLinks(Bool_t val)
void SetOutput(TString par)
Tag of the output file of the macro.
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.