5#ifndef JETCALIBTOOLS_PILEUPAREARESIDUALCALIBSTEP_H
6#define JETCALIBTOOLS_PILEUPAREARESIDUALCALIBSTEP_H 1
45 Gaudi::Property<bool>
m_isData{
this,
"IsData",
false,
""};
46 Gaudi::Property<bool>
m_doJetArea{
this,
"DoJetArea",
false,
"doc"};
52 "EventInfo.averageInteractionsPerCrossing",
"Decoration for Average Interaction Per Crossing"};
55 ToolHandle<JetHelper::IVarTool>
m_histTool_mu = {this ,
"histTool_mu",
"HistoInput1D",
"mu histo reader" };
56 ToolHandle<JetHelper::IVarTool>
m_histTool_NPV = {this ,
"histTool_NPV",
"HistoInput1D",
"npv histo reader" };
59 Gaudi::Property<bool>
m_doMuOnly{
this,
"ApplyOnlyMuResidual",
false,
"doc"};
60 Gaudi::Property<bool>
m_doNPVOnly{
this,
"ApplyOnlyNPVResidual",
false,
"doc"};
62 Gaudi::Property<float>
m_NPV_ref{this ,
"DefaultNPVRef", -99.,
""};
63 Gaudi::Property<float>
m_mu_ref{this ,
"DefaultMuRef", -99.,
""};
64 Gaudi::Property<float>
m_muSF{this ,
"MuScaleFactor", 1.,
""};
69 Gaudi::Property<std::string>
m_jetInScale {
this,
"InScale",
"JetConstitScaleMomentum",
"Starting jet scale" };
70 Gaudi::Property<std::string>
m_jetOutScale {
this,
"OutScale",
"JetPileupScaleMomentum",
"Ending jet scale" };
Class JetContext Designed to read AOD information related to the event, N vertices,...
PileupAreaResidualCalibStep(const std::string &name="PileupAreaResidualCalibStep")
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Property< std::string > m_jetInScale
In and out scales.
Gaudi::Property< bool > m_doJetArea
Gaudi::Property< bool > m_doMuOnly
Properties.
SG::ReadHandleKey< xAOD::EventShape > m_rhoKey
Event properties.
Gaudi::Property< bool > m_doNPVOnly
Gaudi::Property< float > m_muSF
virtual StatusCode calibrate(xAOD::JetContainer &jetCont) const override
Apply calibration to a jet container.
ToolHandle< JetHelper::IVarTool > m_histTool_mu
Histograms with PU residual correction factors.
ToolHandle< JetHelper::IVarTool > m_histTool_NPV
Gaudi::Property< bool > m_doSequentialResidual
Gaudi::Property< float > m_mu_ref
Gaudi::Property< bool > m_isData
double getResidualOffset(const xAOD::Jet &jet, const JetHelper::JetContext &jc, double mu, double NPV, bool MuOnly, bool NOnly) const
SG::ReadDecorHandleKey< xAOD::EventInfo > m_muKey
SG::ReadHandleKey< xAOD::VertexContainer > m_pvKey
Gaudi::Property< float > m_NPV_ref
Gaudi::Property< std::string > m_jetOutScale
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.
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".