19#include "GaudiKernel/IToolSvc.h"
43 const std::string& name,
44 const IInterface* parent ) :
47 m_elecPlots(nullptr,
"Summary/Electron/",
"Electron"),
53 m_metPlots(nullptr,
"Summary/MET/",
"RefFinal")
80 return StatusCode::SUCCESS;
86 std::vector<HistData> hists = plots.retrieveBookedHistograms();
88 for (
auto& hist : hists){
89 ATH_MSG_INFO (
"Initializing " << hist.first <<
" " << hist.first->GetName() <<
" " << hist.second <<
"...");
92 return StatusCode::SUCCESS;
109 return StatusCode::SUCCESS;
128 for (
auto jet : *jets) {
138 for (
auto elec : *electrons)
m_elecPlots.fill(elec,event);
145 for (
auto photon : *photons)
m_photonPlots.fill(photon,event);
152 for (
auto muon : *muons)
m_muonPlots.fill(muon,event);
182 return StatusCode::SUCCESS;
187 return StatusCode::SUCCESS;
193 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_DEBUG(x,...)
#define ATH_MSG_WARNING(x,...)
#define ATH_MSG_INFO(x,...)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
size_type size() const noexcept
Returns the number of elements in the collection.
StatusCode book(PlotBase &plots)
virtual StatusCode fillHistograms(const EventContext &ctx)
An inheriting class should either override this function or fillHists().
PhysVal::KinematicsPlots m_elecPlots
virtual ~PhysValExample()
Destructor:
PhysValExample()
Default constructor:
PhysVal::TrkAndVtxPlots m_trkvtxPlots
PhysVal::KinematicsPlots m_jetPlots
virtual StatusCode initialize()
PhysVal::KinematicsPlots m_muonPlots
PhysVal::METPlots m_metPlots
virtual StatusCode bookHistograms()
An inheriting class should either override this function or bookHists().
PhysVal::KinematicsPlots m_photonPlots
PhysVal::EventInfoPlots m_evtPlots
PhysVal::KinematicsPlots m_tauPlots
virtual StatusCode procHistograms()
An inheriting class should either override this function or finalHists().
PhotonContainer_v1 PhotonContainer
Definition of the current "photon container version".
ElectronContainer_v1 ElectronContainer
Definition of the current "electron container version".
EventInfo_v1 EventInfo
Definition of the latest event info version.
MissingET_v1 MissingET
Version control by type defintion.
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
MissingETContainer_v1 MissingETContainer
TrackParticleContainer_v1 TrackParticleContainer
Definition of the current "TrackParticle container version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".
TauJetContainer_v3 TauJetContainer
Definition of the current "taujet container version".
MuonContainer_v1 MuonContainer
Definition of the current "Muon container version".