|
ATLAS Offline Software
|
Go to the documentation of this file.
13 m_histSvc(
"THistSvc",
name)
30 return StatusCode::FAILURE;
46 if (st.isFailure())
return 0;
57 if (st.isFailure())
return 0;
69 if (st.isFailure())
return 0;
80 if (st.isFailure())
return 0;
86 const std::vector<double>& binedgesx,
const std::vector<double>& binedgesy,
87 const std::string&
xtitle,
const std::string&
ytitle,
const std::string& ztitle) {
88 TH2D*
h =
new TH2D(
path.c_str(),
title.c_str(), binedgesx.size()-1, &*binedgesx.begin(), binedgesy.size()-1, &binedgesy.front());
92 h->SetZTitle(ztitle.c_str());
94 if (st.isFailure())
return 0;
99 size_t numbinsx,
double xlow,
double xhigh,
100 size_t numbinsy,
double ylow,
double yhigh,
101 const std::string&
xtitle,
const std::string&
ytitle,
const std::string& ztitle) {
102 TH2D*
h =
new TH2D(
path.c_str(),
title.c_str(), numbinsx, xlow, xhigh, numbinsy, ylow, yhigh);
106 h->SetZTitle(ztitle.c_str());
108 if (st.isFailure())
return 0;
const ServiceHandle< ITHistSvc > histSvc() const
Directly access the histogram service.
path
python interpreter configuration --------------------------------------—
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
TProfile * profile(const std::string &key)
Retrieve a profile histogram.
TProfile * bookProfile1D(const std::string &name, const std::string &title, const std::vector< double > &binedges, const std::string &xtitle="", const std::string &ytitle="")
virtual StatusCode analyze()=0
GenAnalysis(const std::string &name, ISvcLocator *pSvcLocator)
std::string fullhistopath(const std::string &localpath)
Get a histogram's full path, given the name local to the analysis.
Base class for common behaviour of MC truth algorithms.
StatusCode initialize()
Setup analysis tools and call user-supplied init()
def TProfile(*args, **kwargs)
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
TH1 * histo(const std::string &key)
Retrieve a histogram (as TH1* base class pointer)
ServiceHandle< ITHistSvc > m_histSvc
TH1D * bookHisto1D(const std::string &name, const std::string &title, const std::vector< double > &binedges, const std::string &xtitle="", const std::string &ytitle="")
#define ATH_MSG_WARNING(x)
std::string m_histkey
Container name for the MC event collection to be analysed.
virtual StatusCode init()
virtual StatusCode initialize() override
StatusCode execute()
Per-event analysis routine: calls user-supplied analyze()
TH2D * bookHisto2D(const std::string &name, const std::string &title, const std::vector< double > &binedgesx, const std::vector< double > &binedgesy, const std::string &xtitle="", const std::string &ytitle="", const std::string &ztitle="")