CMS 3D CMS Logo

DTHitPairForFit.h
Go to the documentation of this file.
1 #ifndef DTSegment_DTHitPairForFit_h
2 #define DTSegment_DTHitPairForFit_h
3 
16 /* Base Class Headers */
17 
18 /* Collaborating Class Declarations */
24 
25 /* C++ Headers */
26 
27 /* ====================================================================== */
28 
29 /* Class DTHitPairForFit Interface */
30 
32 public:
34  DTHitPairForFit(const DTRecHit1DPair& pair, const DTSuperLayer& sl, const edm::ESHandle<DTGeometry>& dtGeom);
35 
38 
39  /* Operations */
40 
43 
45  LocalPoint leftPos() const { return theLeftPos; }
46 
48  LocalPoint rightPos() const { return theRightPos; }
49 
50  // Returns the LocalError
52 
54  const DTWireId& id() const { return theWireId; }
55 
57  float digiTime() const { return theDigiTime; }
58 
62  std::pair<bool, bool> isCompatible(const LocalPoint& posIni, const LocalVector& dirIni) const;
63 
65  bool operator<(const DTHitPairForFit& hit) const;
66 
67  bool operator==(const DTHitPairForFit& hit) const;
68 
69 protected:
70 private:
71  LocalPoint theLeftPos; // left hit pos in SL ref frame
72  LocalPoint theRightPos; // right hit pos in SL ref frame
73  LocalError theError; // it's the same for left and right
75  float theDigiTime; // the time of the corresp. digi
76  // int theLayerNumber; // the layer number
77 };
78 
79 std::ostream& operator<<(std::ostream& out, const DTHitPairForFit& hit);
80 #endif // DTSegment_DTHitPairForFit_h
std::pair< bool, bool > isCompatible(const LocalPoint &posIni, const LocalVector &dirIni) const
LocalPoint leftPos() const
Returns the position in the layer r.f. of the left rechit.
std::ostream & operator<<(std::ostream &out, const DTHitPairForFit &hit)
LocalPoint localPosition(DTEnums::DTCellSide s) const
Returns the local position in the layer.
LocalPoint rightPos() const
Returns the position in the layer r.f. of the right rechit.
LocalPoint theRightPos
DTCellSide
Which side of the DT cell.
Definition: DTEnums.h:15
~DTHitPairForFit()
Destructor.
LocalPoint theLeftPos
bool operator==(const DTHitPairForFit &hit) const
float digiTime() const
Returns the time of the corresponding digi.
DTHitPairForFit(const DTRecHit1DPair &pair, const DTSuperLayer &sl, const edm::ESHandle< DTGeometry > &dtGeom)
Constructor.
LocalError theError
LocalError localPositionError() const
bool operator<(const DTHitPairForFit &hit) const
define the order by increasing z
const DTWireId & id() const
Returns the Id of the wire on which the rechit rely.