CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ME0RecHit.h
Go to the documentation of this file.
1 #ifndef DataFormats_ME0RecHit_H
2 #define DataFormats_ME0RecHit_H
3 
15 
16 class ME0RecHit : public RecHit2DLocalPos {
17 public:
18  ME0RecHit(const ME0DetId& me0Id, float tof);
19 
21  ME0RecHit();
22 
24  ME0RecHit(const ME0DetId& me0Id, float tof, const LocalPoint& pos);
25 
30  ME0RecHit(const ME0DetId& me0Id, float tof, const LocalPoint& pos, const LocalError& err);
31 
33  ~ME0RecHit() override;
34 
36  LocalPoint localPosition() const override { return theLocalPosition; }
37 
39  LocalError localPositionError() const override { return theLocalError; }
40 
41  ME0RecHit* clone() const override;
42 
45  std::vector<const TrackingRecHit*> recHits() const override;
46 
49  std::vector<TrackingRecHit*> recHits() override;
50 
53 
56 
59  theLocalPosition = pos;
61  }
62 
64  ME0DetId me0Id() const { return theME0Id; }
65 
66  float tof() const { return theTOF; }
67 
69  bool operator==(const ME0RecHit& hit) const;
70 
71 private:
73  float theTOF;
74  // Position and error in the Local Ref. Frame of the ME0Layer
77 };
78 #endif
79 
81 std::ostream& operator<<(std::ostream& os, const ME0RecHit& hit);
ME0RecHit()
Default constructor.
Definition: ME0RecHit.cc:14
void setPosition(LocalPoint pos)
Set local position.
Definition: ME0RecHit.h:52
LocalPoint localPosition() const override
Return the 3-dimensional local position.
Definition: ME0RecHit.h:36
float theTOF
Definition: ME0RecHit.h:73
void setError(LocalError err)
Set local position error.
Definition: ME0RecHit.h:55
~ME0RecHit() override
Destructor.
Definition: ME0RecHit.cc:24
bool operator==(const ME0RecHit &hit) const
Comparison operator, based on the gemId and the digi time.
Definition: ME0RecHit.cc:42
std::ostream & operator<<(std::ostream &out, const ALILine &li)
Definition: ALILine.cc:167
ME0DetId theME0Id
Definition: ME0RecHit.h:72
float tof() const
Definition: ME0RecHit.h:66
void setPositionAndError(LocalPoint pos, LocalError err)
Set the local position and its error.
Definition: ME0RecHit.h:58
LocalError theLocalError
Definition: ME0RecHit.h:76
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
ME0RecHit * clone() const override
Definition: ME0RecHit.cc:26
ME0DetId me0Id() const
Return the gemId.
Definition: ME0RecHit.h:64
GloballyPositioned< float >::LocalPoint LocalPoint
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
Definition: ME0RecHit.h:39
std::vector< const TrackingRecHit * > recHits() const override
Definition: ME0RecHit.cc:30