CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
33  public:
34 
36  DTHitPairForFit(const DTRecHit1DPair& pair,
37  const DTSuperLayer& sl,
38  const edm::ESHandle<DTGeometry>& dtGeom) ;
39 
42 
43 /* Operations */
44 
47 
49  LocalPoint leftPos() const { return theLeftPos; }
50 
52  LocalPoint rightPos() const { return theRightPos; }
53 
54  // Returns the LocalError
56 
58  const DTWireId & id() const { return theWireId; }
59 
61  float digiTime() const {return theDigiTime;}
62 
66  std::pair<bool,bool> isCompatible(const LocalPoint& posIni, const LocalVector &dirIni) const;
67 
69  bool operator<(const DTHitPairForFit& hit) const ;
70 
71  bool operator==(const DTHitPairForFit& hit) const ;
72 
73  protected:
74 
75  private:
76  LocalPoint theLeftPos ; // left hit pos in SL ref frame
77  LocalPoint theRightPos ; // right hit pos in SL ref frame
78  LocalError theError; // it's the same for left and right
80  float theDigiTime; // the time of the corresp. digi
81 // int theLayerNumber; // the layer number
82 
83 };
84 
85 std::ostream& operator<<(std::ostream& out, const DTHitPairForFit& hit) ;
86 #endif // DTSegment_DTHitPairForFit_h
bool operator<(const DTHitPairForFit &hit) const
define the order by increasing z
LocalPoint localPosition(DTEnums::DTCellSide s) const
Returns the local position in the layer.
const DTWireId & id() const
Returns the Id of the wire on which the rechit rely.
std::pair< bool, bool > isCompatible(const LocalPoint &posIni, const LocalVector &dirIni) const
LocalPoint theRightPos
DTCellSide
Which side of the DT cell.
Definition: DTEnums.h:15
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:187
~DTHitPairForFit()
Destructor.
LocalError localPositionError() const
LocalPoint theLeftPos
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
LocalPoint leftPos() const
Returns the position in the layer r.f. of the left rechit.
bool operator==(const DTHitPairForFit &hit) const
LocalPoint rightPos() const
Returns the position in the layer r.f. of the right rechit.