FairRoot/PandaRoot
Functions
trackingQA_complete.C File Reference

Go to the source code of this file.

Functions

int trackingQA_complete (TString prefix, TString branch, Int_t nEvents=0)
 

Function Documentation

int trackingQA_complete ( TString  prefix,
TString  branch,
Int_t  nEvents = 0 
)

QA task

Definition at line 4 of file trackingQA_complete.C.

References PndMasterRunAna::AddFriend(), PndMasterRunAna::Finish(), fRun, PndEmcMapper::Init(), nEvents, output, PndMasterRunAna::SetInput(), PndMasterRunAna::SetOutput(), PndMasterRunAna::SetParamAsciiFile(), PndMasterRunAna::Setup(), and TString.

5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString input = "";
9  TString output = "trackingQA_";
10  output.Append(branch);
11  TString friend1 = "standard";
12  TString friend2 = "digi";
13  TString friend3 = "sim";
14  TString friend4 = "idealbarreltracking";
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  // ----- Add tasks ----------------------------------------------------
28  // here comes your tracking code
29 
30 
32  PndTrackingQATask* trackingQA = new PndTrackingQATask(branch, "BarrelIdealTrack");
33  trackingQA->SetVerbose(0);
34  fRun->AddTask(trackingQA);
35 
36  // ----- Intialise and run --------------------------------------------
38  fRun->Init();
39  fRun->Run(0, nEvents);
40  fRun->Finish();
41  return 0;
42 }
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
static void Init(Int_t MapVersion)
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.