29 const
std::
string& name,
33 , m_normFactor( 0.001 )
39 declareProperty(
"shots" , m_shots );
40 declareProperty(
"Normalised" , m_normalised =
false );
41 declareProperty(
"GlobalTiming" , m_globalTiming =
false );
42 declareProperty(
"NameSize" , m_headerSize = 30,
"Number of characters to be used in algorithm name column" );
60 IRndmGenSvc* rsvc = svc<IRndmGenSvc>(
"RndmGenSvc", true );
65 while( 0 < --shots ) { sum +=
gauss() *
sum ; }
70 info() <<
"This machine has a speed about "
72 <<
" times the speed of a 2.8 GHz Xeon." <<
endmsg ;
85 <<
"This machine has a speed about "
87 <<
" times the speed of a 2.8 GHz Xeon.";
107 std::string::size_type beg = name.find_first_not_of(
" \t");
108 std::string::size_type
end = name.find_last_not_of(
" \t");
111 beg =
m_timerList[kk].name().find_first_not_of(
" \t");
112 end =
m_timerList[kk].name().find_last_not_of(
" \t");
123 info() <<
"Saving Timing histograms" <<
endmsg;
125 AIDA::IHistogram1D* histoTime =
book(
"ElapsedTime", 0, bins, bins);
126 AIDA::IHistogram1D* histoCPU =
book(
"CPUTime", 0, bins, bins);
127 AIDA::IHistogram1D* histoCount =
book(
"Count", 0, bins, bins);
131 for (
size_t kk = 0 ; bins > kk ; kk++ ) {
135 tHCount->Fill(tfsq.
name().c_str(), tfsq.
count());