17 #include <TStopwatch.h>
25 #include <sys/types.h>
27 static std::vector<std::string> tagfile;
28 static std::vector<std::string> aodfile;
29 static std::vector<std::string> xmlfile;
30 static std::vector<std::string>
rootfile;
31 static std::string treename =
"tree";
32 static std::string d3pddirname =
"Lumi";
33 static std::string xmloutfile =
"out.xml";
34 static std::vector<std::string> triggerchain;
35 static std::string livetrigger;
38 static std::vector<uint32_t> lbstart;
39 static std::vector<uint32_t> lbend;
40 static uint32_t minlbstart = cool::ValidityKeyMin & 0xFFFFFFFF;
41 static uint32_t maxlbend = (cool::ValidityKeyMax & 0xFFFFFFFF)/2;
42 static uint32_t minrunnum = (cool::ValidityKeyMin >> 32);
43 static uint32_t maxrunnum = (cool::ValidityKeyMax >> 32);
69 : pbNbins(
nbins), Ncounts(ncounts), Prefix(TString(
prefix))
81 TStopwatch::Start( kTRUE );
88 Double_t rt = TStopwatch::RealTime(); TStopwatch::Start( kFALSE );
103 Double_t leftTime = ( icounts <= 0 ? -1 :
120 if (
h <= 1)
out = Form(
"%i hr : ",
h );
121 else out = Form(
"%i hrs : ",
h );
126 if (
m <= 1)
out += Form(
"%i min",
m );
127 else out += Form(
"%i mins",
m );
142 std::clog <<
Prefix <<
" ";
156 std::clog <<
"(" << Int_t((100*(
i+1))/Float_t(
Ncounts)) <<
"%"
157 <<
", " <<
"time left: " << this->
GetLeftTime( i ) <<
") ";
164 struct stat stFileInfo;
169 intStat =
stat(strFilename.c_str(),&stFileInfo);