ATLAS Offline Software
Loading...
Searching...
No Matches
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
18
19namespace BJT{
20
22 public asg::AsgTool, virtual public 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
#define ASG_TOOL_CLASS1
virtual StatusCode decorate(const xAOD::JetContainer &jets) const override
Decorate jet container with tagging info.
ToolHandle< JetHelper::IVarTool > m_histTool2D_gluon_eff
SG::ReadDecorHandleKey< xAOD::JetContainer > m_accTaggedKey
virtual StatusCode initialize() override
Run once at the start of the job to setup everything.
Gaudi::Property< float > m_jetPtMin
ToolHandle< JetHelper::IVarTool > m_histTool2D_quark_eff
helper histogram tool ToDo: once W and top available should make this more generic and configurable
ToolHandle< JetHelper::IVarTool > m_histTool2D_quark_ineff
ToolHandle< JetHelper::IVarTool > m_histTool2D_gluon_ineff
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decEfficiencyKey
WriteDecorHandle keys.
SG::ReadHandleKey< xAOD::JetContainer > m_jetsKey
ReadDecorHandle keys.
Gaudi::Property< float > m_jetPtMax
ScaleFactors(const std::string &name)
Constructor.
Gaudi::Property< std::string > m_truthLabelName
input parameters
SG::WriteDecorHandleKey< xAOD::JetContainer > m_decInefficiencyKey
Gaudi::Property< float > m_jetEtaMax
Interface for adding a decoration to a jet container.
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
Definition qgTagger.h:19
JetContainer_v1 JetContainer
Definition of the current "jet container version".