CMS 3D CMS Logo

GEMRecHit.h
Go to the documentation of this file.
1 #ifndef DataFormats_GEMRecHit_H
2 #define DataFormats_GEMRecHit_H
3 
13 
14 class GEMRecHit : public RecHit2DLocalPos {
15 public:
16  GEMRecHit(const GEMDetId& gemId, int bx);
17 
19  GEMRecHit();
20 
25  GEMRecHit(const GEMDetId& gemId, int bx, const LocalPoint& pos);
26 
28  GEMRecHit(const GEMDetId& gemId, int bx, const LocalPoint& pos, const LocalError& err);
29 
31  GEMRecHit(const GEMDetId& gemId, int bx, int firstStrip, int clustSize, const LocalPoint& pos, const LocalError& err);
32 
34  ~GEMRecHit() override;
35 
37  LocalPoint localPosition() const override { return theLocalPosition; }
38 
40  LocalError localPositionError() const override { return theLocalError; }
41 
42  GEMRecHit* clone() const override;
43 
46  std::vector<const TrackingRecHit*> recHits() const override;
47 
50  std::vector<TrackingRecHit*> recHits() override;
51 
54 
57 
62  }
63 
65  GEMDetId gemId() const { return theGEMId; }
66 
67  int BunchX() const { return theBx; }
68 
69  int firstClusterStrip() const { return theFirstStrip; }
70 
71  int clusterSize() const { return theClusterSize; }
72 
74  bool operator==(const GEMRecHit& hit) const;
75 
76 private:
78  int theBx;
81  // Position and error in the Local Ref. Frame of the GEMLayer
84 };
85 #endif
86 
88 std::ostream& operator<<(std::ostream& os, const GEMRecHit& hit);
GEMRecHit::recHits
std::vector< const TrackingRecHit * > recHits() const override
Definition: GEMRecHit.cc:62
GEMRecHit::theLocalError
LocalError theLocalError
Definition: GEMRecHit.h:83
GEMRecHit::localPositionError
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
Definition: GEMRecHit.h:40
pos
Definition: PixelAliasList.h:18
l1GtPatternGenerator_cfi.bx
bx
Definition: l1GtPatternGenerator_cfi.py:18
GEMRecHit::GEMRecHit
GEMRecHit()
Default constructor.
Definition: GEMRecHit.cc:18
operator<<
std::ostream & operator<<(std::ostream &os, const GEMRecHit &hit)
The ostream operator.
Definition: GEMRecHit.cc:78
GEMRecHit::clone
GEMRecHit * clone() const override
Definition: GEMRecHit.cc:58
RecHit2DLocalPos::LocalPoint
GloballyPositioned< float >::LocalPoint LocalPoint
Definition: RecHit2DLocalPos.h:10
GEMRecHit::BunchX
int BunchX() const
Definition: GEMRecHit.h:67
GEMRecHit::theClusterSize
int theClusterSize
Definition: GEMRecHit.h:80
GEMRecHit::theBx
int theBx
Definition: GEMRecHit.h:78
GEMRecHit::theGEMId
GEMDetId theGEMId
Definition: GEMRecHit.h:77
runTheMatrix.err
err
Definition: runTheMatrix.py:288
GEMRecHit::setPositionAndError
void setPositionAndError(LocalPoint pos, LocalError err)
Set the local position and its error.
Definition: GEMRecHit.h:59
LocalError
Definition: LocalError.h:12
GEMDetId
Definition: GEMDetId.h:17
GEMRecHit::firstClusterStrip
int firstClusterStrip() const
Definition: GEMRecHit.h:69
GEMRecHit::~GEMRecHit
~GEMRecHit() override
Destructor.
Definition: GEMRecHit.cc:56
GEMRecHit::gemId
GEMDetId gemId() const
Return the gemId.
Definition: GEMRecHit.h:65
RecHit2DLocalPos
Definition: RecHit2DLocalPos.h:8
GEMRecHit::clusterSize
int clusterSize() const
Definition: GEMRecHit.h:71
GEMDetId.h
GEMRecHit
Definition: GEMRecHit.h:14
GEMRecHit::setPosition
void setPosition(LocalPoint pos)
Set local position.
Definition: GEMRecHit.h:53
GEMRecHit::theFirstStrip
int theFirstStrip
Definition: GEMRecHit.h:79
hit
Definition: SiStripHitEffFromCalibTree.cc:88
GEMRecHit::localPosition
LocalPoint localPosition() const override
Return the 3-dimensional local position.
Definition: GEMRecHit.h:37
GEMRecHit::setError
void setError(LocalError err)
Set local position error.
Definition: GEMRecHit.h:56
GEMRecHit::theLocalPosition
LocalPoint theLocalPosition
Definition: GEMRecHit.h:82
GEMRecHit::operator==
bool operator==(const GEMRecHit &hit) const
Comparison operator, based on the gemId and the digi time.
Definition: GEMRecHit.cc:75
RecHit2DLocalPos.h