ATLAS Offline Software
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 
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 
53  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),
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 
82  this, "ECF1_Keys", {}};
84  this, "ECF2_Keys", {}};
86  this, "ECF3_Keys", {}};
88  this, "ECF4_Keys", {}};
90  this, "ECF5_Keys", {}};
91 
93  this, "ECF1_ungroomed_Keys", {}};
95  this, "ECF2_ungroomed_Keys", {}};
97  this, "ECF3_ungroomed_Keys", {}};
98 
99 };
100 
101 #endif
WriteDecorHandleKeyArray.h
EnergyCorrelatorTool::m_ECF3_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF3_Keys
Definition: EnergyCorrelatorTool.h:85
PropertyWrapper.h
defineDB.jets
jets
Definition: JetTagCalibration/share/defineDB.py:24
SG::HandleKeyArray
Definition: StoreGate/StoreGate/HandleKeyArray.h:38
EnergyCorrelatorTool::m_ECF4_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF4_Keys
Definition: EnergyCorrelatorTool.h:87
EnergyCorrelatorTool::m_doC4
bool m_doC4
Definition: EnergyCorrelatorTool.h:74
EnergyCorrelatorTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition: EnergyCorrelatorTool.cxx:19
EnergyCorrelatorTool::m_jetContainerName
Gaudi::Property< std::string > m_jetContainerName
Definition: EnergyCorrelatorTool.h:43
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetSubStructureMomentToolsBase.h
EnergyCorrelatorTool::m_rawBetaVals
std::vector< float > m_rawBetaVals
Definition: EnergyCorrelatorTool.h:75
EnergyCorrelatorTool::moments_t::suffix
std::string suffix
Suffix for decorations.
Definition: EnergyCorrelatorTool.h:60
DataVector
Derived DataVector<T>.
Definition: DataVector.h:794
WriteDecorHandle.h
Handle class for adding a decoration to an object.
EnergyCorrelatorTool::m_ECF1_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF1_Keys
Definition: EnergyCorrelatorTool.h:81
EnergyCorrelatorTool::EnergyCorrelatorTool
EnergyCorrelatorTool(const std::string &name)
Constructor.
Definition: EnergyCorrelatorTool.cxx:9
GetBetaSuffix
std::string GetBetaSuffix(float beta)
Definition: ECFHelper.cxx:10
EnergyCorrelatorTool::m_ECF5_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF5_Keys
Definition: EnergyCorrelatorTool.h:89
EnergyCorrelatorTool::moments_t::moments_t
moments_t(float Beta, const std::string &Prefix)
Definition: EnergyCorrelatorTool.h:65
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:240
TrigJetMonitorAlgorithm.Beta
Beta
Definition: TrigJetMonitorAlgorithm.py:1169
ECFHelper.h
EnergyCorrelatorTool::m_doC3
bool m_doC3
Definition: EnergyCorrelatorTool.h:73
EnergyCorrelatorTool::m_ECF2_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF2_ungroomed_Keys
Definition: EnergyCorrelatorTool.h:94
EnergyCorrelatorTool::moments_t::beta
float beta
Beta value for calculations.
Definition: EnergyCorrelatorTool.h:63
EnergyCorrelatorTool::moments_t::prefix
std::string prefix
Prefix for decorations.
Definition: EnergyCorrelatorTool.h:57
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
EnergyCorrelatorTool::m_Beta
float m_Beta
Configurable as properties.
Definition: EnergyCorrelatorTool.h:72
EnergyCorrelatorTool::m_moments
std::vector< std::pair< float, moments_t > > m_moments
Map of moment calculators and decorators using beta as the key.
Definition: EnergyCorrelatorTool.h:79
JetSubStructureMomentToolsBase
Definition: JetSubStructureMomentToolsBase.h:18
EnergyCorrelatorTool::m_ECF3_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF3_ungroomed_Keys
Definition: EnergyCorrelatorTool.h:96
EnergyCorrelatorTool::m_ECF1_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF1_ungroomed_Keys
Definition: EnergyCorrelatorTool.h:92
EnergyCorrelatorTool::modify
StatusCode modify(xAOD::JetContainer &jets) const override
Loop over calls to modifyJet.
Definition: EnergyCorrelatorTool.cxx:102
IJetModifier
IJetModifier is a dual-use tool interface for a tool that modifies a jet collection.
Definition: IJetModifier.h:20
EnergyCorrelatorTool
Definition: EnergyCorrelatorTool.h:30
EnergyCorrelatorTool::m_ECF2_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_ECF2_Keys
Definition: EnergyCorrelatorTool.h:83
EnergyCorrelatorTool::m_doDichroic
bool m_doDichroic
Vector of input values before cleaning.
Definition: EnergyCorrelatorTool.h:76