CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ProjectedSiStripRecHit2D.h
Go to the documentation of this file.
1 #ifndef ProjectedSiStripRecHit2D_H
2 #define ProjectedSiStripRecHit2D_H
3 
6 
8 public:
9 
11  ProjectedSiStripRecHit2D( const LocalPoint& pos, const LocalError& err, const DetId& id ,
13  BaseSiTrackerRecHit2DLocalPos(pos, err, id), originalHit_(*originalHit) {}
14 
15  virtual ProjectedSiStripRecHit2D* clone() const {return new ProjectedSiStripRecHit2D( *this); }
16 
17  const SiStripRecHit2D& originalHit() const {return originalHit_;}
19 
20  virtual bool sharesInput( const TrackingRecHit* other, SharedInputType what) const {
21  return originalHit().sharesInput(other,what);
22  }
23  virtual std::vector<const TrackingRecHit*> recHits() const{
24  std::vector<const TrackingRecHit*> rechits(1,&originalHit_);
25  return rechits;
26  }
27  virtual std::vector<TrackingRecHit*> recHits() {
28  std::vector<TrackingRecHit*> rechits(1,&originalHit_);
29  return rechits;
30  }
31 
32 
33 private:
34 
36 
37 };
38 
39 #endif
SharedInputType
definition of equality via shared input
virtual ProjectedSiStripRecHit2D * clone() const
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
ProjectedSiStripRecHit2D(const LocalPoint &pos, const LocalError &err, const DetId &id, const SiStripRecHit2D *originalHit)
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
Definition: DetId.h:20
virtual std::vector< TrackingRecHit * > recHits()
Non-const access to component RecHits (if any)
const SiStripRecHit2D & originalHit() const