ATLAS Offline Software
Loading...
Searching...
No Matches
JetHistoEventLevelFiller.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
9
10JetHistoEventLevelFiller::JetHistoEventLevelFiller( const std::string& type, const std::string & name ,const IInterface* parent):
11 AthAlgTool( type, name, parent )
12 , m_var(this)
13
14{
15 declareInterface<IJetHistoFiller>(this);
16 declareProperty("Var", m_var);
17}
18
19StatusCode JetHistoEventLevelFiller::processJetContainer(const JetMonitoringAlg& parentAlg, const xAOD::JetContainer & jets, const EventContext&) const {
20
21 Monitored::Scalar<float> s( m_var->varName() );
22 s = m_var->value(jets );
23 parentAlg.fill(m_group, s );
24
25 return StatusCode::SUCCESS;
26}
27
Header file to be included by clients of the Monitored infrastructure.
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
virtual StatusCode processJetContainer(const JetMonitoringAlg &parentAlg, const xAOD::JetContainer &jets, const EventContext &ctx) const
Gaudi::Property< std::string > m_group
JetHistoEventLevelFiller(const std::string &type, const std::string &name, const IInterface *parent)
ToolHandle< IEventHistoVarTool > m_var
A monitoring algorithm in charge of filling histogram for a JetContainer.
Declare a monitored scalar variable.
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.
JetContainer_v1 JetContainer
Definition of the current "jet container version".