ATLAS Offline Software
Loading...
Searching...
No Matches
JetResponseTool.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
5*/
6
7// JetResponseTool.h
8// Header file for class JetResponseTool
10#ifndef JETCALIBTOOLS_JETRESPONSETOOL_H
11#define JETCALIBTOOLS_JETRESPONSETOOL_H 1
12
13#include <string.h>
14
15#include "AsgTools/AsgTool.h"
18
20
24
25#include "xAODJet/Jet.h"
27
28
29
31 : public asg::AsgTool,
32 virtual public IJetDecorator {
33
35
36public:
38 JetResponseTool(const std::string& name = "JetResponseTool");
39
40 virtual StatusCode initialize() override;
41 virtual StatusCode decorate(const xAOD::JetContainer& jets) const override;
42
43private:
44
45 Gaudi::Property<float> m_recoJetMinPt{this, "RecoJetMinPt", 7000, "Minimum reco jet pT in MeV"};
46 Gaudi::Property<float> m_truthIsolMaxFrac{this, "TruthIsolMaxFrac", 0.3, "Maximum truth particle pt in isolation cone"};
47 Gaudi::Property<float> m_recoIsolMaxFrac{this, "RecoIsolMaxFrac", 0.3, "Maximum reco constituent pt in isolation cone"};
48
49 bool isIsolated(float recoIsolFrac, float truthIsolFrac) const;
50
51 SG::ReadHandleKey<xAOD::JetContainer> m_jetContainerKey{this, "JetContainer", "", "SG key for the input jet container"};
52 SG::ReadHandleKey<xAOD::JetContainer> m_truthJetContainerKey{this, "TruthJetContainer", "", "SG key for the truth jet container"}; // For isolation decoration
53 SG::ReadDecorHandleKey<xAOD::JetContainer> m_jetMatchedTruthJetKey{this, "JetMatchedTruthJetName", "_MatchedTruthJet", "SG key for the matched truth jet ElementLink attribute"};
54
55 SG::ReadDecorHandleKey<xAOD::JetContainer> m_jetTruthIsolKey{this, "JetTruthIsolName", "IsoFixedCone5Pt", "SG key for the matched truth jet ElementLink attribute"};
56 SG::ReadDecorHandleKey<xAOD::JetContainer> m_jetRecoIsolKey{this, "JetRecoIsolName", "IsoFixedCone5PtPUsub", "SG key for the matched truth jet ElementLink attribute"};
57
58 SG::WriteDecorHandleKey<xAOD::JetContainer> m_jetResponseKey{this, "JetResponseName", "JetResponse", "SG key for the JetResponse attribute"};
59 SG::WriteDecorHandleKey<xAOD::JetContainer> m_jetIsolatedKey{this, "JetIsolatedName", "JetResponseIsolated", "SG key for the JetResponseIsolated attribute"};
60
61};
62
63#endif //> !JETCALIBTOOLS_JETRESPONSETOOL_H
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid from which a ReadHandle is made.
Interface for adding a decoration to a jet container.
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetRecoIsolKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetMatchedTruthJetKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetIsolatedKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetResponseKey
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Gaudi::Property< float > m_recoJetMinPt
Gaudi::Property< float > m_recoIsolMaxFrac
bool isIsolated(float recoIsolFrac, float truthIsolFrac) const
JetResponseTool(const std::string &name="JetResponseTool")
Constructor with parameters:
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetTruthIsolKey
Gaudi::Property< float > m_truthIsolMaxFrac
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
SG::ReadHandleKey< xAOD::JetContainer > m_truthJetContainerKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
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".