CMS 3D CMS Logo

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 
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::localPosition
LocalPoint localPosition() const override
Return the 3-dimensional local position.
Definition: ME0RecHit.h:36
operator<<
std::ostream & operator<<(std::ostream &os, const ME0RecHit &hit)
The ostream operator.
Definition: ME0RecHit.cc:45
ME0RecHit::theTOF
float theTOF
Definition: ME0RecHit.h:73
ME0DetId.h
pos
Definition: PixelAliasList.h:18
ME0RecHit::setError
void setError(LocalError err)
Set local position error.
Definition: ME0RecHit.h:55
ME0RecHit::theLocalError
LocalError theLocalError
Definition: ME0RecHit.h:76
ME0RecHit::setPosition
void setPosition(LocalPoint pos)
Set local position.
Definition: ME0RecHit.h:52
ME0RecHit::theLocalPosition
LocalPoint theLocalPosition
Definition: ME0RecHit.h:75
RecHit2DLocalPos::LocalPoint
GloballyPositioned< float >::LocalPoint LocalPoint
Definition: RecHit2DLocalPos.h:10
ME0RecHit::theME0Id
ME0DetId theME0Id
Definition: ME0RecHit.h:72
LocalError
Definition: LocalError.h:12
ME0RecHit::ME0RecHit
ME0RecHit()
Default constructor.
Definition: ME0RecHit.cc:14
ME0RecHit::me0Id
ME0DetId me0Id() const
Return the gemId.
Definition: ME0RecHit.h:64
ME0DetId
Definition: ME0DetId.h:16
submitPVResolutionJobs.err
err
Definition: submitPVResolutionJobs.py:85
RecHit2DLocalPos
Definition: RecHit2DLocalPos.h:8
ME0RecHit
Definition: ME0RecHit.h:16
ME0RecHit::clone
ME0RecHit * clone() const override
Definition: ME0RecHit.cc:26
ME0RecHit::setPositionAndError
void setPositionAndError(LocalPoint pos, LocalError err)
Set the local position and its error.
Definition: ME0RecHit.h:58
ME0RecHit::tof
float tof() const
Definition: ME0RecHit.h:66
ME0RecHit::recHits
std::vector< const TrackingRecHit * > recHits() const override
Definition: ME0RecHit.cc:30
ME0RecHit::localPositionError
LocalError localPositionError() const override
Return the 3-dimensional error on the local position.
Definition: ME0RecHit.h:39
ME0RecHit::~ME0RecHit
~ME0RecHit() override
Destructor.
Definition: ME0RecHit.cc:24
hit
Definition: SiStripHitEffFromCalibTree.cc:88
ME0RecHit::operator==
bool operator==(const ME0RecHit &hit) const
Comparison operator, based on the gemId and the digi time.
Definition: ME0RecHit.cc:42
RecHit2DLocalPos.h