|
ATLAS Offline Software
|
Go to the documentation of this file.
31 return StatusCode::SUCCESS;
36 if (not trigDecTool->isPassed(
chain, TrigDefs::requireDecision)) {
42 auto jetPt =
Collection(
"jetPt", *jetsHandle, [](
const auto&
jet) {
return jet->pt() * 1.
e-3; });
47 if (leadingJet ==
nullptr) {
52 auto leadingJetPt =
Scalar(
"leadingJetPt", leadingJet->pt() * 1.e-3);
53 auto leadingJetEta =
Scalar(
"leadingJetEta", leadingJet->eta());
54 auto leadingJetPhi =
Scalar(
"leadingJetPhi", leadingJet->phi());
56 fill(
chain +
"_" +
m_jetKey.key(), jetPt, jetEta, jetPhi, leadingJetPt, leadingJetEta, leadingJetPhi);
59 return StatusCode::SUCCESS;
virtual StatusCode fillHistograms(const EventContext &context) const override
adds event to the monitoring histograms
const ToolHandle< Trig::TrigDecisionTool > & getTrigDecisionTool() const
Get the trigger decision tool member.
virtual double phi() const
The azimuthal angle ( ) of the particle.
Gaudi::Property< std::vector< std::string > > m_chains
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
const xAOD::Jet * findLeadingJet(SG::ReadHandle< xAOD::JetContainer > &container)
Find leading jet.
Base class for Athena Monitoring Algorithms.
virtual StatusCode initialize() override
initialize
Generic monitoring tool for athena components.
::StatusCode StatusCode
StatusCode definition for legacy code.
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.
FwdAFPJetMonitoringAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual double eta() const
The pseudorapidity ( ) of the particle.
virtual StatusCode initialize() override
initialize
Gaudi::Property< SG::ReadHandleKey< xAOD::JetContainer > > m_jetKey
Declare a monitored scalar variable.