ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
JetCalibTools
JetCalibTools
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
"
16
#include "
AsgTools/AsgToolMacros.h
"
17
#include "
AsgTools/PropertyWrapper.h
"
18
19
#include "
JetInterface/IJetDecorator.h
"
20
21
#include "
AsgDataHandles/ReadHandleKey.h
"
22
#include "
AsgDataHandles/ReadDecorHandleKey.h
"
23
#include "
AsgDataHandles/WriteDecorHandleKey.h
"
24
25
#include "
xAODJet/Jet.h
"
26
#include "
xAODJet/JetContainer.h
"
27
28
29
30
class
JetResponseTool
31
:
public
asg::AsgTool
,
32
virtual
public
IJetDecorator
{
33
34
ASG_TOOL_CLASS
(
JetResponseTool
,
IJetDecorator
)
35
36
public
:
38
JetResponseTool
(
const
std::string& name =
"JetResponseTool"
);
39
40
virtual
StatusCode
initialize
()
override
;
41
virtual
StatusCode
decorate
(
const
xAOD::JetContainer
& jets)
const override
;
42
43
private
:
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
AsgToolMacros.h
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition
AsgToolMacros.h:68
AsgTool.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Jet.h
IJetDecorator.h
JetContainer.h
PropertyWrapper.h
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
JetResponseTool::m_jetRecoIsolKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetRecoIsolKey
Definition
JetResponseTool.h:56
JetResponseTool::m_jetMatchedTruthJetKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetMatchedTruthJetKey
Definition
JetResponseTool.h:53
JetResponseTool::m_jetIsolatedKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetIsolatedKey
Definition
JetResponseTool.h:59
JetResponseTool::m_jetResponseKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_jetResponseKey
Definition
JetResponseTool.h:58
JetResponseTool::initialize
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition
JetResponseTool.cxx:29
JetResponseTool::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate a jet collection without otherwise modifying it.
Definition
JetResponseTool.cxx:58
JetResponseTool::m_recoJetMinPt
Gaudi::Property< float > m_recoJetMinPt
Definition
JetResponseTool.h:45
JetResponseTool::m_recoIsolMaxFrac
Gaudi::Property< float > m_recoIsolMaxFrac
Definition
JetResponseTool.h:47
JetResponseTool::isIsolated
bool isIsolated(float recoIsolFrac, float truthIsolFrac) const
Definition
JetResponseTool.cxx:94
JetResponseTool::JetResponseTool
JetResponseTool(const std::string &name="JetResponseTool")
Constructor with parameters:
Definition
JetResponseTool.cxx:20
JetResponseTool::m_jetTruthIsolKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_jetTruthIsolKey
Definition
JetResponseTool.h:55
JetResponseTool::m_truthIsolMaxFrac
Gaudi::Property< float > m_truthIsolMaxFrac
Definition
JetResponseTool.h:46
JetResponseTool::m_jetContainerKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetContainerKey
Definition
JetResponseTool.h:51
JetResponseTool::m_truthJetContainerKey
SG::ReadHandleKey< xAOD::JetContainer > m_truthJetContainerKey
Definition
JetResponseTool.h:52
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
asg::AsgTool
Base class for the dual-use tool implementation classes.
Definition
AsgTool.h:47
xAOD::JetContainer
JetContainer_v1 JetContainer
Definition of the current "jet container version".
Definition
JetContainer.h:17
Generated on
for ATLAS Offline Software by
1.17.0