CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TrackGhostTrackState.h
Go to the documentation of this file.
1 #ifndef RecoBTag_TrackGhostTrackState_h
2 #define RecoBTag_TrackGhostTrackState_h
3 
4 #include <utility>
5 
9 
12 
14 
15 namespace reco {
16 
17  class GhostTrackPrediction;
18 
20  public:
22 
23  const TransientTrack &track() const { return track_; }
24  const TrajectoryStateOnSurface &tsos() const { return tsos_; }
25 
26  bool isValid() const override { return tsos_.isValid(); }
27 
28  GlobalPoint globalPosition() const override { return tsos_.globalPosition(); }
29  GlobalError cartesianError() const override { return tsos_.cartesianError().position(); }
31  return tsos_.cartesianError().matrix().Sub<CovarianceMatrix>(0, 0);
32  }
33 
34  void reset() override { tsos_ = TrajectoryStateOnSurface(); }
35  bool linearize(const GhostTrackPrediction &pred, bool initial, double lambda) override;
36  bool linearize(const GhostTrackPrediction &pred, double lambda) override;
37 
38  Vertex vertexStateOnGhostTrack(const GhostTrackPrediction &pred, bool withMeasurementError) const override;
39  Vertex vertexStateOnMeasurement(const GhostTrackPrediction &pred, bool withGhostTrackError) const override;
40 
41  private:
42  pointer clone() const override { return build<TrackGhostTrackState>(*this); }
43 
46  };
47 
48 } // namespace reco
49 
50 #endif // RecoBTag_TrackGhostTrackState_h
bool isValid() const override
TrajectoryStateOnSurface tsos_
const CartesianTrajectoryError cartesianError() const
GlobalPoint globalPosition() const
const TransientTrack & track() const
const TrajectoryStateOnSurface & tsos() const
TrackGhostTrackState(const TransientTrack &track)
pointer clone() const override
GlobalPoint globalPosition() const override
Vertex vertexStateOnMeasurement(const GhostTrackPrediction &pred, bool withGhostTrackError) const override
const AlgebraicSymMatrix66 & matrix() const
const GlobalError position() const
Position error submatrix.
Vertex vertexStateOnGhostTrack(const GhostTrackPrediction &pred, bool withMeasurementError) const override
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Definition: Point3D.h:18
CovarianceMatrix cartesianCovariance() const override
bool linearize(const GhostTrackPrediction &pred, bool initial, double lambda) override
GlobalError cartesianError() const override