File indexing completed on 2024-04-06 12:05:21
0001 #ifndef TrackingRecHit_RecHit1D_H
0002 #define TrackingRecHit_RecHit1D_H
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
0016 #include "DataFormats/GeometrySurface/interface/LocalError.h"
0017 #include "DataFormats/GeometryVector/interface/LocalPoint.h"
0018
0019 class RecHit1D : public TrackingRecHit {
0020 public:
0021 RecHit1D(DetId id) : TrackingRecHit(id) {}
0022 RecHit1D(TrackingRecHit::id_type id = 0) : TrackingRecHit(id) {}
0023
0024
0025 ~RecHit1D() override {}
0026
0027
0028 AlgebraicVector parameters() const override;
0029
0030
0031 AlgebraicSymMatrix parametersError() const override;
0032
0033
0034 AlgebraicMatrix projectionMatrix() const override { return theProjectionMatrix; }
0035
0036
0037 int dimension() const override { return 1; }
0038
0039
0040 LocalPoint localPosition() const override = 0;
0041
0042
0043 LocalError localPositionError() const override = 0;
0044
0045 private:
0046 static const AlgebraicMatrix theProjectionMatrix;
0047 };
0048 #endif