CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTRecHit1D.h
Go to the documentation of this file.
1 #ifndef DTRecHit_DTRecHit1D_H
2 #define DTRecHit_DTRecHit1D_H
3 
17 //#include "DataFormats/GeometrySurface/interface/LocalError.h"
18 
20 
23 
24 
25 class DTLayer;
26 class GeomDet;
27 
28 class DTRecHit1D : public RecHit1D {
29  public:
30 
32  DTRecHit1D(const DTWireId& wireId,
34  float digiTime);
35 
37  DTRecHit1D();
38 
43  DTRecHit1D(const DTWireId& wireId,
45  float digiTime,
46  const LocalPoint& pos);
47 
48 
50  DTRecHit1D(const DTWireId& wireId,
52  float digiTime,
53  const LocalPoint& pos,
54  const LocalError& err);
55 
56 
58  virtual ~DTRecHit1D();
59 
60 
62  virtual LocalPoint localPosition() const {
63  return theLocalPosition;
64  }
65 
66 
68  virtual LocalError localPositionError() const {
69  return theLocalError;
70  }
71 
72  virtual DTRecHit1D* clone() const;
73 
74 
76  virtual std::vector<const TrackingRecHit*> recHits() const;
77 
78 
80  virtual std::vector<TrackingRecHit*> recHits();
81 
82 
85  return theLRSide;
86  }
87 
88 
90  void setPosition(LocalPoint pos) {
92  }
93 
94 
96  void setError(LocalError err) {
97  theLocalError = err;
98  }
99 
100 
104  theLocalError = err;
105  }
106 
107 
109  DTWireId wireId() const {
110  return theWireId;
111  }
112 
113 
115  float digiTime() const {
116  return theDigiTime;
117  }
118 
119 
121  bool operator==(const DTRecHit1D& hit) const;
122 
123  private:
124  // The wire id
126 
127  // Left/Right side code
129 
130  // The digi time used to reconstruct the hit
131  float theDigiTime;
132 
133  // Position and error in the Local Ref. Frame of the DTLayer
136 
137 
138 };
139 #endif
140 
141 
143 std::ostream& operator<<(std::ostream& os, const DTRecHit1D& hit);
144 
145 
void setPosition(LocalPoint pos)
Set local position.
Definition: DTRecHit1D.h:90
DTCellSide
Which side of the DT cell.
Definition: DTEnums.h:17
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
void setError(LocalError err)
Set local position error.
Definition: DTRecHit1D.h:96
LocalError theLocalError
Definition: DTRecHit1D.h:135
virtual DTRecHit1D * clone() const
Definition: DTRecHit1D.cc:76
float theDigiTime
Definition: DTRecHit1D.h:131
virtual ~DTRecHit1D()
Destructor.
Definition: DTRecHit1D.cc:72
DTRecHit1D()
Default constructor.
Definition: DTRecHit1D.cc:29
DTEnums::DTCellSide theLRSide
Definition: DTRecHit1D.h:128
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:115
virtual LocalError localPositionError() const
Return the 3-dimensional error on the local position.
Definition: DTRecHit1D.h:68
virtual LocalPoint localPosition() const
Return the 3-dimensional local position.
Definition: DTRecHit1D.h:62
DTWireId theWireId
Definition: DTRecHit1D.h:125
LocalPoint theLocalPosition
Definition: DTRecHit1D.h:134
virtual std::vector< const TrackingRecHit * > recHits() const
No components rechits: it returns a null vector.
Definition: DTRecHit1D.cc:83
void setPositionAndError(LocalPoint pos, LocalError err)
Set the local position and its error.
Definition: DTRecHit1D.h:102
bool operator==(const DTRecHit1D &hit) const
Comparison operator, based on the wireId and the digi time.
Definition: DTRecHit1D.cc:99
DTEnums::DTCellSide lrSide() const
The side of the cell.
Definition: DTRecHit1D.h:84
DTWireId wireId() const
Return the wireId.
Definition: DTRecHit1D.h:109