5#ifndef JET_ANALYSIS_ALGORITHMS__BJET_REGRESSION_ALG_H
6#define JET_ANALYSIS_ALGORITHMS__BJET_REGRESSION_ALG_H
66 StatusCode
execute (
const EventContext& ctx)
override;
74 this,
"jets",
"",
"the jet collection to run on"};
79 this,
"jetPreselection",
"",
"the preselection to apply to jets"};
85 this,
"gateMinPt", 0,
"minimum reference pT (MeV) of a corrected jet"};
87 this,
"gateMinMass", 0,
"minimum reference mass (MeV) of a corrected jet; 0 for none"};
89 this,
"gateMaxMass", 0,
"reference mass (MeV) at or above which a jet is not corrected; 0 for none"};
91 this,
"gateMaxAbsEta", 2.5,
"jets at or beyond this |eta| are not corrected"};
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"};
104 this,
"refPtDecoration",
"bjrRefPt",
"decoration holding the reference pT in MeV"};
106 this,
"refMassDecoration",
"",
"decoration holding the reference mass in MeV"};
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"};
120 this,
"onlyDecorate",
false,
"only decorate the ratios, do not modify the jet"};
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.