ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetMomentTools
JetMomentTools
JetNumConstitTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef JetMomentTools_JetNumConstitTool_H
6
#define JetMomentTools_JetNumConstitTool_H
7
11
12
#include "
JetInterface/IJetDecorator.h
"
13
#include "
AsgTools/AsgTool.h
"
14
#include "
AsgTools/PropertyWrapper.h
"
15
#include "
AsgDataHandles/WriteDecorHandleKey.h
"
16
17
class
JetNumConstitTool
:
public
asg::AsgTool
,
18
virtual
public
IJetDecorator
{
19
ASG_TOOL_CLASS
(
JetNumConstitTool
,
IJetDecorator
)
20
21
public
:
22
23
// Constructor from tool name.
24
JetNumConstitTool
(
const
std::string& myname);
25
26
virtual
StatusCode
initialize
()
override
;
27
28
// Inherited method to decorate a jet container.
29
// Calls width and puts the result on the jets.
30
virtual
StatusCode
decorate
(
const
xAOD::JetContainer
& jets)
const override
;
31
32
private
:
33
34
Gaudi::Property<std::string>
m_jetContainerName
{
this
,
"JetContainer"
,
""
,
"SG key for the input jet container"
};
35
36
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_numConstitKey
{
this
,
"numConstitKey"
,
"numConstit"
,
"SG key for number of constituents decoration (not including jet container name)"
};
37
38
};
39
40
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
WriteDecorHandleKey.h
IJetDecorator.h
PropertyWrapper.h
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
JetNumConstitTool::JetNumConstitTool
JetNumConstitTool(const std::string &myname)
Definition
JetNumConstitsTool.cxx:10
JetNumConstitTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
JetNumConstitsTool.cxx:16
JetNumConstitTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition
JetNumConstitsTool.cxx:32
JetNumConstitTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition
JetNumConstitTool.h:34
JetNumConstitTool::m_numConstitKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_numConstitKey
Definition
JetNumConstitTool.h:36
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
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