ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetSubStructureMomentTools
JetSubStructureMomentTools
EnergyCorrelatorRatiosTool.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3
*/
4
18
19
#ifndef jetsubstructuremomenttools_energycorrelatorratiostool_header
20
#define jetsubstructuremomenttools_energycorrelatorratiostool_header
21
22
#include "
JetSubStructureMomentTools/JetSubStructureMomentToolsBase.h
"
23
#include "
JetSubStructureMomentTools/ECFHelper.h
"
24
25
class
EnergyCorrelatorRatiosTool
:
26
public
JetSubStructureMomentToolsBase
{
27
ASG_TOOL_CLASS
(
EnergyCorrelatorRatiosTool
,
IJetModifier
)
28
29
public
:
30
32
EnergyCorrelatorRatiosTool
(
const
std::string& name);
33
34
virtual
StatusCode
initialize
()
override
;
35
36
int
modifyJet
(
xAOD::Jet
&
jet
)
const override
;
37
38
private
:
39
41
struct
moments_t
;
42
44
bool
m_doC3
;
45
bool
m_doC4
;
46
std::vector<float>
m_rawBetaVals
;
47
bool
m_doDichroic
;
48
50
std::map< float, moments_t >
m_moments
;
51
52
};
53
61
62
struct
EnergyCorrelatorRatiosTool::moments_t
{
63
65
std::string
prefix
;
66
68
std::string
suffix
;
69
71
float
beta
;
72
74
std::unique_ptr< SG::AuxElement::ConstAccessor<float> >
acc_ECF1
;
75
std::unique_ptr< SG::AuxElement::ConstAccessor<float> >
acc_ECF2
;
76
std::unique_ptr< SG::AuxElement::ConstAccessor<float> >
acc_ECF3
;
77
std::unique_ptr< SG::AuxElement::ConstAccessor<float> >
acc_ECF4
;
78
std::unique_ptr< SG::AuxElement::ConstAccessor<float> >
acc_ECF5
;
79
81
std::unique_ptr< SG::AuxElement::ConstAccessor<float> >
acc_ECF1_ungroomed
;
82
std::unique_ptr< SG::AuxElement::ConstAccessor<float> >
acc_ECF2_ungroomed
;
83
std::unique_ptr< SG::AuxElement::ConstAccessor<float> >
acc_ECF3_ungroomed
;
84
86
std::unique_ptr< SG::AuxElement::Decorator<float> >
dec_C1
;
87
std::unique_ptr< SG::AuxElement::Decorator<float> >
dec_C2
;
88
std::unique_ptr< SG::AuxElement::Decorator<float> >
dec_C3
;
89
std::unique_ptr< SG::AuxElement::Decorator<float> >
dec_C4
;
90
std::unique_ptr< SG::AuxElement::Decorator<float> >
dec_D2
;
91
93
std::unique_ptr< SG::AuxElement::Decorator<float> >
dec_D2_dichroic
;
94
95
moments_t
(
float
Beta,
const
std::string& Prefix)
96
:
prefix
(Prefix),
97
suffix
(
GetBetaSuffix
(Beta)),
98
beta
(Beta),
99
100
acc_ECF1
(
std
::make_unique<
SG
::AuxElement::ConstAccessor<float> >(
prefix
+
"ECF1"
+
suffix
)),
101
acc_ECF2
(
std
::make_unique<
SG
::AuxElement::ConstAccessor<float> >(
prefix
+
"ECF2"
+
suffix
)),
102
acc_ECF3
(
std
::make_unique<
SG
::AuxElement::ConstAccessor<float> >(
prefix
+
"ECF3"
+
suffix
)),
103
acc_ECF4
(
std
::make_unique<
SG
::AuxElement::ConstAccessor<float> >(
prefix
+
"ECF4"
+
suffix
)),
104
acc_ECF5
(
std
::make_unique<
SG
::AuxElement::ConstAccessor<float> >(
prefix
+
"ECF5"
+
suffix
)),
105
106
acc_ECF1_ungroomed
(
std
::make_unique<
SG
::AuxElement::ConstAccessor<float> >(
prefix
+
"ECF1_ungroomed"
+
suffix
)),
107
acc_ECF2_ungroomed
(
std
::make_unique<
SG
::AuxElement::ConstAccessor<float> >(
prefix
+
"ECF2_ungroomed"
+
suffix
)),
108
acc_ECF3_ungroomed
(
std
::make_unique<
SG
::AuxElement::ConstAccessor<float> >(
prefix
+
"ECF3_ungroomed"
+
suffix
)),
109
110
dec_C1
(
std
::make_unique<
SG
::AuxElement::Decorator<float> >(
prefix
+
"C1"
+
suffix
)),
111
dec_C2
(
std
::make_unique<
SG
::AuxElement::Decorator<float> >(
prefix
+
"C2"
+
suffix
)),
112
dec_C3
(
std
::make_unique<
SG
::AuxElement::Decorator<float> >(
prefix
+
"C3"
+
suffix
)),
113
dec_C4
(
std
::make_unique<
SG
::AuxElement::Decorator<float> >(
prefix
+
"C4"
+
suffix
)),
114
dec_D2
(
std
::make_unique<
SG
::AuxElement::Decorator<float> >(
prefix
+
"D2"
+
suffix
)),
115
116
dec_D2_dichroic
(
std
::make_unique<
SG
::AuxElement::Decorator<float> >(
prefix
+
"D2_dichroic"
+
suffix
))
117
{
118
}
119
120
};
121
122
#endif
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
ECFHelper.h
GetBetaSuffix
std::string GetBetaSuffix(float beta)
Definition
ECFHelper.cxx:10
JetSubStructureMomentToolsBase.h
EnergyCorrelatorRatiosTool::m_doC4
bool m_doC4
Definition
EnergyCorrelatorRatiosTool.h:45
EnergyCorrelatorRatiosTool::m_doC3
bool m_doC3
Configurable as properties.
Definition
EnergyCorrelatorRatiosTool.h:44
EnergyCorrelatorRatiosTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
EnergyCorrelatorRatiosTool.cxx:17
EnergyCorrelatorRatiosTool::m_moments
std::map< float, moments_t > m_moments
Map of moment accessors and decorators using beta as the key.
Definition
EnergyCorrelatorRatiosTool.h:50
EnergyCorrelatorRatiosTool::modifyJet
int modifyJet(xAOD::Jet &jet) const override
Modify a single jet. This is obsolete and set to be removed.
Definition
EnergyCorrelatorRatiosTool.cxx:56
EnergyCorrelatorRatiosTool::m_doDichroic
bool m_doDichroic
Vector of input values before cleaning.
Definition
EnergyCorrelatorRatiosTool.h:47
EnergyCorrelatorRatiosTool::m_rawBetaVals
std::vector< float > m_rawBetaVals
Definition
EnergyCorrelatorRatiosTool.h:46
EnergyCorrelatorRatiosTool::EnergyCorrelatorRatiosTool
EnergyCorrelatorRatiosTool(const std::string &name)
Constructor.
Definition
EnergyCorrelatorRatiosTool.cxx:8
IJetModifier
IJetModifier is a dual-use tool interface for a tool that modifies a jet collection.
Definition
IJetModifier.h:20
JetSubStructureMomentToolsBase::JetSubStructureMomentToolsBase
JetSubStructureMomentToolsBase(const std::string &name)
Definition
JetSubStructureMomentToolsBase.cxx:8
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
jet
Definition
JetCalibTools_PlotJESFactors.cxx:23
std
STL namespace.
xAOD::Jet
Jet_v1 Jet
Definition of the current "jet version".
Definition
Event/xAOD/xAODJet/xAODJet/Jet.h:17
EnergyCorrelatorRatiosTool::moments_t
Definition
EnergyCorrelatorRatiosTool.h:62
EnergyCorrelatorRatiosTool::moments_t::acc_ECF3
std::unique_ptr< SG::AuxElement::ConstAccessor< float > > acc_ECF3
Definition
EnergyCorrelatorRatiosTool.h:76
EnergyCorrelatorRatiosTool::moments_t::acc_ECF1
std::unique_ptr< SG::AuxElement::ConstAccessor< float > > acc_ECF1
ECF accessors.
Definition
EnergyCorrelatorRatiosTool.h:74
EnergyCorrelatorRatiosTool::moments_t::beta
float beta
Beta value for calculations.
Definition
EnergyCorrelatorRatiosTool.h:71
EnergyCorrelatorRatiosTool::moments_t::acc_ECF2
std::unique_ptr< SG::AuxElement::ConstAccessor< float > > acc_ECF2
Definition
EnergyCorrelatorRatiosTool.h:75
EnergyCorrelatorRatiosTool::moments_t::acc_ECF2_ungroomed
std::unique_ptr< SG::AuxElement::ConstAccessor< float > > acc_ECF2_ungroomed
Definition
EnergyCorrelatorRatiosTool.h:82
EnergyCorrelatorRatiosTool::moments_t::acc_ECF1_ungroomed
std::unique_ptr< SG::AuxElement::ConstAccessor< float > > acc_ECF1_ungroomed
ECF ungroomed accessors.
Definition
EnergyCorrelatorRatiosTool.h:81
EnergyCorrelatorRatiosTool::moments_t::suffix
std::string suffix
Suffix for decorations.
Definition
EnergyCorrelatorRatiosTool.h:68
EnergyCorrelatorRatiosTool::moments_t::acc_ECF5
std::unique_ptr< SG::AuxElement::ConstAccessor< float > > acc_ECF5
Definition
EnergyCorrelatorRatiosTool.h:78
EnergyCorrelatorRatiosTool::moments_t::moments_t
moments_t(float Beta, const std::string &Prefix)
Definition
EnergyCorrelatorRatiosTool.h:95
EnergyCorrelatorRatiosTool::moments_t::acc_ECF4
std::unique_ptr< SG::AuxElement::ConstAccessor< float > > acc_ECF4
Definition
EnergyCorrelatorRatiosTool.h:77
EnergyCorrelatorRatiosTool::moments_t::prefix
std::string prefix
Prefix for decorations.
Definition
EnergyCorrelatorRatiosTool.h:65
EnergyCorrelatorRatiosTool::moments_t::dec_C1
std::unique_ptr< SG::AuxElement::Decorator< float > > dec_C1
C and D series decorators.
Definition
EnergyCorrelatorRatiosTool.h:86
EnergyCorrelatorRatiosTool::moments_t::dec_C4
std::unique_ptr< SG::AuxElement::Decorator< float > > dec_C4
Definition
EnergyCorrelatorRatiosTool.h:89
EnergyCorrelatorRatiosTool::moments_t::acc_ECF3_ungroomed
std::unique_ptr< SG::AuxElement::ConstAccessor< float > > acc_ECF3_ungroomed
Definition
EnergyCorrelatorRatiosTool.h:83
EnergyCorrelatorRatiosTool::moments_t::dec_D2_dichroic
std::unique_ptr< SG::AuxElement::Decorator< float > > dec_D2_dichroic
Dichroic C and D series decorators.
Definition
EnergyCorrelatorRatiosTool.h:93
EnergyCorrelatorRatiosTool::moments_t::dec_C2
std::unique_ptr< SG::AuxElement::Decorator< float > > dec_C2
Definition
EnergyCorrelatorRatiosTool.h:87
EnergyCorrelatorRatiosTool::moments_t::dec_D2
std::unique_ptr< SG::AuxElement::Decorator< float > > dec_D2
Definition
EnergyCorrelatorRatiosTool.h:90
EnergyCorrelatorRatiosTool::moments_t::dec_C3
std::unique_ptr< SG::AuxElement::Decorator< float > > dec_C3
Definition
EnergyCorrelatorRatiosTool.h:88
Generated on
for ATLAS Offline Software by
1.17.0