32 for (
auto this_PID : considered_PIDs){
56 return StatusCode::SUCCESS;
69 jet->setJetP4(jetStartP4);
81 double correctionFactor = 1.0;
88 ATH_MSG_ERROR(
"The parton truth label could not be retrieved");
89 return StatusCode::FAILURE;
91 int label = std::abs(PartonTruthLabelIDAcc(*
jet));
96 auto h_corr_map = correction_from_map->second;
97 correctionFactor = h_corr_map->getValue(*
jet, jc);
107 jet->setJetP4(calibP4);
110 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Header file for AthHistogramAlgorithm.
Gaudi::Property< std::string > m_jetOutScale
TAxis m_etaAxis
Needed to avoid interpolation between eta bins.
ToolHandle< JetHelper::IVarTool > m_varTool
Variable to be used for bin center.
Generic4VecCorrectionStep(const std::string &name="Generic4VecCorrectionStep")
Constructor with parameters:
Gaudi::Property< bool > m_isMC2MCCorr
Properties for MC2MC correction:
std::map< int, ToolHandle< JetHelper::IVarTool > > m_correctionHists
Gaudi::Property< bool > m_useBinCenter
use bin center to avoid interpolation along eta (e.g. for PtResidual correction)
virtual StatusCode calibrate(xAOD::JetContainer &) const override
Apply calibration to a jet container.
ToolHandle< JetHelper::IVarTool > m_hist_c
2D histogram containing the calibration factors for charm quarks
ToolHandle< JetHelper::IVarTool > m_hist_g
2D histogram containing the calibration factors for gluons
ToolHandle< JetHelper::IVarTool > m_hist_q
2D histogram containing the calibration factors for light quarks
Gaudi::Property< std::string > m_jetInScale
ToolHandle< JetHelper::IVarTool > m_histTool
Generic histogram with correction factor (e.g. 2D)
Gaudi::Property< std::string > m_pidLabel
Which truth label should be used.
Gaudi::Property< bool > m_doCjetCorrection
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
ToolHandle< JetHelper::IVarTool > m_hist_b
2D histogram containing the calibration factors for bottom quarks
Gaudi::Property< bool > m_doBjetCorrection
Class JetContext Designed to read AOD information related to the event, N vertices,...
bool setValue(const std::string &name, const T value, bool allowOverwrite=false)
Helper class to provide constant type-safe access to aux data.
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
void setAttribute(SG::AuxElement &p, const TYPE &v) const
std::string label(const std::string &format, int i)
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.