|
ATLAS Offline Software
|
Go to the documentation of this file.
25 return StatusCode::SUCCESS;
34 return StatusCode::FAILURE;
39 ATH_MSG_FATAL(
"Could not retrieve xAOD::EventShape::Density from xAOD::EventShape "<<
m_rhoKey.key());
40 return StatusCode::FAILURE;
58 calibP4 = jetStartP4 -
rho*jetareaP4;
60 ATH_MSG_VERBOSE(
" Applying postive-only area-subtraction calibration to jet " <<
jet->index() <<
" with pT = " << 0.001*
jet->pt() <<
" GeV");
61 const double pT_det = jetStartP4.pt();
62 const double E_det = jetStartP4.e();
64 const double area_SF = (pT_det-
rho*jetareaP4.pt()<=0 || E_det-
rho*jetareaP4.e()<=0) ? 10/pT_det : (pT_det-
rho*jetareaP4.pt())/pT_det;
65 calibP4 = jetStartP4*area_SF;
69 puCorrectedAcc(*
jet) = 1 ;
72 jet->setJetP4( calibP4 );
74 return StatusCode::SUCCESS;
bool getDensity(EventDensityID id, double &v) const
Get a density variable from the object.
const_pointer_type cptr()
Dereference the pointer.
Helper class to provide type-safe access to aux data.
void setAttribute(SG::AuxElement &p, const TYPE &v) const
void getAttribute(const SG::AuxElement &p, TYPE &v) const
Gaudi::Property< bool > m_useFull4vectorArea
#define ATH_MSG_VERBOSE(x)
SG::ReadHandleKey< xAOD::EventShape > m_rhoKey
virtual StatusCode initialize() override
Dummy implementation of the initialisation function.
::StatusCode StatusCode
StatusCode definition for legacy code.
virtual StatusCode calibrate(xAOD::JetContainer &jetCont) const override
Apply calibration to a jet container.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
Data class for event shapes.
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< double > > JetFourMom_t
Base 4 Momentum type for Jet.
PileupAreaCalibStep(const std::string &name="PileupAreaCalibStep")
This header defines wrapper classes around SG::AuxElement::Accessor used internally in the Jet EDM.