CMS 3D CMS Logo

FastProjectedTrackerRecHit.h
Go to the documentation of this file.
1 #ifndef FastProjectedTrackerRecHit_H
2 #define FastProjectedTrackerRecHit_H
3 
7 
9 
10  public :
11 
13 
15 
17  const LocalError& err,
18  GeomDet const & idet,
20  : FastTrackerRecHit(pos, err, idet,
21  ProjectedSiStripRecHit2D::isMono(idet,*originalHit.det())
24  , originalHit_(originalHit)
25  {}
26 
28  FastProjectedTrackerRecHit * clone() const override {FastProjectedTrackerRecHit * p = new FastProjectedTrackerRecHit( * this); p->load(); return p;}
29  size_t nIds() const override { return 1;}
30  int32_t id(size_t i = 0) const override { return originalHit().id(i);}
31  int32_t eventId(size_t i = 0) const override { return originalHit().eventId(i);}
32  size_t nSimTrackIds() const override { return originalHit_.nSimTrackIds();}
33  int32_t simTrackId(size_t i) const override { return originalHit_.simTrackId(i);}
34  int32_t simTrackEventId(size_t i) const override { return originalHit_.simTrackEventId(i);;}
35 
36  void setEventId(int32_t eventId) override{originalHit_.setEventId(eventId);}
37 
39  FastTrackerRecHit::setRecHitCombinationIndex(recHitCombinationIndex);
40  originalHit_.setRecHitCombinationIndex(recHitCombinationIndex);
41  }
42 
43  private:
44 
46 
47 };
48 
49 #endif
void setRecHitCombinationIndex(int32_t recHitCombinationIndex) override
int32_t simTrackId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
int32_t id(size_t i=0) const override
FastSingleTrackerRecHit originalHit_
void setEventId(int32_t eventId) override
void load()
helps making the hit postion and error persistent
int32_t id(size_t i=0) const override
int32_t eventId(size_t i=0) const override
int32_t eventId(size_t i=0) const override
const GeomDet * det() const
size_t nSimTrackIds() const override
see addSimTrackId(int32_t simTrackId)
const FastSingleTrackerRecHit & originalHit() const
virtual int32_t recHitCombinationIndex() const
int32_t simTrackEventId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
void setEventId(int32_t eventId) override
FastProjectedTrackerRecHit(const LocalPoint &pos, const LocalError &err, GeomDet const &idet, FastSingleTrackerRecHit const &originalHit)
int32_t simTrackId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
size_t nSimTrackIds() const override
see addSimTrackId(int32_t simTrackId)
FastProjectedTrackerRecHit * clone() const override
virtual void setRecHitCombinationIndex(int32_t recHitCombinationIndex)
int32_t simTrackEventId(size_t i) const override
see addSimTrackId(int32_t simTrackId)