ATLAS Offline Software
Loading...
Searching...
No Matches
JetOriginCorrectionTool.h
Go to the documentation of this file.
1// JetOriginCorrectionTool.h -*- C++ -*-
2
3/*
4 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
5*/
6
7#ifndef JetMomentTools_JetOriginCorrectionTool_H
8#define JetMomentTools_JetOriginCorrectionTool_H
9
25
26#include "AsgTools/AsgTool.h"
34
36 virtual public IJetDecorator {
38
39public:
40
42 JetOriginCorrectionTool(const std::string& myname);
43
46 StatusCode decorate(const xAOD::JetContainer& jet) const override;
47 virtual StatusCode initialize() override;
48
49 protected:
50
51 Gaudi::Property<std::string> m_correctionName{this, "OriginCorrectedName", "JetOriginConstitScaleMomentum", "Origin corrected name"};
52 Gaudi::Property<std::string> m_jetContainerName{this, "JetContainer", "", "SG key for the input jet container"};
53 Gaudi::Property<bool> m_onlyAssignPV{this, "OnlyAssignPV", false, "Only write out PV information"};
54 Gaudi::Property<bool> m_forceEMScale{this, "ForceEMScale", false, "Force apply origin correction at EM scale"};
55
56private:
57
58 SG::ReadHandleKey<xAOD::VertexContainer> m_vertexContainer_key{this, "VertexContainer", "PrimaryVertices", "Primary vertex container name"};
59 SG::ReadHandleKey<xAOD::EventInfo> m_eventInfo_key{this, "EventInfoName", "EventInfo", "Event info name"};
60
61 Gaudi::Property<std::string> m_scaleMomentumName{this, "jetScaleMomentName", "JetOriginConstitScaleMomentum", "SG key for JetScaleMomentum components"};
62 SG::WriteDecorHandleKey<xAOD::JetContainer> m_scaleMomentumPtKey{this, "JetScaleMomentumPtName", "pt", "SG suffix for output JetScaleMomentum (pt) decorator"};
63 SG::WriteDecorHandleKey<xAOD::JetContainer> m_scaleMomentumPhiKey{this, "JetScaleMomentumPhiName", "phi", "SG suffix for output JetScaleMomentum (phi) decorator"};
64 SG::WriteDecorHandleKey<xAOD::JetContainer> m_scaleMomentumEtaKey{this, "JetScaleMomentumEtaName", "eta", "SG suffix for output JetScaleMomentum (eta) decorator"};
65 SG::WriteDecorHandleKey<xAOD::JetContainer> m_scaleMomentumMKey{this, "JetScaleMomentumMName", "m", "SG suffix for output JetScaleMomentum (mass) decorator"};
66 SG::WriteDecorHandleKey<xAOD::JetContainer> m_originVertexKey{this, "OriginVertexName", "OriginVertex", "SG key for output OriginVertex decorator"};
67};
68
69#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid from which a ReadHandle is made.
Interface for adding a decoration to a jet container.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfo_key
SG::WriteDecorHandleKey< xAOD::JetContainer > m_scaleMomentumPhiKey
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
StatusCode decorate(const xAOD::JetContainer &jet) const override
Inherited method to modify a jet container.
SG::ReadHandleKey< xAOD::VertexContainer > m_vertexContainer_key
Gaudi::Property< std::string > m_scaleMomentumName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_scaleMomentumPtKey
JetOriginCorrectionTool(const std::string &myname)
Constructor from tool name.
SG::WriteDecorHandleKey< xAOD::JetContainer > m_scaleMomentumMKey
Gaudi::Property< std::string > m_correctionName
Gaudi::Property< bool > m_onlyAssignPV
SG::WriteDecorHandleKey< xAOD::JetContainer > m_originVertexKey
Gaudi::Property< bool > m_forceEMScale
Gaudi::Property< std::string > m_jetContainerName
SG::WriteDecorHandleKey< xAOD::JetContainer > m_scaleMomentumEtaKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
JetContainer_v1 JetContainer
Definition of the current "jet container version".