test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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())
22  ? fastTrackerRecHitType::siStripProjectedMono2D
23  : fastTrackerRecHitType::siStripProjectedStereo2D )
24  , originalHit_(originalHit)
25  {}
26 
29  size_t nIds() const { return 1;}
30  int32_t id(size_t i = 0) const { return originalHit().id(i);}
31  int32_t eventId(size_t i = 0) const { return originalHit().eventId(i);}
32  size_t nSimTrackIds() const { return originalHit_.nSimTrackIds();}
33  int32_t simTrackId(size_t i) const { return originalHit_.simTrackId(i);}
34  int32_t simTrackEventId(size_t i) const { return originalHit_.simTrackEventId(i);;}
35 
36  void setEventId(int32_t eventId){originalHit_.setEventId(eventId);}
37 
39  FastTrackerRecHit::setRecHitCombinationIndex(recHitCombinationIndex);
40  originalHit_.setRecHitCombinationIndex(recHitCombinationIndex);
41  }
42 
43  private:
44 
46 
47 };
48 
49 #endif
int32_t id(size_t i=0) const
int i
Definition: DBlmapReader.cc:9
int32_t eventId(size_t i=0) const
int32_t simTrackId(size_t i) const
see addSimTrackId(int32_t simTrackId)
void setRecHitCombinationIndex(int32_t recHitCombinationIndex)
FastSingleTrackerRecHit originalHit_
size_t nSimTrackIds() const override
see addSimTrackId(int32_t simTrackId)
void load()
helps making the hit postion and error persistent
size_t nSimTrackIds() const
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 simTrackEventId(size_t i) const
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 simTrackEventId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
virtual FastProjectedTrackerRecHit * clone() const
int32_t simTrackId(size_t i) const override
see addSimTrackId(int32_t simTrackId)
int32_t eventId(size_t i=0) const override
virtual void setRecHitCombinationIndex(int32_t recHitCombinationIndex)