ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetMonitoring
src
JetHistoPtTool.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AthenaMonitoringKernel/Monitored.h
"
6
#include "
JetMonitoring/JetHistoPtTool.h
"
7
#include "
JetMonitoring/JetMonitoringAlg.h
"
8
9
10
JetHistoPtTool::JetHistoPtTool
(
const
std::string&
type
,
const
std::string & name ,
const
IInterface* parent):
11
AthAlgTool
(
type
, name, parent )
12
13
{
14
declareInterface<IJetHistoFiller>(
this
);
15
16
17
}
18
19
StatusCode
JetHistoPtTool::processJetContainer
(
const
JetMonitoringAlg
& parentAlg,
const
xAOD::JetContainer
& jets,
const
EventContext& )
const
{
20
21
std::vector<float> jetPt_v;
22
for
(
const
auto
*
const
jetItr : jets) {
23
jetPt_v.push_back(jetItr->pt()/1000.);
24
}
25
auto
jetPt =
Monitored::Collection
(
"jetPt"
, jetPt_v);
26
parentAlg.
fill
(
m_group
, jetPt);
27
28
return
StatusCode::SUCCESS;
29
}
JetHistoPtTool.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
JetHistoPtTool::m_group
Gaudi::Property< std::string > m_group
Definition
JetHistoPtTool.h:30
JetHistoPtTool::JetHistoPtTool
JetHistoPtTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition
JetHistoPtTool.cxx:10
JetHistoPtTool::processJetContainer
virtual StatusCode processJetContainer(const JetMonitoringAlg &parentAlg, const xAOD::JetContainer &jets, const EventContext &) const
Definition
JetHistoPtTool.cxx:19
JetMonitoringAlg
A monitoring algorithm in charge of filling histogram for a JetContainer.
Definition
JetMonitoringAlg.h:26
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
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition
MonitoredCollection.h:38
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
type
Generated on
for ATLAS Offline Software by
1.17.0