ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetMonitoring
src
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
5
#include "
AthenaMonitoringKernel/Monitored.h
"
6
#include "
JetMonitoring/JetHistoEventLevelFiller.h
"
7
#include "
JetMonitoring/JetMonitoringAlg.h
"
8
#include "
xAODEventInfo/EventInfo.h
"
9
10
JetHistoEventLevelFiller::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
19
StatusCode
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
JetHistoEventLevelFiller.h
JetMonitoringAlg.h
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
AthAlgTool::AthAlgTool
AthAlgTool(const std::string &type, const std::string &name, const IInterface *parent)
Constructor with parameters:
Definition
AthAlgTool.cxx:16
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
Definition
AthCommonDataStore.h:145
JetHistoEventLevelFiller::processJetContainer
virtual StatusCode processJetContainer(const JetMonitoringAlg &parentAlg, const xAOD::JetContainer &jets, const EventContext &ctx) const
Definition
JetHistoEventLevelFiller.cxx:19
JetHistoEventLevelFiller::m_group
Gaudi::Property< std::string > m_group
Definition
JetHistoEventLevelFiller.h:25
JetHistoEventLevelFiller::JetHistoEventLevelFiller
JetHistoEventLevelFiller(const std::string &type, const std::string &name, const IInterface *parent)
Definition
JetHistoEventLevelFiller.cxx:10
JetHistoEventLevelFiller::m_var
ToolHandle< IEventHistoVarTool > m_var
Definition
JetHistoEventLevelFiller.h:26
JetMonitoringAlg
A monitoring algorithm in charge of filling histogram for a JetContainer.
Definition
JetMonitoringAlg.h:26
Monitored::Scalar
Declare a monitored scalar variable.
Definition
MonitoredScalar.h:34
AthMonitorAlgorithm::fill
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.
Definition
AthMonitorAlgorithm.cxx:99
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
type
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0