32 return StatusCode::SUCCESS;
43 auto jetPt =
Collection(
"jetPt", *jetsHandle, [](
const auto&
jet) {
return jet->pt() * 1.e-3; });
48 if (leadingJet ==
nullptr) {
49 fill(chain +
"_" +
m_jetKey.key(), jetPt, jetEta, jetPhi);
53 auto leadingJetPt =
Scalar(
"leadingJetPt", leadingJet->pt() * 1.e-3);
54 auto leadingJetEta =
Scalar(
"leadingJetEta", leadingJet->eta());
55 auto leadingJetPhi =
Scalar(
"leadingJetPhi", leadingJet->phi());
57 fill(chain +
"_" +
m_jetKey.key(), jetPt, jetEta, jetPhi, leadingJetPt, leadingJetEta, leadingJetPhi);
60 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode initialize() override
initialize
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
AthMonitorAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Property< std::vector< std::string > > m_chains
virtual StatusCode initialize() override
initialize
FwdAFPJetMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode fillHistograms(const EventContext &context) const override
adds event to the monitoring histograms
Gaudi::Property< SG::ReadHandleKey< xAOD::JetContainer > > m_jetKey
Declare a monitored scalar variable.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual double phi() const
The azimuthal angle ( ) of the particle.
virtual double eta() const
The pseudorapidity ( ) of the particle.
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.
Generic monitoring tool for athena components.
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
static const unsigned int requireDecision
const xAOD::Jet * findLeadingJet(SG::ReadHandle< xAOD::JetContainer > &container)
Find leading jet.