Loading [MathJax]/extensions/tex2jax.js
|
ATLAS Offline Software
|
Go to the documentation of this file.
18 const std::string&
name, ISvcLocator* loc )
37 return StatusCode::SUCCESS;
47 return StatusCode::FAILURE;
52 if ( !
hits.isValid() ) {
54 return StatusCode::FAILURE;
66 for (
const auto *hit: *
hits) {
67 float localX = hit->globalX() - ei.
beamPosX();
68 float localY = hit->globalY() - ei.
beamPosY();
69 float localZ = hit->globalZ() - ei.
beamPosZ();
71 correctedHitX(*hit) = localX;
72 correctedHitY(*hit) = localY;
73 correctedHitZ(*hit) = localZ;
77 return StatusCode::SUCCESS;
82 return StatusCode::SUCCESS;
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_HitContainerKey
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitZKey
This file contains "getter" functions used for accessing tagger inputs from the EDM.
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
const std::string & key() const
Return the StoreGate ID for the referenced object.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitYKey
float beamPosX() const
X coordinate of the beam spot position.
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitXKey
An algorithm that can be simultaneously executed in multiple threads.
HitDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
float beamPosY() const
Y coordinate of the beam spot position.
::StatusCode StatusCode
StatusCode definition for legacy code.
Handle class for adding a decoration to an object.
Handle class for adding a decoration to an object.
#define CHECK(...)
Evaluate an expression and check for errors.
StatusCode initialize(bool used=true)
If this object is used as a property, then this should be called during the initialize phase.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
float beamPosZ() const
Z coordinate of the beam spot position.
Class describing the basic event information.
virtual StatusCode finalize() override
virtual StatusCode initialize() override
Handle class for reading a decoration on an object.
virtual StatusCode execute(const EventContext &) const override