ATLAS Offline Software
TrueVertexDistanceWeightCalculator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TrkVertexWeightCalculator_TrueVertexDistanceWeightCalculator_H
6 #define TrkVertexWeightCalculator_TrueVertexDistanceWeightCalculator_H
7 
9 #include "GaudiKernel/ToolHandle.h"
12 
13 // xAOD include
17 #include "xAODTracking/VertexFwd.h"
18 
33 class McEventCollection;
34 
35 namespace Trk {
36 
38  : public AthAlgTool
39  , virtual public IVertexWeightCalculator
40 {
41 public:
42  virtual StatusCode initialize() override;
43  virtual StatusCode finalize() override;
44 
49  TrueVertexDistanceWeightCalculator(const std::string& t,
50  const std::string& n,
51  const IInterface* p);
52 
58 
63  virtual double estimateSignalCompatibility(const xAOD::Vertex& vertex) const override final;
64 
65 private:
67  this,
68  "McTruthCollection",
69  "TruthEvent",
70  "key to retrieve MC truth"
71  };
72 
73  double mEstimateSignalCompatibility(const Amg::Vector3D& vtxPosition) const;
74 
75 }; // end of class description
76 } // end of namespace definition
77 
78 #endif
Trk::TrueVertexDistanceWeightCalculator::TrueVertexDistanceWeightCalculator
TrueVertexDistanceWeightCalculator(const std::string &t, const std::string &n, const IInterface *p)
constructor
Definition: TrueVertexDistanceWeightCalculator.cxx:27
Trk::TrueVertexDistanceWeightCalculator::initialize
virtual StatusCode initialize() override
Definition: TrueVertexDistanceWeightCalculator.cxx:14
read_hist_ntuple.t
t
Definition: read_hist_ntuple.py:5
SG::ReadHandleKey< McEventCollection >
IVertexWeightCalculator.h
GeoPrimitives.h
Trk::TrueVertexDistanceWeightCalculator::m_mcEventCollectionKey
SG::ReadHandleKey< McEventCollection > m_mcEventCollectionKey
Definition: TrueVertexDistanceWeightCalculator.h:66
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
Trk::TrueVertexDistanceWeightCalculator::mEstimateSignalCompatibility
double mEstimateSignalCompatibility(const Amg::Vector3D &vtxPosition) const
Definition: TrueVertexDistanceWeightCalculator.cxx:44
McEventCollection.h
Trk::TrueVertexDistanceWeightCalculator::finalize
virtual StatusCode finalize() override
Definition: TrueVertexDistanceWeightCalculator.cxx:21
beamspotman.n
n
Definition: beamspotman.py:731
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::TrueVertexDistanceWeightCalculator::estimateSignalCompatibility
virtual double estimateSignalCompatibility(const xAOD::Vertex &vertex) const override final
WeightCalculator.
Definition: TrueVertexDistanceWeightCalculator.cxx:37
AthAlgTool.h
McEventCollection
This defines the McEventCollection, which is really just an ObjectVector of McEvent objects.
Definition: McEventCollection.h:33
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Amg::Vector3D
Eigen::Matrix< double, 3, 1 > Vector3D
Definition: GeoPrimitives.h:47
Trk::TrueVertexDistanceWeightCalculator
Definition: TrueVertexDistanceWeightCalculator.h:40
VertexFwd.h
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
Trk::TrueVertexDistanceWeightCalculator::~TrueVertexDistanceWeightCalculator
virtual ~TrueVertexDistanceWeightCalculator()=default
destructor
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
TrackParticleFwd.h
Trk::IVertexWeightCalculator
Definition: IVertexWeightCalculator.h:40
AthAlgTool
Definition: AthAlgTool.h:26
VertexAuxContainer.h