|
ATLAS Offline Software
|
Go to the documentation of this file.
32 return StatusCode::SUCCESS;
38 if (!beamSpotHandle.isValid()) {
40 return StatusCode::FAILURE;
44 if (!inputEventInfo.
isValid()) {
45 ATH_MSG_ERROR(
"Could not get input xAOD::EventInfo " << inputEventInfo.
name() <<
" from store " << inputEventInfo.
store());
46 return StatusCode::FAILURE;
48 ATH_MSG_DEBUG(
"Found input xAOD::EventInfo " << inputEventInfo.
name() <<
" in store " << inputEventInfo.
store());
51 ATH_CHECK(eventInfo.
record(std::make_unique<xAOD::EventInfo>(), std::make_unique<xAOD::EventAuxInfo>()));
53 ATH_MSG_ERROR(
"Could not record output xAOD::EventInfo " << eventInfo.
name() <<
" to store " << eventInfo.
store());
54 return StatusCode::FAILURE;
56 ATH_MSG_DEBUG(
"Recorded output xAOD::EventInfo " << eventInfo.
name() <<
" in store " << eventInfo.
store());
59 *eventInfo = *inputEventInfo;
63 beamSpotHandle->beamPos()[
Amg::y ],
64 beamSpotHandle->beamPos()[
Amg::z ] );
66 beamSpotHandle->beamSigma( 1 ),
67 beamSpotHandle->beamSigma( 2 ) );
73 return StatusCode::SUCCESS;
const std::string & name() const
Return the StoreGate ID for the referenced object.
void setBeamPos(float x, float y, float z)
Set the beam spot position.
#define ATH_MSG_VERBOSE(x)
void setBeamPosSigma(float x, float y, float z)
Set the size of the beam spot.
An algorithm that can be simultaneously executed in multiple threads.
void setBeamTiltYZ(float value)
Set the beam's tilt in radians in YZ.
void setBeamStatus(uint32_t value)
Set the beam spot's status word.
Handle class for recording to StoreGate.
SG::ReadHandleKey< xAOD::EventInfo > m_inputKey
::StatusCode StatusCode
StatusCode definition for legacy code.
std::string store() const
Return the name of the store holding the object we are proxying.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
BeamSpotFixerAlg(const std::string &name, ISvcLocator *pSvcLocator)
void setBeamPosSigmaXY(float value)
Set the beam spot shape's X-Y correlation.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
virtual StatusCode execute(const EventContext &ctx) const override final
Athena algorithm's interface method execute()
virtual StatusCode initialize() override final
Athena algorithm's interface method initialize()
virtual bool isValid() override final
Can the handle be successfully dereferenced?
SG::WriteHandleKey< xAOD::EventInfo > m_outputKey
StatusCode initialize(bool used=true)
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
void setBeamTiltXZ(float value)
Set the beam's tilt in radians in XZ.
Handle class for reading from StoreGate.
SG::ReadCondHandleKey< InDet::BeamSpotData > m_beamSpotKey