23 m_maxEta =
h->GetZaxis()->GetBinLowEdge(
h->GetNbinsZ()+1);
26 ATH_MSG_ERROR (
"Dynamic cast to JetHelper::HistoInputBase failed in JMSCalibStep!");
29 return StatusCode::SUCCESS;
42 jet->setJetP4(jetStartP4);
45 double massFactor = 1.0;
54 double mass_corr = jetStartP4.mass();
57 mass_corr = jetStartP4.mass()/massFactor;
60 if (mass_corr >
jet->e()){
64 double pT_corr = jetStartP4.pt();
67 pT_corr = std::sqrt(jetStartP4.e()*jetStartP4.e()-mass_corr*mass_corr)/std::cosh( jetStartP4.eta() );
73 jet->setJetP4(calibP4);
76 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Header file for AthHistogramAlgorithm.
ToolHandle< JetHelper::IVarTool > m_varToolZ
Variable used to enforce eta threshold.
ToolHandle< JetHelper::IVarTool > m_histTool
3D histogram containing mass calibration values
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
Gaudi::Property< std::string > m_jetInScale
Gaudi::Property< bool > m_pTfixed
Gaudi::Property< std::string > m_jetOutScale
JMSCalibStep(const std::string &name="JMSCalibStep")
ToolHandle< JetHelper::IVarTool > m_varToolX
Variable used to enforce minimum pT or energy for calibration.
virtual StatusCode calibrate(xAOD::JetContainer &) const override
Apply calibration to a jet container.
Gaudi::Property< float > m_minValue_JMS
Properties.
Class JetContext Designed to read AOD information related to the event, N vertices,...
void setAttribute(SG::AuxElement &p, const TYPE &v) const
Jet_v1 Jet
Definition of the current "jet version".
JetContainer_v1 JetContainer
Definition of the current "jet container version".
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.