ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetMomentTools
JetMomentTools
JetIsolationTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// JetIsolationTool.h
6
//
7
// Author: P-A. Delsart
8
//
9
10
#ifndef JetIsolationTool_H
11
#define JetIsolationTool_H
12
66
67
#include "
AsgTools/AsgTool.h
"
68
#include "
JetUtils/TiledEtaPhiMap.h
"
69
#include "
JetInterface/IJetDecorator.h
"
70
#include "fastjet/PseudoJet.hh"
71
#include "
JetEDM/IConstituentUserInfo.h
"
72
#include "
StoreGate/ReadDecorHandleKey.h
"
73
#include "
StoreGate/ReadDecorHandle.h
"
74
#include "
StoreGate/WriteDecorHandleKey.h
"
75
#include "
StoreGate/WriteDecorHandleKeyArray.h
"
76
#include "
StoreGate/WriteDecorHandle.h
"
77
#include "
xAODJet/JetContainer.h
"
78
#include "
xAODBase/IParticleContainer.h
"
79
#include "
xAODEventShape/EventShape.h
"
80
81
namespace
jet
{
82
83
namespace
JetIsolation
{
84
class
IsolationCalculator
;
85
}
86
87
88
}
// end namespace jet
89
90
//**********************************************************************
91
92
class
JetIsolationTool
:
public
asg::AsgTool
,
93
virtual
public
IJetDecorator
{
94
ASG_TOOL_CLASS0
(
JetIsolationTool
)
95
96
public
:
97
98
friend
class
jet::JetIsolation::IsolationCalculator
;
99
101
JetIsolationTool
(
const
std::string &myname);
102
104
virtual
~JetIsolationTool
();
105
106
// Athena algtool Hooks
107
virtual
StatusCode
initialize
()
override
;
108
virtual
StatusCode
finalize
()
override
;
109
110
// Jet Modifier methods.
111
virtual
StatusCode
decorate
(
const
xAOD::JetContainer
& jets)
const override
;
112
113
private
:
114
Gaudi::Property<std::vector<std::string>>
m_isolationCodes
{
this
,
"IsolationCalculations"
, {},
"Isolation calculations to be performed"
};
115
Gaudi::Property<std::string>
m_jetContainerName
{
this
,
"JetContainer"
,
""
,
"SG key for the input jet container"
};
116
117
SG::ReadHandleKey<xAOD::IParticleContainer>
m_inputConstitKey
{
this
,
"InputConstitContainer"
,
""
,
"Constituent container to read (should be configured automatically from a JetDefinition)"
};
118
119
120
SG::WriteDecorHandleKeyArray<xAOD::JetContainer>
m_decorKeys
{
this
,
"DecorationKeys"
, {},
"SG key for output momentum decoration (not to be configured manually!)"
};
121
122
SG::ReadHandleKey<xAOD::EventShape>
m_rhoKey
{
this
,
"RhoKey"
,
""
,
"EventDensity for this jet collection. Required only if PtPUsub calculation is done"
};
123
126
// and adapted to the jet object, see implementation)
127
std::vector<jet::JetIsolation::IsolationCalculator*>
m_isoCalculators
;
128
129
130
131
};
132
133
#endif
ASG_TOOL_CLASS0
#define ASG_TOOL_CLASS0(CLASSNAME)
Definition
AsgToolMacros.h:62
AsgTool.h
EventShape.h
IConstituentUserInfo.h
IJetDecorator.h
JetContainer.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadDecorHandle.h
Handle class for reading a decoration on an object.
WriteDecorHandleKeyArray.h
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
WriteDecorHandle.h
Handle class for adding a decoration to an object.
TiledEtaPhiMap.h
Define a fast lookup map for points on the eta-phi cylinder and related utilities.
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
JetIsolationTool::m_decorKeys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_decorKeys
Definition
JetIsolationTool.h:120
JetIsolationTool::m_isolationCodes
Gaudi::Property< std::vector< std::string > > m_isolationCodes
Definition
JetIsolationTool.h:114
JetIsolationTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
JetIsolationTool.cxx:268
JetIsolationTool::JetIsolationTool
JetIsolationTool(const std::string &myname)
Ctor.
Definition
JetIsolationTool.cxx:257
JetIsolationTool::~JetIsolationTool
virtual ~JetIsolationTool()
Dtor.
JetIsolationTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition
JetIsolationTool.h:115
JetIsolationTool::m_isoCalculators
std::vector< jet::JetIsolation::IsolationCalculator * > m_isoCalculators
the list of isolation calculation objects (they are actually used only as template objects from which...
Definition
JetIsolationTool.h:127
JetIsolationTool::m_inputConstitKey
SG::ReadHandleKey< xAOD::IParticleContainer > m_inputConstitKey
Definition
JetIsolationTool.h:117
JetIsolationTool::m_rhoKey
SG::ReadHandleKey< xAOD::EventShape > m_rhoKey
Definition
JetIsolationTool.h:122
JetIsolationTool::finalize
virtual StatusCode finalize() override
Definition
JetIsolationTool.cxx:437
JetIsolationTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition
JetIsolationTool.cxx:346
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
jet::JetIsolation::IsolationCalculator
IsolationCalculator : base class for isolation calculations Implementations of this class encapsulate...
Definition
JetIsolationTool.cxx:33
SG::WriteDecorHandleKeyArray
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
Definition
StoreGate/StoreGate/WriteDecorHandleKeyArray.h:35
jet::JetIsolation
Definition
JetIsolationTool.h:83
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
IParticleContainer.h
Generated on
for ATLAS Offline Software by
1.17.0