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
reco::TrackGhostTrackState::tsos
const TrajectoryStateOnSurface & tsos() const
Definition: TrackGhostTrackState.h:24
TrajectoryStateOnSurface.h
TrajectoryStateOnSurface::cartesianError
const CartesianTrajectoryError cartesianError() const
Definition: TrajectoryStateOnSurface.h:71
TrajectoryStateOnSurface::globalPosition
GlobalPoint globalPosition() const
Definition: TrajectoryStateOnSurface.h:65
reco::TrackGhostTrackState::vertexStateOnMeasurement
Vertex vertexStateOnMeasurement(const GhostTrackPrediction &pred, bool withGhostTrackError) const override
Definition: TrackGhostTrackState.cc:125
CovarianceMatrix
Definition: CovarianceMatrix.h:28
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:46
TransientTrack.h
reco::TrackGhostTrackState::cartesianError
GlobalError cartesianError() const override
Definition: TrackGhostTrackState.h:29
reco::TrackGhostTrackState::cartesianCovariance
CovarianceMatrix cartesianCovariance() const override
Definition: TrackGhostTrackState.h:30
TrajectoryStateOnSurface
Definition: TrajectoryStateOnSurface.h:16
reco::TrackGhostTrackState::vertexStateOnGhostTrack
Vertex vertexStateOnGhostTrack(const GhostTrackPrediction &pred, bool withMeasurementError) const override
Definition: TrackGhostTrackState.cc:81
reco::TrackGhostTrackState
Definition: TrackGhostTrackState.h:19
reco::BasicGhostTrackState::pointer
Proxy::pointer pointer
Definition: BasicGhostTrackState.h:24
reco::TrackGhostTrackState::linearize
bool linearize(const GhostTrackPrediction &pred, bool initial, double lambda) override
Definition: TrackGhostTrackState.cc:43
reco::TrackGhostTrackState::reset
void reset() override
Definition: TrackGhostTrackState.h:34
BasicGhostTrackState.h
reco::TrackGhostTrackState::tsos_
TrajectoryStateOnSurface tsos_
Definition: TrackGhostTrackState.h:44
GlobalError.h
GlobalErrorBase< double, ErrorMatrixTag >
reco::TrackGhostTrackState::isValid
bool isValid() const override
Definition: TrackGhostTrackState.h:26
CartesianTrajectoryError::matrix
const AlgebraicSymMatrix66 & matrix() const
Definition: CartesianTrajectoryError.h:28
reco::TrackGhostTrackState::TrackGhostTrackState
TrackGhostTrackState(const TransientTrack &track)
Definition: TrackGhostTrackState.h:21
reco::TransientTrack
Definition: TransientTrack.h:19
reco::TrackGhostTrackState::track_
TransientTrack track_
Definition: TrackGhostTrackState.h:45
reco::TrackGhostTrackState::clone
pointer clone() const override
Definition: TrackGhostTrackState.h:42
reco::TrackGhostTrackState::track
const TransientTrack & track() const
Definition: TrackGhostTrackState.h:23
GlobalVector.h
reco::BasicGhostTrackState::lambda
double lambda() const
Definition: BasicGhostTrackState.h:40
math::GlobalPoint
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< float >, ROOT::Math::GlobalCoordinateSystemTag > GlobalPoint
point in global coordinate system
Definition: Point3D.h:18
reco::GhostTrackPrediction
Definition: GhostTrackPrediction.h:21
reco::BasicGhostTrackState
Definition: BasicGhostTrackState.h:20
GlobalPoint.h
CartesianTrajectoryError::position
const GlobalError position() const
Position error submatrix.
Definition: CartesianTrajectoryError.h:41
reco::Vertex
Definition: Vertex.h:35
TrajectoryStateOnSurface::isValid
bool isValid() const
Definition: TrajectoryStateOnSurface.h:54
reco::TrackGhostTrackState::globalPosition
GlobalPoint globalPosition() const override
Definition: TrackGhostTrackState.h:28