33 return StatusCode::SUCCESS;
41 ROOT::Math::XYZVector vtx;
48 return StatusCode::FAILURE;
58 correctedHitX(*hit) = hit->globalX() - vtx.X();
59 correctedHitY(*hit) = hit->globalY() - vtx.Y();
60 correctedHitZ(*hit) = hit->globalZ() - vtx.Z();
63 return StatusCode::SUCCESS;
72 return StatusCode::FAILURE;
77 beamSpot->beamPos()[
Amg::x],
78 beamSpot->beamPos()[
Amg::y],
79 beamSpot->beamPos()[
Amg::z]
82 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
Handle class for reading a decoration on an object.
Handle class for adding a decoration to an object.
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitZKey
HitBeamSpotDataDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitYKey
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_HitContainerKey
StatusCode getEventVertex(const EventContext &ctx, ROOT::Math::XYZVector &vtx) const
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitXKey
virtual StatusCode initialize() override
Handle class for adding a decoration to an object.
TrackMeasurementValidation_v1 TrackMeasurementValidation
Reference the current persistent version: