ATLAS Offline Software
PoorMansIpAugmenterAlg.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 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 
9 #include "GaudiKernel/ToolHandle.h"
17 
18 namespace FlavorTagDiscriminants {
19 
20 
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:
33 
34  private:
35 
36  // Input Containers
38  this,"trackContainer","InDetTrackParticles",
39  "Key for the input track collection"};
41  this,"primaryVertexContainer","",
42  "Key for the input vertex collection, (empty to use beamspot)"};
43 
45  this, "eventInfo", "EventInfo", "Key for EventInfo"};
46 
47  // Decorators for tracks
48  Gaudi::Property< std::string > m_prefix{this,"prefix","poboyIp_",""};
49 
51  this, "d0Uncertainty", "d0Uncertainty", "d0Uncertainty of tracks"};
53  this, "z0SinThetaUncertainty", "z0SinThetaUncertainty",
54  "z0SinThetaUncertainty of tracks"};
55 
57  this, "trackDisplacement","trackDisplacement",
58  "trackDisplacement of tracks" };
60  this, "trackMomentum","trackMomentum","trackMomentum of tracks" };
61 
63  this, "invalidIp", "invalidIp", "flag for invalid impact parameter"
64  };
65 
66  // accessors for beam spot uncertainty
68  this, "beamspotSigmaX", "EventInfo.beamPosSigmaX",
69  "Beam spot position sigma in X"
70  };
72  this, "beamspotSigmaY", "EventInfo.beamPosSigmaY",
73  "Beam spot position sigma in Y"
74  };
76  this, "beamspotSigmaZ", "EventInfo.beamPosSigmaZ",
77  "Beam spot position sigma in Z"
78  };
79  // note that this last entry is a covariance: the units are mm^2,
80  // whereas the above have units of mm
82  this, "beamspotCovarianceXY", "EventInfo.beamPosSigmaXY",
83  "Beam spot covariance in XY"
84  };
85  };
86 
87 }
88 
89 #endif
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer >
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_beam_cov_xy
SG::ReadDecorHandleKey< xAOD::EventInfo > m_beam_cov_xy
Definition: PoorMansIpAugmenterAlg.h:81
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_VertexContainerKey
SG::ReadHandleKey< xAOD::VertexContainer > m_VertexContainerKey
Definition: PoorMansIpAugmenterAlg.h:40
FlavorTagDiscriminants::PoorMansIpAugmenterAlg
Definition: PoorMansIpAugmenterAlg.h:21
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_beam_sigma_x
SG::ReadDecorHandleKey< xAOD::EventInfo > m_beam_sigma_x
Definition: PoorMansIpAugmenterAlg.h:67
ReadDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_prefix
Gaudi::Property< std::string > m_prefix
Definition: PoorMansIpAugmenterAlg.h:48
FlavorTagDiscriminants
This file contains "getter" functions used for accessing tagger inputs from the EDM.
Definition: AssociationEnums.h:11
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_track_pos
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_track_pos
Definition: PoorMansIpAugmenterAlg.h:56
SG::ReadHandleKey< xAOD::TrackParticleContainer >
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_d0_sigma
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_d0_sigma
Definition: PoorMansIpAugmenterAlg.h:50
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::finalize
virtual StatusCode finalize() override
Definition: PoorMansIpAugmenterAlg.cxx:296
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_invalid
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_invalid
Definition: PoorMansIpAugmenterAlg.h:62
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition: PoorMansIpAugmenterAlg.h:44
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::getPrimaryVertex
const xAOD::Vertex * getPrimaryVertex(const xAOD::VertexContainer &) const
Definition: PoorMansIpAugmenterAlg.cxx:300
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_beam_sigma_y
SG::ReadDecorHandleKey< xAOD::EventInfo > m_beam_sigma_y
Definition: PoorMansIpAugmenterAlg.h:71
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_z0_sigma
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_z0_sigma
Definition: PoorMansIpAugmenterAlg.h:52
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_beam_sigma_z
SG::ReadDecorHandleKey< xAOD::EventInfo > m_beam_sigma_z
Definition: PoorMansIpAugmenterAlg.h:75
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_dec_track_mom
SG::WriteDecorHandleKey< xAOD::TrackParticleContainer > m_dec_track_mom
Definition: PoorMansIpAugmenterAlg.h:59
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::m_TrackContainerKey
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_TrackContainerKey
Definition: PoorMansIpAugmenterAlg.h:37
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
AthReentrantAlgorithm.h
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::initialize
virtual StatusCode initialize() override
Definition: PoorMansIpAugmenterAlg.cxx:136
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
EventInfo.h
VertexContainer.h
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::PoorMansIpAugmenterAlg
PoorMansIpAugmenterAlg(const std::string &name, ISvcLocator *pSvcLocator)
Definition: PoorMansIpAugmenterAlg.cxx:132
SG::ReadDecorHandleKey
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Definition: StoreGate/StoreGate/ReadDecorHandleKey.h:85
TrackParticleContainer.h
FlavorTagDiscriminants::PoorMansIpAugmenterAlg::execute
virtual StatusCode execute(const EventContext &) const override
Definition: PoorMansIpAugmenterAlg.cxx:189
AuxElement.h
Base class for elements of a container that can have aux data.
VertexAuxContainer.h