CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTRecHit1DPair.h
Go to the documentation of this file.
1 #ifndef DTRecHit_DTRecHit1DPair_H
2 #define DTRecHit_DTRecHit1DPair_H
3 
22 
23 #include <utility>
24 
25 class DTLayer;
26 class DTDigi;
27 
28 class DTRecHit1DPair : public RecHit1D {
29 public:
32  const DTDigi& digi);
33 
36 
37 
39  virtual ~DTRecHit1DPair();
40 
41  // Operations
42 
43  virtual DTRecHit1DPair * clone() const;
44 
45 
49  virtual LocalPoint localPosition() const;
50 
51 
55  virtual LocalError localPositionError() const;
56 
57 
60  virtual std::vector<const TrackingRecHit*> recHits() const;
61 
62 
65  virtual std::vector<TrackingRecHit*> recHits();
66 
67 
69  virtual DetId geographicalId() const;
70 
71 
73  float digiTime() const {
74  return theLeftHit.digiTime();
75  }
76 
77 
79  bool operator==(const DTRecHit1DPair& hit) const;
80 
81 
84  bool operator!=(const DTRecHit1DPair& hit) const {
85  return !(*this==hit);
86  }
87 
88 
92 
93 
97 
98 
101  void setPosition(DTEnums::DTCellSide lrside, const LocalPoint& point);
102 
103 
107  const LocalPoint& point,
108  const LocalError& err);
109 
110 
111  // Return the wireId
112  DTWireId wireId() const {
113  return theLeftHit.wireId();
114  }
115 
116 
118  const DTRecHit1D* componentRecHit(DTEnums::DTCellSide lrSide) const;
119 
120 
122  std::pair<const DTRecHit1D*, const DTRecHit1D*> componentRecHits() const;
123 
124 
125  private:
126 
129 
130  // The two rechits
133 
134 };
135 
136 
138 std::ostream& operator<<(std::ostream& os, const DTRecHit1DPair& hit);
139 
140 #endif
float digiTime() const
Return the digi time (ns) used to build the rechits.
DTCellSide
Which side of the DT cell.
Definition: DTEnums.h:17
const DTRecHit1D * componentRecHit(DTEnums::DTCellSide lrSide) const
Return the left/right DTRecHit1D.
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
virtual LocalError localPositionError() const
DTRecHit1D theLeftHit
bool operator!=(const DTRecHit1DPair &hit) const
void setPositionAndError(DTEnums::DTCellSide lrside, const LocalPoint &point, const LocalError &err)
virtual DetId geographicalId() const
Return the detId of the Det (a DTLayer).
virtual std::vector< const TrackingRecHit * > recHits() const
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:115
bool operator==(const DTRecHit1DPair &hit) const
Comparison operator, based on the wireId and the digi time.
Definition: DTDigi.h:19
DTRecHit1D theRightHit
Definition: DetId.h:20
void setPosition(DTEnums::DTCellSide lrside, const LocalPoint &point)
DTRecHit1DPair()
Default constructor. Needed to write the RecHit into a STL container.
DTWireId wireId() const
virtual DTRecHit1DPair * clone() const
virtual ~DTRecHit1DPair()
Destructor.
std::pair< const DTRecHit1D *, const DTRecHit1D * > componentRecHits() const
Get the left and right 1D rechits (first and second respectively).
*vegas h *****************************************************used in the default bin number in original ***version of VEGAS is ***a higher bin number might help to derive a more precise ***grade subtle point
Definition: invegas.h:5
virtual LocalPoint localPosition() const
DTWireId wireId() const
Return the wireId.
Definition: DTRecHit1D.h:109