Loading [MathJax]/extensions/tex2jax.js
Go to the documentation of this file.
38 declareInterface<ISequencerTimerTool>(
this );
52 IRndmGenSvc* rsvc = svc<IRndmGenSvc>(
"RndmGenSvc",
true );
57 while ( 0 < --shots ) { sum +=
gauss() * sum; }
63 <<
" times the speed of a 2.8 GHz Xeon." <<
endmsg;
76 <<
" times the speed of a 2.8 GHz Xeon.";
77 if (
m_normalised ) info() <<
" *** All times are renormalized ***";
82 if ( lastName == timr.name() )
continue;
83 lastName = timr.name();
99 beg = timer.
name().find_first_not_of(
" \t" );
100 end = timer.
name().find_last_not_of(
" \t" );
101 return timer.
name().compare( beg,
end - beg + 1, temp ) == 0;
111 info() <<
"Saving Timing histograms" <<
endmsg;
113 AIDA::IHistogram1D* histoTime =
book(
"ElapsedTime", 0, bins, bins );
114 AIDA::IHistogram1D* histoCPU =
book(
"CPUTime", 0, bins, bins );
115 AIDA::IHistogram1D* histoCount =
book(
"Count", 0, bins, bins );
120 tHtime->Fill( tfsq.name().c_str(), tfsq.elapsedTotal() );
121 tHCPU->Fill( tfsq.name().c_str(), tfsq.cpuTotal() );
122 tHCount->Fill( tfsq.name().c_str(), tfsq.count() );
const std::string & name() const
returns the name
double lastCpu() const
returns the last measured time
bool PyHelper() setProperty(IInterface *p, char *name, char *value)
T find_last_not_of(T... args)
virtual const std::string & name() const =0
Retrieve the name of the instance.
bool produceHistos() const
get the flag for histogram production (property "HistoProduce")
T find_first_not_of(T... args)
static TH1D * aida2root(AIDA::IHistogram1D *aida)
get the underlying pointer for 1D-histogram
uint64_t stop()
Stop time measurement and return the last elapsed time.
Parameters for the Gauss random number generation.
Random number accessor This small class encapsulates the use of the random number generator.
void start()
Start a time measurement.
AIDA::IHistogram1D * book(const std::string &title, const double low=0, const double high=100, const unsigned long bins=100) const
book the 1D histogram
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
T emplace_back(T... args)
#define DECLARE_COMPONENT(type)
static std::string header(std::string::size_type size)
header matching the previous format
StatusCode finalize() override
standard finalization method
StatusCode initialize() override
standard initialization method