ATLAS Offline Software
Loading...
Searching...
No Matches
HitDecoratorAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef HIT_DECORATOR_ALG_HH
6#define HIT_DECORATOR_ALG_HH
7
8// FrameWork includes
10
11// Containers
15
16// Read and write handle keys
19
20#include <Math/Vector3D.h>
21
22
23namespace FlavorTagDiscriminants {
24
32
33 public:
34 HitDecoratorAlg(const std::string& name,
35 ISvcLocator* pSvcLocator );
36
37 virtual StatusCode initialize() override;
38 virtual StatusCode execute(const EventContext& ctx) const override;
39
40
41 private:
42 // Read and write handle keys for hits
44 this, "hitContainer", "PixelClusters", "Key for hits"};
45
46
48 this, "hitsXRelToBeamspotDecorator", m_HitContainerKey, "HitsXRelToBeamspot", "Key for output hits x coordinate relative to beamspot"};
49
51 this, "hitsYRelToBeamspotDecorator", m_HitContainerKey, "HitsYRelToBeamspot", "Key for output hits y coordinate relative to beamspot"};
52
54 this, "hitsZRelToBeamspotDecorator", m_HitContainerKey, "HitsZRelToBeamspot", "Key for output hits z coordinate relative to beamspot"};
55
57 this, "vertices", "", "Key for Vertices collection, if using a wedge selection w.r.t. the primary vertex"};
58
60 this, "eventInfo", "EventInfo", "Key for EventInfo"};
61
62 StatusCode getEventVertex(const EventContext& ctx, ROOT::Math::XYZVector& vtx) const;
63 };
64}
65
66#endif
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.
An algorithm that can be simultaneously executed in multiple threads.
HitDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitXKey
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitZKey
StatusCode getEventVertex(const EventContext &ctx, ROOT::Math::XYZVector &vtx) const
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_HitContainerKey
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitYKey
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.