FairRoot/PandaRoot
Functions
ana_triple_task.C File Reference

Go to the source code of this file.

Functions

void ana_triple_task (TString Fname="test", int mode, int nevts=0, double pbarmom=9.0)
 

Function Documentation

void ana_triple_task ( TString  Fname = "test",
int  mode,
int  nevts = 0,
double  pbarmom = 9.0 
)

Definition at line 1 of file ana_triple_task.C.

References RhoCalculationTools::ForceConstantBz(), fRun, and TString.

2 {
3  // *** the output file for FairRunAna
4  TString InFile = Fname;
5  if (!InFile.EndsWith(".root")) InFile+="_fast.root";
6 
7  // *** initialization
8  FairLogger::GetLogger()->SetLogToFile(kFALSE);
9 
10  FairRunAna* fRun = new FairRunAna();
11  fRun->SetGenerateRunInfo(kFALSE);
12  fRun->SetInputFile(InFile);
13  fRun->SetOutputFile(Fname+"_dummy.root");
14 
15  // *** take constant field; needed for PocaVtx
17 
18  // *** HERE OUR ANALYSIS TASK GOES!
19  PndTripleAnaTask *tripTask = new PndTripleAnaTask(pbarmom, Fname+"_taskana.root",mode,"PidChargedProbability");
20  fRun->AddTask(tripTask);
21 
22  // *** and run analysis
23  fRun->Init();
24  fRun->Run(0,nevts);
25 }
static void ForceConstantBz(Double_t bz=0.)
Force a constant B field value for all positions.
FairRunAna * fRun
Definition: hit_dirc.C:58
Int_t mode
Definition: autocutx.C:47