|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef GENERATORMODULES_GENANALYSIS_H
6 #define GENERATORMODULES_GENANALYSIS_H
9 #include "GaudiKernel/ITHistSvc.h"
53 TH1D*
bookHisto1D(
const std::string&
name,
const std::string&
title,
const std::vector<double>& binedges,
54 const std::string&
xtitle=
"",
const std::string& ytitle=
"");
55 TH1D*
bookHisto1D(
const std::string&
name,
const std::string&
title,
size_t numbins,
double low,
double high,
56 const std::string&
xtitle=
"",
const std::string& ytitle=
"");
59 const std::string&
xtitle=
"",
const std::string& ytitle=
"");
61 const std::string&
xtitle=
"",
const std::string& ytitle=
"");
64 const std::vector<double>& binedgesx,
const std::vector<double>& binedgesy,
65 const std::string&
xtitle=
"",
const std::string& ytitle=
"",
const std::string& ztitle=
"");
67 size_t numbinsx,
double xlow,
double xhigh,
68 size_t numbinsy,
double ylow,
double yhigh,
69 const std::string&
xtitle=
"",
const std::string& ytitle=
"",
const std::string& ztitle=
"");
const ServiceHandle< ITHistSvc > histSvc() const
Directly access the histogram service.
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.
virtual StatusCode finalize()
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.
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="")
Base class for evgen-level analyses.
std::string m_histkey
Container name for the MC event collection to be analysed.
virtual StatusCode init()
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="")