ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
FlavorTagDiscriminants
FlavorTagDiscriminants
PoorMansIpAugmenterAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef POOR_MANS_TRACK_AUGMENTER_ALG_HH
6
#define POOR_MANS_TRACK_AUGMENTER_ALG_HH
7
8
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
#include "
AthContainers/AuxElement.h
"
11
#include "
xAODTracking/TrackParticleContainer.h
"
12
#include "
xAODTracking/VertexContainer.h
"
13
#include "
xAODTracking/VertexAuxContainer.h
"
14
#include "
StoreGate/WriteDecorHandleKey.h
"
15
#include "
StoreGate/ReadDecorHandleKey.h
"
16
#include "
xAODEventInfo/EventInfo.h
"
17
18
namespace
FlavorTagDiscriminants
{
19
20
21
class
PoorMansIpAugmenterAlg
:
public
AthReentrantAlgorithm
{
22
public
:
23
PoorMansIpAugmenterAlg
(
const
std::string& name,
24
ISvcLocator* pSvcLocator );
25
26
virtual
StatusCode
initialize
()
override
;
27
virtual
StatusCode
execute
(
const
EventContext& )
const override
;
28
virtual
StatusCode
finalize
()
override
;
29
30
31
private
:
32
const
xAOD::Vertex
*
getPrimaryVertex
(
const
xAOD::VertexContainer
& )
const
;
33
34
private
:
35
36
// Input Containers
37
SG::ReadHandleKey< xAOD::TrackParticleContainer >
m_TrackContainerKey
{
38
this
,
"trackContainer"
,
"InDetTrackParticles"
,
39
"Key for the input track collection"
};
40
SG::ReadHandleKey< xAOD::VertexContainer >
m_VertexContainerKey
{
41
this
,
"primaryVertexContainer"
,
""
,
42
"Key for the input vertex collection, (empty to use beamspot)"
};
43
44
SG::ReadHandleKey< xAOD::EventInfo >
m_eventInfoKey
{
45
this
,
"eventInfo"
,
"EventInfo"
,
"Key for EventInfo"
};
46
47
// Decorators for tracks
48
Gaudi::Property< std::string >
m_prefix
{
this
,
"prefix"
,
"poboyIp_"
,
""
};
49
Gaudi::Property< bool >
m_d0_modification
{
this
,
"d0_modification"
,
false
,
50
"If true, d0 is corrected relative to the beamspot using the primary vertex "
51
"(x,y) position. If false, d0 is left unmodified (existing PoorMansIp behaviour). "
52
"In both cases, z0 is made relative to the beamspot."
};
53
54
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_dec_d0_sigma
{
55
this
,
"d0Uncertainty"
,
"d0Uncertainty"
,
"d0Uncertainty of tracks"
};
56
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_dec_z0_sigma
{
57
this
,
"z0SinThetaUncertainty"
,
"z0SinThetaUncertainty"
,
58
"z0SinThetaUncertainty of tracks"
};
59
60
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_dec_track_pos
{
61
this
,
"trackDisplacement"
,
"trackDisplacement"
,
62
"trackDisplacement of tracks"
};
63
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_dec_track_mom
{
64
this
,
"trackMomentum"
,
"trackMomentum"
,
"trackMomentum of tracks"
};
65
66
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
m_dec_invalid
{
67
this
,
"invalidIp"
,
"invalidIp"
,
"flag for invalid impact parameter"
68
};
69
70
// accessors for beam spot uncertainty
71
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_beam_sigma_x
{
72
this
,
"beamspotSigmaX"
,
m_eventInfoKey
,
"beamPosSigmaX"
,
73
"Beam spot position sigma in X"
74
};
75
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_beam_sigma_y
{
76
this
,
"beamspotSigmaY"
,
m_eventInfoKey
,
"beamPosSigmaY"
,
77
"Beam spot position sigma in Y"
78
};
79
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_beam_sigma_z
{
80
this
,
"beamspotSigmaZ"
,
m_eventInfoKey
,
"beamPosSigmaZ"
,
81
"Beam spot position sigma in Z"
82
};
83
// note that this last entry is a covariance: the units are mm^2,
84
// whereas the above have units of mm
85
SG::ReadDecorHandleKey<xAOD::EventInfo>
m_beam_cov_xy
{
86
this
,
"beamspotCovarianceXY"
,
m_eventInfoKey
,
"beamPosSigmaXY"
,
87
"Beam spot covariance in XY"
88
};
89
};
90
91
}
92
93
#endif
AthReentrantAlgorithm.h
AuxElement.h
Base class for elements of a container that can have aux data.
TrackParticleContainer.h
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
VertexAuxContainer.h
VertexContainer.h
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_beam_cov_xy
SG::ReadDecorHandleKey< xAOD::EventInfo > m_beam_cov_xy
Definition
PoorMansIpAugmenterAlg.h:85
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_TrackContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackContainerKey
Definition
PoorMansIpAugmenterAlg.h:37
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_track_pos
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_track_pos
Definition
PoorMansIpAugmenterAlg.h:60
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_z0_sigma
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_z0_sigma
Definition
PoorMansIpAugmenterAlg.h:56
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::getPrimaryVertex
const xAOD::Vertex * getPrimaryVertex(const xAOD::VertexContainer &) const
Definition
PoorMansIpAugmenterAlg.cxx:310
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::finalize
virtual StatusCode finalize() override
Definition
PoorMansIpAugmenterAlg.cxx:306
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_prefix
Gaudi::Property< std::string > m_prefix
Definition
PoorMansIpAugmenterAlg.h:48
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_beam_sigma_x
SG::ReadDecorHandleKey< xAOD::EventInfo > m_beam_sigma_x
Definition
PoorMansIpAugmenterAlg.h:71
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::initialize
virtual StatusCode initialize() override
Definition
PoorMansIpAugmenterAlg.cxx:136
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_VertexContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_VertexContainerKey
Definition
PoorMansIpAugmenterAlg.h:40
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_track_mom
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_track_mom
Definition
PoorMansIpAugmenterAlg.h:63
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_beam_sigma_z
SG::ReadDecorHandleKey< xAOD::EventInfo > m_beam_sigma_z
Definition
PoorMansIpAugmenterAlg.h:79
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition
PoorMansIpAugmenterAlg.cxx:191
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
PoorMansIpAugmenterAlg.h:44
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_beam_sigma_y
SG::ReadDecorHandleKey< xAOD::EventInfo > m_beam_sigma_y
Definition
PoorMansIpAugmenterAlg.h:75
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_invalid
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_invalid
Definition
PoorMansIpAugmenterAlg.h:66
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::PoorMansIpAugmenterAlg
PoorMansIpAugmenterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition
PoorMansIpAugmenterAlg.cxx:132
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_d0_sigma
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_d0_sigma
Definition
PoorMansIpAugmenterAlg.h:54
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_d0_modification
Gaudi::Property< bool > m_d0_modification
Definition
PoorMansIpAugmenterAlg.h:49
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition
StoreGate/StoreGate/ReadDecorHandleKey.h:86
SG::ReadHandleKey< xAOD::TrackParticleContainer >
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
FlavorTagDiscriminants
Definition
CaloChargedFlowDecoratorAlg.h:15
xAOD::VertexContainer
VertexContainer_v1 VertexContainer
Definition of the current "Vertex container version".
Definition
VertexContainer.h:14
xAOD::Vertex
Vertex_v1 Vertex
Define the latest version of the vertex class.
Definition
Event/xAOD/xAODTracking/xAODTracking/Vertex.h:16
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0