29 declareInterface<ISequencerTimerTool>( this );
44 IRndmGenSvc* rsvc = svc<IRndmGenSvc>(
"RndmGenSvc", true );
49 while ( 0 < --shots ) {
57 <<
" times the speed of a 2.8 GHz Xeon." <<
endmsg;
70 <<
" times the speed of a 2.8 GHz Xeon.";
76 if ( lastName == timr.name() )
continue;
77 lastName = timr.name();
92 auto temp = name.
substr( beg,
end - beg + 1 );
107 info() <<
"Saving Timing histograms" <<
endmsg;
109 AIDA::IHistogram1D* histoTime =
book(
"ElapsedTime", 0, bins, bins );
110 AIDA::IHistogram1D* histoCPU =
book(
"CPUTime", 0, bins, bins );
111 AIDA::IHistogram1D* histoCount =
book(
"Count", 0, bins, bins );
116 tHtime->Fill( tfsq.name().c_str(), tfsq.elapsedTotal() );
117 tHCPU->Fill( tfsq.name().c_str(), tfsq.cpuTotal() );
118 tHCount->Fill( tfsq.name().c_str(), tfsq.count() );
StatusCode setProperty(IProperty *component, const std::string &name, const TYPE &value, const std::string &doc)
simple function to set the property of the given object from the value
static std::string header(std::string::size_type size)
header matching the previous format
GAUDI_API std::string format(const char *,...)
MsgStream format utility "a la sprintf(...)".
T find_first_not_of(T...args)
MsgStream & info() const
shortcut for the method msgStream(MSG::INFO)
StatusCode finalize() override
standard finalization method
double sum(double x, double y, double z)
uint64_t stop()
Stop time measurement and return the last elapsed time.
double lastCpu() const
returns the last measured time
Parameters for the Gauss random number generation.
void start()
Start a time measurement.
bool isFailure() const
Test for a status code of FAILURE.
#define DECLARE_COMPONENT(type)
Random number accessor This small class encapsulates the use of the random number generator...
Random Generator service interface definition Definition of a interface for a service to access rando...
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
auto end(reverse_wrapper< T > &w)
static TH1D * aida2root(AIDA::IHistogram1D *aida)
get the underlying pointer for 1D-histogram
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
T find_last_not_of(T...args)
StatusCode initialize() override
standard initialization method
bool produceHistos() const
get the flag for histogram production (property "HistoProduce")
const std::string & name() const
returns the name
virtual StatusCode initialize(const SmartIF< IRndmGenSvc > &svc, const IRndmGen::Param &par)
Initialization.
MsgStream & endmsg(MsgStream &s)
MsgStream Modifier: endmsg. Calls the output method of the MsgStream.
virtual const std::string & name() const =0
Retrieve the name of the instance.