21 PlotMgr* pParent,
const std::string& dirName,
22 const std::string& anaTag,
bool doEfficiency ) :
23 PlotMgr( dirName, anaTag, pParent ),
33 if(
sc.isFailure() ) {
51 return StatusCode::SUCCESS;
60 bool isMatched,
float weight )
66 return StatusCode::FAILURE;
70 float ppt =
pT( track ) / Gaudi::Units::GeV;
71 float pet =
eT( *ele ) / Gaudi::Units::GeV;
82 return StatusCode::SUCCESS;
90 return StatusCode::FAILURE;
#define ATH_CHECK
Evaluate an expression and check for errors.
Utility methods to access offline object decorations.
Utility methods to access track/truth particles parmeters in a consitent way in this package.
void finalizePlots()
Print out final stats on histograms.
OfflineElectronPlots(PlotMgr *pParent, const std::string &dirName, const std::string &anaTag, bool doEfficiency=false)
Constructor.
StatusCode fillPlots(const xAOD::TrackParticle &track, bool isMatched, float weight)
Dedicated fill methods.
TEfficiency * m_eff_vs_EtOverPt
void initializePlots()
Book the histograms.
TEfficiency * m_eff_vs_Et
TODO - include more plots.
StatusCode retrieveAndBook(P *&pHisto, const std::string &identifier, const std::string &folderOverride="", const std::string &nameOverride="")
PlotMgr(const std::string &dirName, const std::string &anaTag, PlotMgr *pParent=nullptr)
Constructor taking parent node and directory name for plots pParent = nullptr by default to book plot...
const std::string & getDirectory()
float pT(const U &p)
Accessor utility function for getting the value of pT.
float eT(const U &p)
Accessor utility function for getting the value of Tranverse energy.
const xAOD::Electron * getLinkedElectron(const xAOD::TrackParticle &track, const std::string &quality)
getLinkedElectron
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TruthParticle_v1 TruthParticle
Typedef to implementation.
Electron_v1 Electron
Definition of the current "egamma version".
void fill(H5::Group &out_file, size_t iterations)