58 return StatusCode::SUCCESS;
73 beamPosXHandle( *beamPosXHandle ) = beamSpotData->
beamPos()[
Amg::x ];
76 beamPosYHandle( *beamPosYHandle ) = beamSpotData->
beamPos()[
Amg::y ];
79 beamPosZHandle( *beamPosZHandle ) = beamSpotData->
beamPos()[
Amg::z ];
83 beamPosSigmaXHandle( *beamPosSigmaXHandle ) =
87 beamPosSigmaYHandle( *beamPosSigmaYHandle ) =
91 beamPosSigmaZHandle( *beamPosSigmaZHandle ) =
95 beamPosSigmaXYHandle( *beamPosSigmaXYHandle ) =
100 beamTiltXZHandle( *beamTiltXZHandle ) = beamSpotData->
beamTilt( 0 );
103 beamTiltYZHandle( *beamTiltYZHandle ) = beamSpotData->
beamTilt( 1 );
107 beamStatusHandle( *beamStatusHandle ) = beamSpotData->
beamStatus();
110 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
DECLARE_COMPONENT(MuonGMR4::ReadoutGeomCnvAlg)
Handle class for adding a decoration to an object.
float beamTilt(int i) const noexcept
Returns the beam sigma for the i+3-th error matrix element (the 'tilt')
float beamSigma(int i) const noexcept
Returns the beam sigma for the i-th error matrix element.
int beamStatus() const noexcept
const Amg::Vector3D & beamPos() const noexcept
float beamSigmaXY() const noexcept
const_pointer_type retrieve()
Handle class for adding a decoration to an object.
Algorithm for filling the beam position variables on xAOD::EventInfo.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamPosSigmaXKey
Decorator handle for beamPosSigmaX.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamPosYKey
Decorator handle for beamPosY.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamPosSigmaYKey
Decorator handle for beamPosSigmaY.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Read handle for EventInfo object to be decorated.
virtual StatusCode initialize() override
Function initialising the algorithm.
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey
Conditions object with the beamspot information.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamStatusKey
Decorator handle for beamStatus.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamTiltXZKey
Decorator handle for beamTiltXZ.
virtual StatusCode execute(const EventContext &ctx) const override
Function executing the algorithm.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamTiltYZKey
Decorator handle for beamTiltYZ.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamPosZKey
Decorator handle for beamPosZ.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamPosSigmaXYKey
Decorator handle for beamPosSigmaXY.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamPosSigmaZKey
Decorator handle for beamPosSigmaZ.
SG::WriteDecorHandleKey< xAOD::EventInfo > m_beamPosXKey
Decorator handle for beamPosX.