FairRoot/PandaRoot
Functions
pidTest_complete.C File Reference

Go to the source code of this file.

Functions

int pidTest_complete (Int_t nEvents=0, TString prefix="evtcomplete")
 

Function Documentation

int pidTest_complete ( Int_t  nEvents = 0,
TString  prefix = "evtcomplete" 
)

Definition at line 4 of file pidTest_complete.C.

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

5 {
6  //-----User Settings:------------------------------------------------------
7  TString parAsciiFile = "all.par";
8  TString input = "psi2s_Jpsi2pi_Jpsi_mumu.dec";
9  TString output = "pidTest";
10  TString friend1 = "digi";
11  TString friend2 = "reco";
12  TString friend3 = "";
13  TString friend4 = "pid";
14  TString options = "";
15  // ----- Initial Settings --------------------------------------------
17  fRun->SetInput(input);
18  fRun->SetOutput(output);
19  fRun->AddFriend(friend1);
20  fRun->AddFriend(friend2);
21  fRun->AddFriend(friend3);
22  fRun->AddFriend(friend4);
23  fRun->SetParamAsciiFile(parAsciiFile);
24  fRun->SetOptions(fRun->GetOptions()+options);
25  fRun->Setup(prefix);
26 
27  // ----- Add tasks ----------------------------------------------------
28 // fRun->SetOptions("multikalman");
29  PndPidTestTask *anaTask = new PndPidTestTask();
30  anaTask->SetVerbose(3);
31  anaTask->SetClassifier("PidAlgoMvd;PidAlgoStt;PidAlgoDrc;PidAlgoMdtHardCuts;PidAlgoEmcBayes;PidAlgoDisc;PidAlgoSciT"); //("PidAlgoIdealCharged");
32  anaTask->SetSelector("Tight");
33  fRun->AddTask(anaTask);
34 
35  // ----- Intialise and run --------------------------------------------
37  fRun->Init();
38  fRun->Run(0, nEvents);
39  fRun->Finish();
40  return 0;
41 }
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)
TString GetOptions()
void SetClassifier(TString val)
void SetOptions(TString par)
Setter of the reconstruction options This string can be: "" -> default settings "day1" -> Setup for ...
void Finish()
Final diagnostics.
void SetOutput(TString par)
Tag of the output file of the macro.
void SetSelector(TString val)
void SetParamAsciiFile(TString par)
Setter of the parameter ascii file.