22 StatusCode ReclusteredJetCalibrationAlg ::
29 return StatusCode::SUCCESS;
34 StatusCode ReclusteredJetCalibrationAlg ::
35 execute (
const EventContext &ctx)
const
49 const std::string manualCalibScaleStr{
"JetManualCalibScaleMomentum"};
52 const std::vector< ElementLink< xAOD::IParticleContainer > >& element_links =
jet->constituentLinks();
55 calibP4.SetPxPyPzE(0,0,0,0);
56 for (
const auto& element_link: element_links){
57 if (! element_link.isValid() ) {
61 const auto subjet = *element_link;
62 int index = subjet->index();
64 calibP4 += subjetCal->
jetP4();
68 jet->setJetP4( calibP4 );
72 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
SysCopyHandle< xAOD::JetContainer > m_reclusteredJetHandle
the jet collection we run on
SysReadHandle< xAOD::JetContainer > m_smallRJetHandle
SysListHandle m_systematicsList
the systematics list we run
const T * at(size_type n) const
Access an element, as an rvalue.
JetFourMom_t jetP4() const
The full 4-momentum of the particle : internal jet type.
Select isolated Photons, Electrons and Muons.
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.