ATLAS Offline Software
Chi2TrackCompatibilityEstimator.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef TRKVERTEXADAPTIVEFITTERTOOLS_CHI2TRACKCOMPATIBILITYESTIMATOR_H
6 #define TRKVERTEXADAPTIVEFITTERTOOLS_CHI2TRACKCOMPATIBILITYESTIMATOR_H
7 
10 
11 #include "xAODTracking/Vertex.h"
12 
29 namespace Trk
30 {
31  class PerigeeLinearizedTrack;
32 
33  class Chi2TrackCompatibilityEstimator : public extends<AthAlgTool, IVertexTrackCompatibilityEstimator>
34  {
35  public:
36  virtual StatusCode initialize() override;
37  virtual StatusCode finalize() override;
38 
42  using base_class::base_class;
43 
47  virtual
48  void estimate(VxTrackAtVertex &,const Amg::Vector3D & vertex) const override;
49 
53  virtual
54  float compatibility(VxTrackAtVertex & vtxTrack,const Amg::Vector3D & vertex) const override;
55 
56  private:
57 
61  template<class T> float _compatibility(T & plane,const Amg::Vector3D & vertex) const;
62 
63  };
64 }
65 #endif
Trk::VxTrackAtVertex
The VxTrackAtVertex is a common class for all present TrkVertexFitters The VxTrackAtVertex is designe...
Definition: VxTrackAtVertex.h:77
Trk::Chi2TrackCompatibilityEstimator::estimate
virtual void estimate(VxTrackAtVertex &, const Amg::Vector3D &vertex) const override
Estimate method changing the state of VxTrackAtVertex.
Definition: Chi2TrackCompatibilityEstimator.cxx:38
Trk::Chi2TrackCompatibilityEstimator::finalize
virtual StatusCode finalize() override
Definition: Chi2TrackCompatibilityEstimator.cxx:31
Trk::Chi2TrackCompatibilityEstimator::_compatibility
float _compatibility(T &plane, const Amg::Vector3D &vertex) const
Compatibility method returning the compatibility value.
Definition: Chi2TrackCompatibilityEstimator.cxx:44
Trk::Chi2TrackCompatibilityEstimator::initialize
virtual StatusCode initialize() override
Definition: Chi2TrackCompatibilityEstimator.cxx:25
Trk::Chi2TrackCompatibilityEstimator
Definition: Chi2TrackCompatibilityEstimator.h:34
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
AthAlgTool.h
Vertex.h
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::vertex
@ vertex
Definition: MeasurementType.h:21
IVertexTrackCompatibilityEstimator.h
Trk::Chi2TrackCompatibilityEstimator::compatibility
virtual float compatibility(VxTrackAtVertex &vtxTrack, const Amg::Vector3D &vertex) const override
Compatibility method returning the compatibility value.
Definition: Chi2TrackCompatibilityEstimator.cxx:115