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 
18 /* Base Class Headers */
19 
20 /* Collaborating Class Declarations */
26 
27 /* C++ Headers */
28 
29 /* ====================================================================== */
30 
31 /* Class DTHitPairForFit Interface */
32 
34 
35  public:
36 
38  DTHitPairForFit(const DTRecHit1DPair& pair,
39  const DTSuperLayer& sl,
40  const edm::ESHandle<DTGeometry>& dtGeom) ;
41 
44 
45 /* Operations */
46 
49 
51  LocalPoint leftPos() const { return theLeftPos; }
52 
54  LocalPoint rightPos() const { return theRightPos; }
55 
56  // Returns the LocalError
58 
60  const DTWireId & id() const { return theWireId; }
61 
63  float digiTime() const {return theDigiTime;}
64 
68  std::pair<bool,bool> isCompatible(const LocalPoint& posIni, const LocalVector &dirIni) const;
69 
71  bool operator<(const DTHitPairForFit& hit) const ;
72 
73  bool operator==(const DTHitPairForFit& hit) const ;
74 
75  protected:
76 
77  private:
78  LocalPoint theLeftPos ; // left hit pos in SL ref frame
79  LocalPoint theRightPos ; // right hit pos in SL ref frame
80  LocalError theError; // it's the same for left and right
82  float theDigiTime; // the time of the corresp. digi
83 // int theLayerNumber; // the layer number
84 
85 };
86 
87 std::ostream& operator<<(std::ostream& out, const DTHitPairForFit& hit) ;
88 #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:17
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
tuple out
Definition: dbtoconf.py:99
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.