ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetMomentTools
JetMomentTools
JetConstituentFrac.h
Go to the documentation of this file.
1
2
3
/*
4
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
5
*/
6
7
// JetConstituentFrac
8
// Implementation of jet modifier to compute energy fractions of charge/neutral constituents
10
11
#ifndef JETMOMENTTOOLS_JETCONSTITUENTFRAC_H
12
#define JETMOMENTTOOLS_JETCONSTITUENTFRAC_H
13
14
#include "
AsgTools/AsgTool.h
"
15
#include "
AsgTools/PropertyWrapper.h
"
16
#include "
JetInterface/IJetDecorator.h
"
17
#include "
AsgDataHandles/WriteDecorHandleKey.h
"
18
#include "
xAODJet/JetContainer.h
"
19
20
class
JetConstituentFrac
:
public
asg::AsgTool
,
21
virtual
public
IJetDecorator
{
22
ASG_TOOL_CLASS0
(
JetConstituentFrac
)
23
public
:
24
25
JetConstituentFrac
(
const
std::string & t);
26
27
virtual
StatusCode
initialize
()
override
;
28
virtual
StatusCode
decorate
(
const
xAOD::JetContainer
& jets)
const override
;
29
30
protected
:
31
void
fillConstituentFrac
(
const
xAOD::Jet
&
jet
)
const
;
32
33
private
:
34
Gaudi::Property<std::string>
m_jetContainerName
{
this
,
"JetContainer"
,
""
,
"SG key for the input jet container"
};
35
36
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_neutralEFracKey
{
this
,
"NeutralEFracName"
,
"NeutralEFrac"
,
"SG key for the NeutralEFrac attribute"
};
37
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_chargePTFracKey
{
this
,
"ChargePTFracName"
,
"ChargePTFrac"
,
"SG key for the ChargePTFrac attribute"
};
38
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_chargeMFracKey
{
this
,
"ChargeMFracName"
,
"ChargeMFrac"
,
"SG key for the ChargeMFrac attribute"
};
39
40
};
41
42
43
#undef ASG_DERIVED_TOOL_CLASS
44
#endif
45
ASG_TOOL_CLASS0
#define ASG_TOOL_CLASS0(CLASSNAME)
Definition
AsgToolMacros.h:62
AsgTool.h
WriteDecorHandleKey.h
IJetDecorator.h
JetContainer.h
PropertyWrapper.h
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
JetConstituentFrac::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
JetConstituentFrac.cxx:19
JetConstituentFrac::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition
JetConstituentFrac.cxx:40
JetConstituentFrac::m_chargeMFracKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_chargeMFracKey
Definition
JetConstituentFrac.h:38
JetConstituentFrac::m_neutralEFracKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_neutralEFracKey
Definition
JetConstituentFrac.h:36
JetConstituentFrac::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition
JetConstituentFrac.h:34
JetConstituentFrac::JetConstituentFrac
JetConstituentFrac(const std::string &t)
Definition
JetConstituentFrac.cxx:14
JetConstituentFrac::m_chargePTFracKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_chargePTFracKey
Definition
JetConstituentFrac.h:37
JetConstituentFrac::fillConstituentFrac
void fillConstituentFrac(const xAOD::Jet &jet) const
Definition
JetConstituentFrac.cxx:50
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