17#include <TStopwatch.h>
39static std::vector<uint32_t>
lbend;
40static uint32_t
minlbstart = cool::ValidityKeyMin & 0xFFFFFFFF;
41static uint32_t
maxlbend = (cool::ValidityKeyMax & 0xFFFFFFFF)/2;
42static uint32_t
minrunnum = (cool::ValidityKeyMin >> 32);
43static uint32_t
maxrunnum = (cool::ValidityKeyMax >> 32);
51 ProgressBar( Int_t, Int_t,
const char * prefix =
"" );
81 TStopwatch::Start( kTRUE );
88 Double_t rt = TStopwatch::RealTime(); TStopwatch::Start( kFALSE );
103 Double_t leftTime = ( icounts <= 0 ? -1 :
115 if (seconds < 0 ) out =
"unknown";
116 else if (seconds <= 300) out = Form(
"%i sec", Int_t(seconds) );
118 if (seconds > 3600) {
119 Int_t
h = Int_t(seconds/3600);
120 if (
h <= 1) out = Form(
"%i hr : ",
h );
121 else out = Form(
"%i hrs : ",
h );
123 seconds = Int_t(seconds)%3600;
125 Int_t m = Int_t(seconds/60);
126 if (m <= 1) out += Form(
"%i min", m );
127 else out += Form(
"%i mins", m );
142 std::clog <<
Prefix <<
" ";
146 for (Int_t it = 0; it<ic; it++){
150 for (Int_t it = ic+1; it<
pbNbins; it++){
156 std::clog <<
"(" << Int_t((100*(i+1))/Float_t(
Ncounts)) <<
"%"
157 <<
", " <<
"time left: " << this->
GetLeftTime( i ) <<
") ";
158 std::clog <<
"\r" << std::flush;
164 struct stat stFileInfo;
169 intStat = stat(strFilename.c_str(),&stFileInfo);
Define macros for attributes used to control the static checker.
Header file for AthHistogramAlgorithm.
void DrawProgressBar(Int_t)
Double_t ElapsedSeconds()
TString GetLeftTime(Int_t)
TString SecToText(Double_t)
ProgressBar(Int_t, Int_t, const char *prefix="")
The header file for the command line option parser generated by GNU Gengetopt version 2....
static uint32_t minlbstart
bool FileExists(const std::string &strFilename)
static std::vector< std::string > triggerchain
static std::vector< uint32_t > lbstart
static std::vector< uint32_t > runnumber
static std::vector< std::string > tagfile
static std::vector< std::string > xmlfile
static std::vector< std::string > rootfile
static std::vector< std::string > aodfile
static uint32_t maxrunnum
static uint32_t minrunnum
static Root::TMsgLogger logger("iLumiCalc")
static std::string livetrigger
static std::vector< uint32_t > lbend
static std::string d3pddirname
static std::string treename
static std::string xmloutfile