CMS 3D CMS Logo

DTRecHit1DPair.h
Go to the documentation of this file.
1 #ifndef DTRecHit_DTRecHit1DPair_H
2 #define DTRecHit_DTRecHit1DPair_H
3 
20 
21 #include <utility>
22 
23 class DTLayer;
24 class DTDigi;
25 
26 class DTRecHit1DPair : public RecHit1D {
27 public:
29  DTRecHit1DPair(const DTWireId& wireId, const DTDigi& digi);
30 
33 
35  ~DTRecHit1DPair() override;
36 
37  // Operations
38 
39  DTRecHit1DPair* clone() const override;
40 
44  LocalPoint localPosition() const override;
45 
49  LocalError localPositionError() const override;
50 
53  std::vector<const TrackingRecHit*> recHits() const override;
54 
57  std::vector<TrackingRecHit*> recHits() override;
58 
60  virtual DetId geographicalId() const;
61 
63  float digiTime() const { return theLeftHit.digiTime(); }
64 
66  bool operator==(const DTRecHit1DPair& hit) const;
67 
70  bool operator!=(const DTRecHit1DPair& hit) const { return !(*this == hit); }
71 
75 
79 
82  void setPosition(DTEnums::DTCellSide lrside, const LocalPoint& point);
83 
87 
88  // Return the wireId
89  DTWireId wireId() const { return theLeftHit.wireId(); }
90 
92  const DTRecHit1D* componentRecHit(DTEnums::DTCellSide lrSide) const;
93 
95  std::pair<const DTRecHit1D*, const DTRecHit1D*> componentRecHits() const;
96 
97 private:
100 
101  // The two rechits
104 };
105 
107 std::ostream& operator<<(std::ostream& os, const DTRecHit1DPair& hit);
108 
109 #endif
DTRecHit1DPair::operator!=
bool operator!=(const DTRecHit1DPair &hit) const
Definition: DTRecHit1DPair.h:70
DTRecHit1DPair::componentRecHit
const DTRecHit1D * componentRecHit(DTEnums::DTCellSide lrSide) const
Return the left/right DTRecHit1D.
DTRecHit1DPair::theRightHit
DTRecHit1D theRightHit
Definition: DTRecHit1DPair.h:103
DTRecHit1D.h
TrackingRecHit::hit
virtual TrackingRecHit const * hit() const
Definition: TrackingRecHit.h:75
DTRecHit1DPair::DTRecHit1DPair
DTRecHit1DPair()
Default constructor. Needed to write the RecHit into a STL container.
Definition: DTRecHit1DPair.cc:19
DTRecHit1D
Definition: DTRecHit1D.h:25
DTRecHit1DPair::operator==
bool operator==(const DTRecHit1DPair &hit) const
Comparison operator, based on the wireId and the digi time.
Definition: DTRecHit1DPair.cc:60
DTRecHit1DPair::theLeftHit
DTRecHit1D theLeftHit
Definition: DTRecHit1DPair.h:102
DTRecHit1DPair::~DTRecHit1DPair
~DTRecHit1DPair() override
Destructor.
Definition: DTRecHit1DPair.cc:22
operator<<
std::ostream & operator<<(std::ostream &os, const DTRecHit1DPair &hit)
Ostream operator.
DTRecHit1DPair::digiTime
float digiTime() const
Return the digi time (ns) used to build the rechits.
Definition: DTRecHit1DPair.h:63
DetId
Definition: DetId.h:17
DTRecHit1DPair::geographicalId
virtual DetId geographicalId() const
Return the detId of the Det (a DTLayer).
Definition: DTRecHit1DPair.cc:57
DTRecHit1D::wireId
DTWireId wireId() const
Return the wireId.
Definition: DTRecHit1D.h:76
DTRecHit1DPair::clone
DTRecHit1DPair * clone() const override
Definition: DTRecHit1DPair.cc:24
DTWireId
Definition: DTWireId.h:12
DTRecHit1DPair::setPosition
void setPosition(DTEnums::DTCellSide lrside, const LocalPoint &point)
Definition: DTRecHit1DPair.cc:76
DTRecHit1DPair
Definition: DTRecHit1DPair.h:26
Point3DBase< float, LocalTag >
DTRecHit1DPair::recHits
std::vector< const TrackingRecHit * > recHits() const override
Definition: DTRecHit1DPair.cc:41
DTRecHit1DPair::componentRecHits
std::pair< const DTRecHit1D *, const DTRecHit1D * > componentRecHits() const
Get the left and right 1D rechits (first and second respectively).
Definition: DTRecHit1DPair.cc:116
LocalError
Definition: LocalError.h:12
DTRecHit1DPair::wireId
DTWireId wireId() const
Definition: DTRecHit1DPair.h:89
submitPVResolutionJobs.err
err
Definition: submitPVResolutionJobs.py:85
DTLayer
Definition: DTLayer.h:25
DTRecHit1D::digiTime
float digiTime() const
Return the time (ns) of the digi used to build the rechit.
Definition: DTRecHit1D.h:79
DTRecHit1DPair::localPosition
LocalPoint localPosition() const override
Definition: DTRecHit1DPair.cc:29
DTWireId.h
DTRecHit1DPair::setPositionAndError
void setPositionAndError(DTEnums::DTCellSide lrside, const LocalPoint &point, const LocalError &err)
Definition: DTRecHit1DPair.cc:85
DTEnums::DTCellSide
DTCellSide
Which side of the DT cell.
Definition: DTEnums.h:15
DTDigi
Definition: DTDigi.h:17
RecHit1D
Definition: RecHit1D.h:19
point
*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
DTRecHit1DPair::localPositionError
LocalError localPositionError() const override
Definition: DTRecHit1DPair.cc:36
hit
Definition: SiStripHitEffFromCalibTree.cc:88