ATLAS Offline Software
Loading...
Searching...
No Matches
NSubjettinessTool.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_nsubjetinesstool_header
20#define jetsubstructuremomenttools_nsubjetinesstool_header
21
24
27
31
32 public:
33 // Constructor and destructor
34 NSubjettinessTool(const std::string& name);
35
36 StatusCode initialize() override;
37
38 StatusCode modify(xAOD::JetContainer& jets) const override;
39
40 private:
41 Gaudi::Property<std::string> m_jetContainerName{
42 this, "JetContainer", "", "SG key for the input jet container"};
43
51
53 struct moments_t{
55 std::string prefix;
56
58 std::string suffix;
59
61 float alpha;
62
63 moments_t (float Alpha, const std::string& Prefix)
64 : prefix (Prefix),
65 suffix (GetAlphaSuffix(Alpha)),
66 alpha (Alpha) {}
67 };
68
70 float m_Alpha;
71 std::vector<float> m_rawAlphaVals;
73
75 std::vector<std::pair< float, moments_t >> m_moments;
76
85
92
101
108
109};
110
111#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
std::string GetAlphaSuffix(float alpha)
IJetModifier is a dual-use tool interface for a tool that modifies a jet collection.
JetSubStructureMomentToolsBase(const std::string &name)
std::vector< std::pair< float, moments_t > > m_moments
Map of decorators using alpha as the key.
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau2_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau4_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau4_Keys
std::vector< float > m_rawAlphaVals
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau1_Keys
StatusCode modify(xAOD::JetContainer &jets) const override
Loop over calls to modifyJet.
NSubjettinessTool(const std::string &name)
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau3_wta_ungroomed_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau3_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau2_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau3_wta_Keys
Gaudi::Property< std::string > m_jetContainerName
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau2_wta_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau4_wta_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau1_wta_Keys
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau3_ungroomed_Keys
StatusCode initialize() override
Dummy implementation of the initialisation function.
bool m_doDichroic
Vector of input values before cleaning.
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau4_wta_ungroomed_Keys
float m_Alpha
Configurable as properties.
SG::WriteDecorHandleKeyArray< xAOD::JetContainer > m_Tau2_wta_ungroomed_Keys
DecorHandleKeyArray< WriteDecorHandle< T, S >, WriteDecorHandleKey< T >, Gaudi::DataHandle::Writer > WriteDecorHandleKeyArray
JetContainer_v1 JetContainer
Definition of the current "jet container version".
float alpha
Alpha value for calculations.
std::string prefix
Prefix for decorations.
std::string suffix
Suffix for decorations.
moments_t(float Alpha, const std::string &Prefix)