27 return StatusCode::SUCCESS;
46 if (!readHandleEvtShape.
isValid())
49 return StatusCode::FAILURE;
51 shape = readHandleEvtShape.
get();
56 return StatusCode::FAILURE;
63 ATH_MSG_ERROR(
"Could not retrieve output shape w/ modulator tool");
64 return StatusCode::FAILURE;
74 for (
const auto* constituent : constituents)
88 << std::setw(12) <<
"Before:"
89 << std::setw(10) << std::setprecision(3) << p4_unsubtr.Pt()*1e-3
90 << std::setw(10) << std::setprecision(3) << p4_unsubtr.Eta()
91 << std::setw(10) << std::setprecision(3) << p4_unsubtr.Phi()
92 << std::setw(10) << std::setprecision(3) << p4_unsubtr.E()*1e-3
93 << std::setw(10) << std::setprecision(3) << p4_unsubtr.M()*1e-3
94 << std::setw(12) <<
"After:"
95 << std::setw(10) << std::setprecision(3) << p4_subtr.Pt()*1e-3
96 << std::setw(10) << std::setprecision(3) << p4_subtr.Eta()
97 << std::setw(10) << std::setprecision(3) << p4_subtr.Phi()
98 << std::setw(10) << std::setprecision(3) << p4_subtr.E()*1e-3
99 << std::setw(10) << std::setprecision(3) << p4_subtr.M()*1e-3);
104 if(p4_subtr.E()/std::cosh(p4_subtr.Eta()) < E_min)
109 jet4vec.SetCoordinates(p4_subtr.Pt(),p4_subtr.Eta(),p4_subtr.Phi(),p4_subtr.M());
117 (*ijet)->setJetP4(
"JetPileupScaleMomentum", jet4vec );
124 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
This file defines helper classes to deal with jet constituents.
Handle class for reading from StoreGate.
Handle class for recording to StoreGate.
bool msgLvl(const MSG::Level lvl) const
DataModel_detail::iterator< DataVector > iterator
JetModifierBase(const std::string &myname)
Ctor.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
const_pointer_type get() const
Dereference the pointer, but don't cache anything.
TLorentzVector FourMom_t
Definition of the 4-momentum type.
A vector of jet constituents at the scale used during jet finding.
constexpr xAOD::CaloCluster::State unsubtractedClusterState()
constexpr xAOD::JetConstitScale subtractedConstitState()
CaloCluster_v1 CaloCluster
Define the latest version of the calorimeter cluster class.
HIEventShapeContainer_v2 HIEventShapeContainer
Define the latest version of the container.
JetContainer_v1 JetContainer
Definition of the current "jet container version".
HIEventShape_v2 HIEventShape
Definition of the latest event info version.
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.