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
Vector3DBase< float, LocalTag >
DTHitPairForFit::localPosition
LocalPoint localPosition(DTEnums::DTCellSide s) const
Returns the local position in the layer.
Definition: DTHitPairForFit.cc:42
DTHitPairForFit::theRightPos
LocalPoint theRightPos
Definition: DTHitPairForFit.h:72
ESHandle.h
DTSuperLayer
Definition: DTSuperLayer.h:24
alignCSCRings.s
s
Definition: alignCSCRings.py:92
DTHitPairForFit::theDigiTime
float theDigiTime
Definition: DTHitPairForFit.h:75
DTWireId
Definition: DTWireId.h:12
edm::ESHandle< DTGeometry >
DTRecHit1DPair
Definition: DTRecHit1DPair.h:26
DTHitPairForFit::isCompatible
std::pair< bool, bool > isCompatible(const LocalPoint &posIni, const LocalVector &dirIni) const
Definition: DTHitPairForFit.cc:53
Point3DBase< float, LocalTag >
DTGeometry.h
DTHitPairForFit::rightPos
LocalPoint rightPos() const
Returns the position in the layer r.f. of the right rechit.
Definition: DTHitPairForFit.h:48
DTHitPairForFit::theLeftPos
LocalPoint theLeftPos
Definition: DTHitPairForFit.h:71
DTHitPairForFit::operator==
bool operator==(const DTHitPairForFit &hit) const
Definition: DTHitPairForFit.cc:82
LocalError
Definition: LocalError.h:12
DTHitPairForFit::operator<
bool operator<(const DTHitPairForFit &hit) const
define the order by increasing z
Definition: DTHitPairForFit.cc:75
DTHitPairForFit::localPositionError
LocalError localPositionError() const
Definition: DTHitPairForFit.h:51
DTRecHit1DPair.h
DTHitPairForFit::theWireId
DTWireId theWireId
Definition: DTHitPairForFit.h:74
DTHitPairForFit::leftPos
LocalPoint leftPos() const
Returns the position in the layer r.f. of the left rechit.
Definition: DTHitPairForFit.h:45
DTHitPairForFit::DTHitPairForFit
DTHitPairForFit(const DTRecHit1DPair &pair, const DTSuperLayer &sl, const edm::ESHandle< DTGeometry > &dtGeom)
Constructor.
Definition: DTHitPairForFit.cc:20
DTEnums::DTCellSide
DTCellSide
Which side of the DT cell.
Definition: DTEnums.h:15
DTHitPairForFit::~DTHitPairForFit
~DTHitPairForFit()
Destructor.
Definition: DTHitPairForFit.cc:39
DTHitPairForFit
Definition: DTHitPairForFit.h:31
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
GlobalPoint.h
DTSuperLayer.h
DTHitPairForFit::theError
LocalError theError
Definition: DTHitPairForFit.h:73
hit
Definition: SiStripHitEffFromCalibTree.cc:88
operator<<
std::ostream & operator<<(std::ostream &out, const DTHitPairForFit &hit)
DTHitPairForFit::id
const DTWireId & id() const
Returns the Id of the wire on which the rechit rely.
Definition: DTHitPairForFit.h:54
DTHitPairForFit::digiTime
float digiTime() const
Returns the time of the corresponding digi.
Definition: DTHitPairForFit.h:57