5#ifndef HIT_BEAMSPOT_DATA_DECORATOR_ALG_HH
6#define HIT_BEAMSPOT_DATA_DECORATOR_ALG_HH
22#include <Math/Vector3D.h>
35 ISvcLocator* pSvcLocator);
38 virtual StatusCode
execute(
const EventContext& ctx)
const override;
44 this,
"hitContainer",
"PixelClusters",
"Key for hits"};
47 this,
"hitsXRelToBeamspotDecorator",
m_HitContainerKey,
"HitsXRelToBeamspot",
"Key for output hits x coordinate relative to the vertex"};
50 this,
"hitsYRelToBeamspotDecorator",
m_HitContainerKey,
"HitsYRelToBeamspot",
"Key for output hits y coordinate relative to the vertex"};
53 this,
"hitsZRelToBeamspotDecorator",
m_HitContainerKey,
"HitsZRelToBeamspot",
"Key for output hits z coordinate relative to the vertex"};
57 this,
"beamSpotKey",
"",
"Key for BeamSpot confition data"};
59 StatusCode
getEventVertex(
const EventContext& ctx, ROOT::Math::XYZVector& vtx)
const;
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
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
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.