Go to the source code of this file.
int ana_task_mult |
( |
TString |
outpre = "test" , |
|
|
int |
from = 1 , |
|
|
int |
to = 1 , |
|
|
double |
pbarmom = 6.232069 , |
|
|
int |
nevts = 0 |
|
) |
| |
Definition at line 13 of file ana_task_mult.C.
References checkfile(), RhoCalculationTools::ForceConstantBz(), fRun, i, and TString.
16 TString OutPath =
TString(gSystem->Getenv(
"VMCWORKDIR"))+
"/macro/scrut/data";
17 TString Filename = OutPath +
"/" + outpre(outpre.Last(
'/')+1,outpre.Length());
19 TString OutFile = TString::Format(
"%s_fana_%d_%d.root", Filename.Data(), from, to);
20 TString OutDummy = TString::Format(
"%s_dummy_%d_%d.root", Filename.Data(), from, to);
22 FairRunAna *
fRun=
new FairRunAna();
27 for (
int i=from;
i<=to;++
i)
29 TString fname = TString::Format(
"%s_%d_fast.root",outpre.Data(),
i);
34 fRun->SetInputFile(fname);
43 FairLogger::GetLogger()->SetLogToFile(kFALSE);
45 fRun->SetGenerateRunInfo(kFALSE);
46 fRun->SetOutputFile(OutDummy);
53 fRun->AddTask(scrutTask);
bool checkfile(TString fn)
Definition at line 1 of file ana_task_mult.C.
References t, and x0.
Referenced by ana_task_mult().
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;