ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagDiscriminants
FlavorTagDiscriminants
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
9
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
10
11
// Containers
12
#include "
xAODEventInfo/EventInfo.h
"
13
#include "
xAODTracking/VertexContainer.h
"
14
#include "
xAODTracking/TrackMeasurementValidationContainer.h
"
15
16
// Read and write handle keys
17
#include "
StoreGate/WriteDecorHandleKey.h
"
18
#include "
StoreGate/ReadHandleKey.h
"
19
20
#include <Math/Vector3D.h>
21
22
23
namespace
FlavorTagDiscriminants
{
24
25
class
HitDecoratorAlg
:
public
AthReentrantAlgorithm
{
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
43
SG::ReadHandleKey<xAOD::TrackMeasurementValidationContainer>
m_HitContainerKey
{
44
this
,
"hitContainer"
,
"PixelClusters"
,
"Key for hits"
};
45
46
47
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_OutputHitXKey
{
48
this
,
"hitsXRelToBeamspotDecorator"
,
m_HitContainerKey
,
"HitsXRelToBeamspot"
,
"Key for output hits x coordinate relative to beamspot"
};
49
50
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_OutputHitYKey
{
51
this
,
"hitsYRelToBeamspotDecorator"
,
m_HitContainerKey
,
"HitsYRelToBeamspot"
,
"Key for output hits y coordinate relative to beamspot"
};
52
53
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer >
m_OutputHitZKey
{
54
this
,
"hitsZRelToBeamspotDecorator"
,
m_HitContainerKey
,
"HitsZRelToBeamspot"
,
"Key for output hits z coordinate relative to beamspot"
};
55
56
SG::ReadHandleKey<xAOD::VertexContainer>
m_verticesKey
{
57
this
,
"vertices"
,
""
,
"Key for Vertices collection, if using a wedge selection w.r.t. the primary vertex"
};
58
59
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
60
this
,
"eventInfo"
,
"EventInfo"
,
"Key for EventInfo"
};
61
62
StatusCode
getEventVertex
(
const
EventContext& ctx, ROOT::Math::XYZVector& vtx)
const
;
63
};
64
}
65
66
#endif
AthReentrantAlgorithm.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
TrackMeasurementValidationContainer.h
VertexContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
FlavorTagDiscriminants::HitDecoratorAlg::HitDecoratorAlg
HitDecoratorAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
HitDecoratorAlg.cxx:15
FlavorTagDiscriminants::HitDecoratorAlg::m_verticesKey
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesKey
Definition
HitDecoratorAlg.h:56
FlavorTagDiscriminants::HitDecoratorAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
HitDecoratorAlg.h:59
FlavorTagDiscriminants::HitDecoratorAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
HitDecoratorAlg.cxx:49
FlavorTagDiscriminants::HitDecoratorAlg::m_OutputHitXKey
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitXKey
Definition
HitDecoratorAlg.h:47
FlavorTagDiscriminants::HitDecoratorAlg::m_OutputHitZKey
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitZKey
Definition
HitDecoratorAlg.h:53
FlavorTagDiscriminants::HitDecoratorAlg::getEventVertex
StatusCode getEventVertex(const EventContext &ctx, ROOT::Math::XYZVector &vtx) const
Definition
HitDecoratorAlg.cxx:79
FlavorTagDiscriminants::HitDecoratorAlg::m_HitContainerKey
SG::ReadHandleKey< xAOD::TrackMeasurementValidationContainer > m_HitContainerKey
Definition
HitDecoratorAlg.h:43
FlavorTagDiscriminants::HitDecoratorAlg::m_OutputHitYKey
SG::WriteDecorHandleKey< xAOD::TrackMeasurementValidationContainer > m_OutputHitYKey
Definition
HitDecoratorAlg.h:50
FlavorTagDiscriminants::HitDecoratorAlg::initialize
virtual StatusCode initialize() override
Definition
HitDecoratorAlg.cxx:20
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
FlavorTagDiscriminants
Definition
CaloChargedFlowDecoratorAlg.h:15
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0