Go to the source code of this file.
Definition at line 1 of file softrig/qa_softtrig.C.
References t, and x0.
Referenced by qa_softtrig().
5 if (fff.IsZombie()) fileok=
false;
6 TTree *
t=(TTree*)fff.Get(
"pndsim");
7 if (t==0
x0) fileok=
false;
9 if (!fileok) cout <<
"Skipping broken file '"<<fn<<
"'"<<endl;
void qa_softtrig |
( |
TString |
outpre = "M9999" , |
|
|
int |
mode, |
|
|
double |
pmom, |
|
|
int |
from = 1 , |
|
|
int |
to = 1 , |
|
|
int |
nEvents = 0 |
|
) |
| |
Definition at line 13 of file softrig/qa_softtrig.C.
References checkfile(), RhoCalculationTools::ForceConstantBz(), fRun, i, PndSoftTriggerTask::Init(), nEvents, PndSoftTriggerTask::SetEtaSignalParams(), PndSoftTriggerTask::SetGammaMinE(), PndSoftTriggerTask::SetKs0SignalParams(), PndSoftTriggerTask::SetPi0SignalParams(), PndSoftTriggerTask::SetTrackMinP(), and TString.
15 gROOT->Macro(
"$VMCWORKDIR/gconfig/rootlogon.C");
16 gSystem->Load(
"libSofTrig");
18 TString OutFile = outpre+
"_st_qa.root";
19 TString inParFile = TString::Format(
"%s_%d_par.root",outpre.Data(),from);
22 for (
int i=0;
i<1000;++
i) finefile[
i]=
false;
24 FairRunAna *
fRun=
new FairRunAna();
29 for (
int i=from;
i<=to;++
i)
31 TString fname = outpre+
"_"; fname+=
i; fname+=
"_pid.root";
37 if (firstfile) fRun->SetInputFile(fname);
38 else fRun->AddFile(fname);
43 FairLogger::GetLogger()->SetLogToFile(kFALSE);
53 fRun->SetOutputFile(OutFile);
72 TString algo =
"PidAlgoEmcBayes;PidAlgoDrc;PidAlgoDisc;PidAlgoStt;PidAlgoMdtHardCuts";
74 stTask->SetAlgoElectron(algo);
75 stTask->SetAlgoMuon(algo);
76 stTask->SetAlgoPion(algo);
77 stTask->SetAlgoKaon(algo);
78 stTask->SetAlgoProton(algo);
80 fRun->AddTask(stTask);
void SetKs0SignalParams(double mean, double sigma)
void SetPi0SignalParams(double mean, double sigma)
bool checkfile(TString fn)
void SetEtaSignalParams(double mean, double sigma)
void SetTrackMinP(double min)
virtual InitStatus Init()
void SetGammaMinE(double min)