ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetMomentTools
JetMomentTools
JetWidthTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
// JetWidthTool.h
6
7
#ifndef JetMomentTools_JetWidthTool_H
8
#define JetMomentTools_JetWidthTool_H
9
14
15
#include "
JetInterface/IJetDecorator.h
"
16
#include "
AsgTools/AsgTool.h
"
17
#include "
AsgTools/PropertyWrapper.h
"
18
#include "
AsgTools/ToolHandle.h
"
19
#include "
AsgDataHandles/WriteDecorHandleKey.h
"
20
21
#include "
PFlowUtils/IWeightPFOTool.h
"
22
23
class
JetWidthTool
:
public
asg::AsgTool
,
24
virtual
public
IJetDecorator
{
25
ASG_TOOL_CLASS
(
JetWidthTool
,
IJetDecorator
)
26
27
public
:
28
29
// Constructor from tool name.
30
JetWidthTool
(
const
std::string& myname);
31
32
virtual
StatusCode
initialize
()
override
;
33
34
// Inherited method to decorate a jet container.
35
// Calls width and puts the result on the jets.
36
virtual
StatusCode
decorate
(
const
xAOD::JetContainer
& jets)
const override
;
37
38
// Local method to calculate and return the width.
39
float
width
(
const
xAOD::Jet
&
jet
,
float
& widthEta,
float
& widthPhi)
const
;
40
41
private
:
42
43
Gaudi::Property<std::string>
m_jetContainerName
{
this
,
"JetContainer"
,
""
,
44
"SG key for the input jet container"
};
45
46
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_widthKey
{
this
,
"WidthKey"
,
"Width"
,
47
"SG key for width decoration (not including jet container name)"
};
48
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_widthPhiKey
{
this
,
"WidthPhiKey"
,
"WidthPhi"
,
49
"SG key for width phi decoration (not including jet container name)"
};
50
};
51
52
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
WriteDecorHandleKey.h
IJetDecorator.h
IWeightPFOTool.h
PropertyWrapper.h
width
const double width
Definition
TTileTripReader.cxx:24
ToolHandle.h
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
JetWidthTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition
JetWidthTool.cxx:40
JetWidthTool::m_widthPhiKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_widthPhiKey
Definition
JetWidthTool.h:48
JetWidthTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
JetWidthTool.cxx:22
JetWidthTool::JetWidthTool
JetWidthTool(const std::string &myname)
Definition
JetWidthTool.cxx:15
JetWidthTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition
JetWidthTool.h:43
JetWidthTool::m_widthKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_widthKey
Definition
JetWidthTool.h:46
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0