Go to the source code of this file.
void attachFiles |
( |
FairRunAna * |
fRun, |
|
|
TString |
pref, |
|
|
int |
min, |
|
|
int |
max |
|
) |
| |
Definition at line 17 of file macro/softrig/qa_softtrig.C.
References checkfile(), i, max(), and TString.
Referenced by qa_softtrig().
21 TString fname = TString::Format(
"%s_%d_pid.root",pref.Data(),
i);
24 if (firstfile)
fRun->SetInputFile(fname);
25 else fRun->AddFile(fname);
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
friend F32vec4 min(const F32vec4 &a, const F32vec4 &b)
bool checkfile(TString fn)
Definition at line 2 of file macro/softrig/qa_softtrig.C.
References t, and x0.
Referenced by attachFiles().
6 if (fff.IsZombie()) fileok=
false;
7 TTree *
t=(TTree*)fff.Get(
"pndsim");
8 if (t==0
x0) fileok=
false;
10 if (!fileok) cout <<
"Skipping broken file '"<<fn<<
"'"<<endl;
int qa_softtrig |
( |
TString |
pref = "M9999" , |
|
|
int |
mode, |
|
|
double |
pmom, |
|
|
int |
from = 1 , |
|
|
int |
to = 1 , |
|
|
int |
nEvents = 0 , |
|
|
int |
run = 0 |
|
) |
| |
Definition at line 31 of file macro/softrig/qa_softtrig.C.
References attachFiles(), RhoCalculationTools::ForceConstantBz(), fRun, nEvents, run, and TString.
33 TString OutFile = TString::Format(
"%s_%d_%d_sof.root",pref.Data(),from, to);
35 FairRunAna *
fRun=
new FairRunAna();
41 FairLogger::GetLogger()->SetLogToFile(kFALSE);
44 fRun->SetOutputFile(OutFile);
55 TString triggercfg =
TString(gSystem->Getenv(
"VMCWORKDIR"))+
"/softrig/triggerlines.cfg";
59 TString selectioncfg =
TString(gSystem->Getenv(
"VMCWORKDIR"))+
"/softrig/selection_10ch_loose.cfg";
62 stTask->SetConfigurationFile(selectioncfg);
64 TString algo =
"PidAlgoEmcBayes;PidAlgoDrc;PidAlgoDisc;PidAlgoStt;PidAlgoMdtHardCuts";
66 stTask->SetPidAlgoAll(algo);
68 stTask->SetTagAll(
true);
71 stTask->SetQAAll(
true);
74 stTask->SetGammaMinE(0.10);
75 stTask->SetTrackMinP(0.10);
76 stTask->SetInitialPidCut(0.1);
80 fRun->AddTask(stTask);
void attachFiles(FairRunAna *fRun, TString pref, int min, int max)