13 declareInterface<IJetHistoFiller>(
this);
36 return StatusCode::SUCCESS;
41 if(jets.empty())
return StatusCode::SUCCESS;
66 bool matched = matchedHandle(*
jet);
68 dPt = ptdiffHandle(*
jet);
69 dEnergy = energydiffHandle(*
jet);
70 dMass = massdiffHandle(*
jet);
71 rPt = ptrespHandle(*
jet);
72 rEnergy = energyrespHandle(*
jet);
73 rMass = massrespHandle(*
jet);
74 ptRef = ptrefHandle(*
jet);
75 etaRef = etarefHandle(*
jet);
76 parentAlg.
fill(
m_group, dPt, dEnergy, dMass, rPt, rEnergy, rMass, ptRef, etaRef);
81 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
JetHistoMatchedFiller(const std::string &type, const std::string &name, const IInterface *parent)
Gaudi::Property< std::string > m_group
virtual StatusCode processJetContainer(const JetMonitoringAlg &parentAlg, const xAOD::JetContainer &jets, const EventContext &ctx) const
SG::ReadDecorHandleKey< xAOD::JetContainer > m_massrespKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_ptdiffKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_etarefKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_massdiffKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_energyrespKey
virtual StatusCode initialize()
SG::ReadDecorHandleKey< xAOD::JetContainer > m_matchedKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_ptrefKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_energydiffKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_ptrespKey
A monitoring algorithm in charge of filling histogram for a JetContainer.
Declare a monitored scalar variable.
Handle class for reading a decoration on an object.
void fill(const ToolHandle< GenericMonitoringTool > &groupHandle, std::vector< std::reference_wrapper< Monitored::IMonitoredVariable > > &&variables) const
Fills a vector of variables to a group by reference.
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".