ATLAS Offline Software
Loading...
Searching...
No Matches
HIJetConstituentSubtractionTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3*/
4
5// HIJetConstituentSubtractionTool.h
6
7#ifndef HIJETREC_HIJETCONSTITUENTSUBTRACTIONTOOL_H
8#define HIJETREC_HIJETCONSTITUENTSUBTRACTIONTOOL_H
9
28
29#include <string>
34#include "AsgTools/ToolHandle.h"
36
39
42
44{
45
47
48public:
49
50 HIJetConstituentSubtractionTool(const std::string& t);
51
52 virtual StatusCode initialize() override;
53
55 virtual StatusCode modify(xAOD::JetContainer& jets) const override;
56
58 virtual int modifyJet(xAOD::Jet&) const override {return 1;};
59
60private:
61
62 // Migration to data handles
64 SG::ReadHandleKey< xAOD::HIEventShapeContainer > m_eventShapeKey { this, "EventShapeKey", "", "The input HI Event Shape"};
65
66 //That looks useless. commented out for the moment
67 //std::string m_modulation_key;
72 Gaudi::Property< std::string > m_momentName { this, "MomentName", HIJetRec::subtractedJetState(), "Subtracted Jet Kineamtics are stored using this string like a signal/state moment" } ;
73
77 Gaudi::Property< bool > m_momentOnly { this, "SetMomentOnly", true,
78 "If this flag is set, the primary jet kinematics are also set to reflect this subtraction eventually do this w/ a signal state" } ;
79
81 ToolHandle<IHISubtractorTool> m_subtractorTool { this, "Subtractor", "HIJetClusterSubtractorTool", "" };
82 ToolHandle<IHIUEModulatorTool> m_modulatorTool { this, "Modulator" , "HIUEModulatorTool ", "" };
83 ToolHandle<IHIEventShapeMapTool> m_eventShapeMapTool { this, "EventShapeMapTool", "HIEventShapeMapTool", "Handle to Event Shape Map Tool"};
84
85 Gaudi::Property< bool > m_originCorrection { this, "ApplyOriginCorrection", false, "Apply Origin Correction boolean switch"};
86
87protected:
91 //That looks useless. commented out for the moment
92 //inline std::string ModulationKey() const {return m_modulation_key;};
93 inline const std::string& momentName() const { return m_momentName; };
94 inline bool momentOnly() const { return m_momentOnly; };
95
97 inline void setMomentName(const std::string& key) { m_momentName=key; };
98 inline void setMomentOnly(bool x) { m_momentOnly=x; };
99
100};
101
102#endif
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid from which a WriteHandle is made.
#define x
ASG_TOOL_CLASS0(HIJetConstituentSubtractionTool)
Gaudi::Property< bool > m_momentOnly
if this flag is set, the primary jet kinematics are also set to reflect this subtraction eventually d...
ToolHandle< IHISubtractorTool > m_subtractorTool
handle to IHISubtractorTool that determines the subtracted kinematics for each constituent
ToolHandle< IHIEventShapeMapTool > m_eventShapeMapTool
virtual StatusCode modify(xAOD::JetContainer &jets) const override
Implementing abstract methods from base.
virtual int modifyJet(xAOD::Jet &) const override
Implementing abstract methods from base, not used.
const SG::ReadHandleKey< xAOD::HIEventShapeContainer > & EventShapeKey()
Protected set/get functions provide access to private data members in derived classes.
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Property< std::string > m_momentName
Subtracted jet kinematics are stored using this string like a signal state/moment Jet::setJetP4 ( std...
void setEventShapeKey(const SG::ReadHandleKey< xAOD::HIEventShapeContainer > &key)
SG::ReadHandleKey< xAOD::HIEventShapeContainer > m_eventShapeKey
Name of HIEventShapeContainer.
ToolHandle< IHIUEModulatorTool > m_modulatorTool
JetModifierBase(const std::string &myname)
Ctor.
Property holding a SG store/key/clid from which a ReadHandle is made.
constexpr const char * subtractedJetState()
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".