CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
RecHit1D.h
Go to the documentation of this file.
1 #ifndef TrackingRecHit_RecHit1D_H
2 #define TrackingRecHit_RecHit1D_H
3 
20 
21 
22 class RecHit1D : public TrackingRecHit {
23  public:
24 
27 
29  virtual ~RecHit1D() {}
30 
31 
33  virtual AlgebraicVector parameters() const;
34 
35 
37  virtual AlgebraicSymMatrix parametersError() const;
38 
39 
42  if ( !isInitialized) initialize();
43  return theProjectionMatrix;
44  }
45 
46 
48  virtual int dimension() const {
49  return 1;
50  }
51 
52 
54  virtual LocalPoint localPosition() const = 0;
55 
56 
58  virtual LocalError localPositionError() const = 0;
59 
60 
61  private:
62 
63  static bool isInitialized;
64 
66 
67  void initialize() const;
68 
69 };
70 #endif
71 
72 
73 
74 
75 
virtual LocalPoint localPosition() const =0
Local position.
unsigned int id_type
virtual int dimension() const
Return the RecHit dimension.
Definition: RecHit1D.h:48
void initialize() const
Definition: RecHit1D.cc:44
virtual ~RecHit1D()
Destructor.
Definition: RecHit1D.h:29
RecHit1D(TrackingRecHit::id_type id=0)
Definition: RecHit1D.h:26
static AlgebraicMatrix theProjectionMatrix
Definition: RecHit1D.h:65
virtual LocalError localPositionError() const =0
Error on the local position.
CLHEP::HepMatrix AlgebraicMatrix
virtual AlgebraicSymMatrix parametersError() const
Return just "(sigma_x)^2".
Definition: RecHit1D.cc:26
Definition: DetId.h:20
CLHEP::HepVector AlgebraicVector
RecHit1D(DetId id)
Definition: RecHit1D.h:25
virtual AlgebraicMatrix projectionMatrix() const
Return the projection matrix.
Definition: RecHit1D.h:41
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual AlgebraicVector parameters() const
Return just the x.
Definition: RecHit1D.cc:17
static bool isInitialized
Definition: RecHit1D.h:63