ATLAS Offline Software
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::processJetContainer
virtual StatusCode processJetContainer(const JetMonitoringAlg &parentAlg, const xAOD::JetContainer &jets, const EventContext &) const
Definition:
JetHistoPtTool.cxx:19
JetHistoPtTool::m_group
Gaudi::Property< std::string > m_group
Definition:
JetHistoPtTool.h:30
Monitored::Collection
ValuesCollection< T > Collection(std::string name, const T &collection)
Declare a monitored (double-convertible) collection.
Definition:
MonitoredCollection.h:38
JetHistoPtTool.h
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
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.
DataVector
Derived DataVector<T>.
Definition:
DataVector.h:581
Monitored.h
Header file to be included by clients of the Monitored infrastructure.
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
JetMonitoringAlg
Definition:
JetMonitoringAlg.h:26
JetHistoPtTool::JetHistoPtTool
JetHistoPtTool(const std::string &type, const std::string &name, const IInterface *parent)
Definition:
JetHistoPtTool.cxx:10
JetMonitoringAlg.h
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
defineDB.jets
list jets
Definition:
JetTagCalibration/share/defineDB.py:24
AthAlgTool
Definition:
AthAlgTool.h:26
Generated on Thu Nov 7 2024 21:18:14 for ATLAS Offline Software by
1.8.18