|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "GaudiKernel/MsgStream.h"
11 #include "GaudiKernel/StatusCode.h"
35 , m_generatorIsInit(false)
36 , m_generatorSeedProp(65539)
39 , m_ensembleMeanPull(0)
40 , m_ensembleMeanPullDist(0)
41 , m_managedHist0_lowStat(0)
42 , m_managedHist1_lowStat(0)
43 , m_managedHist2_lowStat(0)
44 , m_managedHist_lumiBlock(0)
45 , m_managedHist_eventsBlock(0)
46 , m_managedHist_run(0)
58 , m_managedEfficiency(0)
59 , m_managedEfficiencyXLB(0)
60 , m_managedGraphXLB(0)
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 );
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();
355 return StatusCode::SUCCESS;
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="")
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
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="")
::StatusCode StatusCode
StatusCode definition for legacy code.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
static unsigned int lumiBlockNumber()