Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:54:51

0001 #ifndef TrackingRecHit_RecHit1D_H
0002 #define TrackingRecHit_RecHit1D_H
0003 
0004 /** \class RecHit1D
0005  *
0006  * Base class for 1-dimensional recHits
0007  *  
0008  *
0009  * To be used as base class for all 1D positional TrackingRecHits.
0010  * The coordinate measured is assumend to be the local "x"
0011  *
0012  *  \author S. Lacaprara, G. Cerminara
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   /// Destructor
0025   ~RecHit1D() override {}
0026 
0027   /// Return just the x
0028   AlgebraicVector parameters() const override;
0029 
0030   /// Return just "(sigma_x)^2"
0031   AlgebraicSymMatrix parametersError() const override;
0032 
0033   ///Return the projection matrix
0034   AlgebraicMatrix projectionMatrix() const override { return theProjectionMatrix; }
0035 
0036   /// Return the RecHit dimension
0037   int dimension() const override { return 1; }
0038 
0039   /// Local position
0040   LocalPoint localPosition() const override = 0;
0041 
0042   /// Error on the local position
0043   LocalError localPositionError() const override = 0;
0044 
0045 private:
0046   static const AlgebraicMatrix theProjectionMatrix;
0047 };
0048 #endif