22 StatusCode ReclusteredJetCalibrationAlg ::
29 return StatusCode::SUCCESS;
34 StatusCode ReclusteredJetCalibrationAlg ::
35 execute (
const EventContext &ctx)
const
50 const std::vector< ElementLink< xAOD::IParticleContainer > >& element_links =
jet->constituentLinks();
53 calibP4.SetPxPyPzE(0,0,0,0);
54 for (
const auto& element_link: element_links){
55 if (! element_link.isValid() ) {
59 const auto subjet = *element_link;
60 int index = subjet->index();
62 calibP4 += subjetCal->
jetP4();
66 jet->setJetP4( calibP4 );
70 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
DataVector adapter that acts like it holds const pointers.
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.