10#include "GaudiKernel/MsgStream.h"
11#include "GaudiKernel/StatusCode.h"
33 const IInterface* parent )
100 std::ostringstream hName;
101 std::ostringstream hTitle;
103 hName <<
"gaus_" << i;
104 hTitle <<
"A Gaussian Distribution (" << i <<
", "
106 TH1*
h =
new TH1F( hName.str().c_str(), hTitle.str().c_str(),
109 gaussian_ensemble.
regHist(
h ).ignore();
140 m_graph->SetNameTitle(
"spacepointVsEvent",
"Space-point vs Event");
145 m_ntuple =
new TTree(
"ntupleName",
"ntupleTitle");
152 m_efficiency =
new TEfficiency(
"Efficiency",
"Efficiency (Unmanaged)",10,0,10);
157 return StatusCode::SUCCESS;
181 m_managedHist0_lowStat =
new TH1F(
"managedHist0_lowStat",
"Managed Histogram, regHist Example 0; interval: lowStat", 5, 0.0, 5.0 );
182 m_managedHist1_lowStat =
new TH1F (
"managedHist1_lowStat",
"Managed Histogram, regHist Example 1; interval: lowStat", 5, 0.0, 5.0 );
183 m_managedHist2_lowStat =
new TH1F (
"managedHist2_lowStat",
"Managed Histogram, regHist Example 2; interval: lowStat", 5, 0.0, 5.0 );
185 m_managedHist_lumiBlock =
new TH1F(
"managedHist_lumiBlock",
"Managed Histogram; interval: lumiBlock", 5, 0.0, 5.0 );
186 m_managedHist_eventsBlock =
new TH1F(
"managedHist_eventsBlock",
"Managed Histogram; interval: eventBlock", 5, 0.0, 5.0 );
187 m_managedHist_run =
new TH1F(
"managedHist0_run",
"Managed Histogram; interval: run", 5, 0.0, 5.0 );
190 m_Lumi =
new TH1F(
"Avg_mu",
"Average number of interactions", 100, 0, 100 );
193 MonGroup managed_booking_lowStat(
this,
"Managed/Histograms",
lowStat );
215 MonGroup managed_booking_run(
this,
"Managed/Histograms",
run);
221 m_managedGraph->SetNameTitle(
"spacepointVsEvent_managed",
"Space-point vs Event (Managed)");
247 return StatusCode::SUCCESS;
257 if (lumiPerBCID < 0) {
259 ATH_MSG_INFO(
"No luminosity information available or EnableLumi = False");
261 m_Lumi->Fill(lumiPerBCID);
265 std::vector<TH1*>::const_iterator ensembleEnd =
m_ensembles.end();
266 for( std::vector<TH1*>::const_iterator i =
m_ensembles.begin(); i != ensembleEnd; ++i ) {
306 double a =
m_gen.Uniform(10);
307 bool b =
m_gen.Rndm() < TMath::Gaus(
a,5,4);
316 return StatusCode::SUCCESS;
329 double mean =
h->GetMean();
330 double mean_err =
h->GetMeanError();
331 double rms =
h->GetRMS();
332 double rms_err =
h->GetRMSError();
351 for(
unsigned int i=0; i<
m_event.size(); i++)
355 return StatusCode::SUCCESS;
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Header file for AthHistogramAlgorithm.
static unsigned int lumiBlockNumber()
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
void efficiency(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")