ATLAS Offline Software
Loading...
Searching...
No Matches
BJetRegressionAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef JET_ANALYSIS_ALGORITHMS__BJET_REGRESSION_ALG_H
6#define JET_ANALYSIS_ALGORITHMS__BJET_REGRESSION_ALG_H
7
14
16
17namespace CP
18{
62 {
63 public:
65 StatusCode initialize () override;
66 StatusCode execute (const EventContext& ctx) override;
67
68 private:
69
71
74 this, "jets", "", "the jet collection to run on"};
75
79 this, "jetPreselection", "", "the preselection to apply to jets"};
80
84 Gaudi::Property<float> m_gateMinPt {
85 this, "gateMinPt", 0, "minimum reference pT (MeV) of a corrected jet"};
86 Gaudi::Property<float> m_gateMinMass {
87 this, "gateMinMass", 0, "minimum reference mass (MeV) of a corrected jet; 0 for none"};
88 Gaudi::Property<float> m_gateMaxMass {
89 this, "gateMaxMass", 0, "reference mass (MeV) at or above which a jet is not corrected; 0 for none"};
90 Gaudi::Property<float> m_gateMaxAbsEta {
91 this, "gateMaxAbsEta", 2.5, "jets at or beyond this |eta| are not corrected"};
92
96 this, "regressedPtName", "", "decoration holding the absolute regressed pT in MeV"};
98 this, "regressedMassName", "", "decoration holding the absolute regressed mass in MeV;"
99 " empty for a pT-only model"};
100
104 this, "refPtDecoration", "bjrRefPt", "decoration holding the reference pT in MeV"};
106 this, "refMassDecoration", "", "decoration holding the reference mass in MeV"};
107
112 this, "ptRatioDecorName", "bjrPtRatio_%SYS%",
113 "name of the output pT ratio decoration"};
115 this, "massRatioDecorName", "bjrMassRatio_%SYS%",
116 "name of the output mass ratio decoration"};
117
119 Gaudi::Property<bool> m_onlyDecorate {
120 this, "onlyDecorate", false, "only decorate the ratios, do not modify the jet"};
121
123 bool m_doMass{false};
124
126 bool m_gateOnMass{false};
127 };
128
129}
130
131#endif
Fold a b-jet energy regression into the jet four-momentum.
Gaudi::Property< float > m_gateMaxAbsEta
SysWriteDecorHandle< float > m_ptRatio
the ratio, written out so an analysis can divide it out and recover the standard calibration for a cr...
SysReadDecorHandle< float > m_regPt
regression output decorations, absolute and in MeV.
Gaudi::Property< float > m_gateMinPt
the kinematic gate, applied to the reference pT and mass and to the jet |eta|.
SysReadDecorHandle< float > m_refPt
the calibrated kinematics the ratio is formed against, written by CP::BJetRegressionReferenceAlg.
Gaudi::Property< float > m_gateMinMass
SysReadDecorHandle< float > m_refMass
StatusCode initialize() override
Gaudi::Property< float > m_gateMaxMass
SysCopyHandle< xAOD::JetContainer > m_jetHandle
the jet collection to modify, one instance per systematic
SysReadDecorHandle< float > m_regMass
bool m_gateOnMass
set in initialize() from whether a mass bound is configured
Gaudi::Property< bool > m_onlyDecorate
write the ratios but leave the jet four-momentum alone
SysWriteDecorHandle< float > m_massRatio
SysReadSelectionHandle m_jetPreselection
an additional selection on which jets to correct; empty means every jet that passes the kinematic gat...
bool m_doMass
set in initialize() from whether regressedMassName is configured
SysListHandle m_systematicsList
a systematics data handle that will either copy the input object or act like an update handle
a class managing the property to configure the list of systematics to process
a data handle for reading systematics varied input data
a data handle for reading systematically varied selection properties from objects
a data handle for reading systematics varied input data
the (new) base class for EventLoop algorithms
AnaAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
constructor with parameters
virtual::StatusCode execute()
execute this algorithm
Select isolated Photons, Electrons and Muons.