ATLAS Offline Software
Loading...
Searching...
No Matches
EnergyCorrelatorTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
18
19#ifndef jetsubstructuremomenttools_energycorrelatortool_header
20#define jetsubstructuremomenttools_energycorrelatortool_header
21
24
28
32
33 public:
34
36 EnergyCorrelatorTool(const std::string& name);
37
38 virtual StatusCode initialize() override;
39
40 StatusCode modify(xAOD::JetContainer& jets) const override;
41
42 private:
43 Gaudi::Property<std::string> m_jetContainerName{
44 this, "JetContainer", "", "SG key for the input jet container"};
45
52
54 struct moments_t {
55
57 std::string prefix;
58
60 std::string suffix;
61
63 float beta;
64
65 moments_t (float Beta, const std::string& Prefix)
66 : prefix (Prefix),
67 suffix (GetBetaSuffix(Beta)),
68 beta (Beta) {}
69 };
70
72 float m_Beta;
73 bool m_doC3;
74 bool m_doC4;
75 std::vector<float> m_rawBetaVals;
77
79 std::vector<std::pair< float, moments_t >> m_moments;
80
91
98
99};
100
101#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Handle class for adding a decoration to an object.
std::string GetBetaSuffix(float beta)
Definition ECFHelper.cxx:10
float m_Beta
Configurable as properties.
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF2_ungroomed_Keys
StatusCode modify(xAOD::JetContainer &jets) const override
Loop over calls to modifyJet.
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF5_Keys
std::vector< float > m_rawBetaVals
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF1_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF3_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF3_Keys
std::vector< std::pair< float, moments_t > > m_moments
Map of moment calculators and decorators using beta as the key.
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF4_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF2_Keys
EnergyCorrelatorTool(const std::string &name)
Constructor.
bool m_doDichroic
Vector of input values before cleaning.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Property< std::string > m_jetContainerName
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF1_ungroomed_Keys
IJetModifier is a dual-use tool interface for a tool that modifies a jet collection.
JetSubStructureMomentToolsBase(const std::string &name)
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
JetContainer_v1 JetContainer
Definition of the current "jet container version".
float beta
Beta value for calculations.
std::string suffix
Suffix for decorations.
std::string prefix
Prefix for decorations.
moments_t(float Beta, const std::string &Prefix)