CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
FastProjectedTrackerRecHit.h
Go to the documentation of this file.
1 #ifndef FastProjectedTrackerRecHit_H
2 #define FastProjectedTrackerRecHit_H
3 
7 
9 public:
11 
13 
15  const LocalError& err,
16  GeomDet const& idet,
18  : FastTrackerRecHit(pos,
19  err,
20  idet,
21  ProjectedSiStripRecHit2D::isMono(idet, *originalHit.det())
22  ? fastTrackerRecHitType::siStripProjectedMono2D
23  : fastTrackerRecHitType::siStripProjectedStereo2D),
24  originalHit_(originalHit) {}
25 
27  FastProjectedTrackerRecHit* clone() const override {
29  p->load();
30  return p;
31  }
32  size_t nIds() const override { return 1; }
33  int32_t id(size_t i = 0) const override { return originalHit().id(i); }
34  int32_t eventId(size_t i = 0) const override { return originalHit().eventId(i); }
35  size_t nSimTrackIds() const override {
36  return originalHit_.nSimTrackIds();
37  }
38  int32_t simTrackId(size_t i) const override {
39  return originalHit_.simTrackId(i);
40  }
41  int32_t simTrackEventId(size_t i) const override {
42  return originalHit_.simTrackEventId(i);
43  ;
44  }
45 
46  void setEventId(int32_t eventId) override { originalHit_.setEventId(eventId); }
47 
49  FastTrackerRecHit::setRecHitCombinationIndex(recHitCombinationIndex);
50  originalHit_.setRecHitCombinationIndex(recHitCombinationIndex);
51  }
52 
53 private:
55 };
56 
57 #endif
void setRecHitCombinationIndex(int32_t recHitCombinationIndex) override
FastSingleTrackerRecHit originalHit_
size_t nSimTrackIds() const override
see addSimTrackId(int32_t simTrackId)
void setEventId(int32_t eventId) override
void load()
helps making the hit postion and error persistent
int32_t eventId(size_t i=0) const override
int32_t simTrackEventId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
const GeomDet * det() const
int32_t id(size_t i=0) const override
const FastSingleTrackerRecHit & originalHit() const
virtual int32_t recHitCombinationIndex() const
int32_t id(size_t i=0) const override
void setEventId(int32_t eventId) override
FastProjectedTrackerRecHit(const LocalPoint &pos, const LocalError &err, GeomDet const &idet, FastSingleTrackerRecHit const &originalHit)
int32_t simTrackEventId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
int32_t simTrackId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
int32_t eventId(size_t i=0) const override
size_t nSimTrackIds() const override
see addSimTrackId(int32_t simTrackId)
virtual void setRecHitCombinationIndex(int32_t recHitCombinationIndex)
FastProjectedTrackerRecHit * clone() const override
int32_t simTrackId(size_t i) const override
see addSimTrackId(int32_t simTrackId)