ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Reconstruction
Jet
BoostedJetTaggers
BoostedJetTaggers
ScaleFactors.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
// ScaleFactors.h
7
// Class to implement the use of the tagger scale factors;
8
// the class retrives the tagger scale factors from the
9
// recommendation files and attach them to the jets.
10
// author: Antonio Giannini <antonio.giannini@cern.ch>
12
13
#ifndef BOOSTEDJETSTAGGERS_SCALEFACTORS_H_
14
#define BOOSTEDJETSTAGGERS_SCALEFACTORS_H_
15
16
#include "
BoostedJetTaggers/JSSTaggerBase.h
"
17
#include "
JetAnalysisInterfaces/IVarTool.h
"
18
19
namespace
BJT
{
20
21
class
ScaleFactors
:
22
public
asg::AsgTool
,
virtual
public
IJetDecorator
{
23
ASG_TOOL_CLASS1
(
ScaleFactors
,
IJetDecorator
)
24
25
public
:
26
28
ScaleFactors
(
const
std::string& name);
29
31
virtual
StatusCode
initialize
()
override
;
32
34
virtual
StatusCode
decorate
(
const
xAOD::JetContainer
& jets)
const override
;
35
36
private
:
37
39
Gaudi::Property<std::string>
m_truthLabelName
{
this
,
"truthLabelName"
,
""
,
"truth label"
};
40
Gaudi::Property<float>
m_jetPtMin
{
this
,
"jetPtMin"
, 200.,
"minimum jet pT cut"
};
41
Gaudi::Property<float>
m_jetPtMax
{
this
,
"jetPtMax"
, 2500.,
"maximum jet pT cut"
};
42
Gaudi::Property<float>
m_jetEtaMax
{
this
,
"jetEtaMax"
, 2.,
"maximum jet eta cut"
};
43
46
ToolHandle<JetHelper::IVarTool>
m_histTool2D_quark_eff
{
47
this
,
"HistoReader2D_quark_eff"
,
"HistoInput2D quark eff"
,
"Histogram reader as a JetHelper::IVarTool"
48
};
49
ToolHandle<JetHelper::IVarTool>
m_histTool2D_quark_ineff
{
50
this
,
"HistoReader2D_quark_ineff"
,
"HistoInput2D quark ineff"
,
"Histogram reader as a JetHelper::IVarTool"
51
};
52
53
ToolHandle<JetHelper::IVarTool>
m_histTool2D_gluon_eff
{
54
this
,
"HistoReader2D_gluon_eff"
,
"HistoInput2D gluon eff"
,
"Histogram reader as a JetHelper::IVarTool"
55
};
56
ToolHandle<JetHelper::IVarTool>
m_histTool2D_gluon_ineff
{
57
this
,
"HistoReader2D_gluon_ineff"
,
"HistoInput2D gluon ineff"
,
"Histogram reader as a JetHelper::IVarTool"
58
};
59
61
SG::ReadHandleKey<xAOD::JetContainer>
m_jetsKey
{
this
,
"JetContainer"
,
""
,
"jet container to use"
};
62
SG::ReadDecorHandleKey<xAOD::JetContainer>
m_accTaggedKey
{
this
,
"TaggedName"
,
m_jetsKey
,
""
,
"SG key for Tagger WP decision"
};
63
65
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_decEfficiencyKey
{
this
,
"Efficiency"
,
m_jetsKey
,
""
,
"SG key for Scale Factor Efficiency correction"
};
66
SG::WriteDecorHandleKey<xAOD::JetContainer>
m_decInefficiencyKey
{
this
,
"Inefficiency"
,
m_jetsKey
,
""
,
"SG key for Scale Factor Inefficiency correction"
};
67
68
};
69
70
}
71
#endif
ASG_TOOL_CLASS1
#define ASG_TOOL_CLASS1
Definition
AsgToolMacros.h:75
IVarTool.h
JSSTaggerBase.h
BJT::ScaleFactors::decorate
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate jet container with tagging info.
Definition
ScaleFactors.cxx:47
BJT::ScaleFactors::m_histTool2D_gluon_eff
ToolHandle< JetHelper::IVarTool > m_histTool2D_gluon_eff
Definition
ScaleFactors.h:53
BJT::ScaleFactors::m_accTaggedKey
SG::ReadDecorHandleKey< xAOD::JetContainer > m_accTaggedKey
Definition
ScaleFactors.h:62
BJT::ScaleFactors::initialize
virtual StatusCode initialize() override
Run once at the start of the job to setup everything.
Definition
ScaleFactors.cxx:13
BJT::ScaleFactors::m_jetPtMin
Gaudi::Property< float > m_jetPtMin
Definition
ScaleFactors.h:40
BJT::ScaleFactors::m_histTool2D_quark_eff
ToolHandle< JetHelper::IVarTool > m_histTool2D_quark_eff
helper histogram tool ToDo: once W and top available should make this more generic and configurable
Definition
ScaleFactors.h:46
BJT::ScaleFactors::m_histTool2D_quark_ineff
ToolHandle< JetHelper::IVarTool > m_histTool2D_quark_ineff
Definition
ScaleFactors.h:49
BJT::ScaleFactors::m_histTool2D_gluon_ineff
ToolHandle< JetHelper::IVarTool > m_histTool2D_gluon_ineff
Definition
ScaleFactors.h:56
BJT::ScaleFactors::m_decEfficiencyKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEfficiencyKey
WriteDecorHandle keys.
Definition
ScaleFactors.h:65
BJT::ScaleFactors::m_jetsKey
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
ReadDecorHandle keys.
Definition
ScaleFactors.h:61
BJT::ScaleFactors::m_jetPtMax
Gaudi::Property< float > m_jetPtMax
Definition
ScaleFactors.h:41
BJT::ScaleFactors::ScaleFactors
ScaleFactors(const std::string &name)
Constructor.
Definition
ScaleFactors.cxx:9
BJT::ScaleFactors::m_truthLabelName
Gaudi::Property< std::string > m_truthLabelName
input parameters
Definition
ScaleFactors.h:39
BJT::ScaleFactors::m_decInefficiencyKey
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decInefficiencyKey
Definition
ScaleFactors.h:66
BJT::ScaleFactors::m_jetEtaMax
Gaudi::Property< float > m_jetEtaMax
Definition
ScaleFactors.h:42
IJetDecorator
Interface for adding a decoration to a jet container.
Definition
IJetDecorator.h:21
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
BJT
Definition
qgTagger.h:19
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