#include <iLumiCalc.h>
Definition at line 48 of file iLumiCalc.h.
◆ ProgressBar()
ProgressBar::ProgressBar |
( |
Int_t |
ncounts, |
|
|
Int_t |
nbins, |
|
|
const char * |
prefix = "" |
|
) |
| |
◆ ~ProgressBar()
ProgressBar::~ProgressBar |
( |
| ) |
|
◆ DrawProgressBar()
void ProgressBar::DrawProgressBar |
( |
Int_t |
i | ) |
|
Definition at line 134 of file iLumiCalc.h.
142 std::clog <<
Prefix <<
" ";
156 std::clog <<
"(" << Int_t((100*(
i+1))/Float_t(
Ncounts)) <<
"%"
157 <<
", " <<
"time left: " << this->
GetLeftTime(
i ) <<
") ";
◆ ElapsedSeconds()
Double_t ProgressBar::ElapsedSeconds |
( |
| ) |
|
Definition at line 85 of file iLumiCalc.h.
88 Double_t rt = TStopwatch::RealTime(); TStopwatch::Start( kFALSE );
◆ GetElapsedTime()
TString ProgressBar::GetElapsedTime |
( |
| ) |
|
◆ GetLeftTime()
TString ProgressBar::GetLeftTime |
( |
Int_t |
icounts | ) |
|
Definition at line 100 of file iLumiCalc.h.
103 Double_t leftTime = ( icounts <= 0 ? -1 :
◆ Reset()
void ProgressBar::Reset |
( |
| ) |
|
Definition at line 79 of file iLumiCalc.h.
81 TStopwatch::Start( kTRUE );
◆ SecToText()
TString ProgressBar::SecToText |
( |
Double_t |
seconds | ) |
|
Definition at line 111 of file iLumiCalc.h.
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 );
◆ Ncounts
Int_t ProgressBar::Ncounts |
◆ pbNbins
Int_t ProgressBar::pbNbins |
◆ Prefix
TString ProgressBar::Prefix |
The documentation for this class was generated from the following file: