CMS 3D CMS Logo

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
TrackGhostTrackState(const TransientTrack &track)
GlobalPoint globalPosition() const
pointer clone() const override
GlobalPoint globalPosition() const override
const GlobalError position() const
Position error submatrix.
const TransientTrack & track() const
Vertex vertexStateOnMeasurement(const GhostTrackPrediction &pred, bool withGhostTrackError) const override
const TrajectoryStateOnSurface & tsos() const
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
fixed size matrix
const AlgebraicSymMatrix66 & matrix() const
CovarianceMatrix cartesianCovariance() const override
bool linearize(const GhostTrackPrediction &pred, bool initial, double lambda) override
GlobalError cartesianError() const override