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 
5 
7 public:
8 
11  ProjectedSiStripRecHit2D( const LocalPoint& pos, const LocalError& err, const DetId& id ,
12  const SiStripRecHit2D* originalHit) :
13  BaseTrackerRecHit(pos, err, id, trackerHitRTTI::proj), originalHit_(*originalHit) {}
14 
15  virtual ProjectedSiStripRecHit2D* clone() const {return new ProjectedSiStripRecHit2D( *this); }
16 
17  virtual int dimension() const {return 2;}
18  virtual void getKfComponents( KfComponentsHolder & holder ) const { getKfComponents2D(holder); }
19 
20 
21  // used by trackMerger (to be improved)
22  virtual OmniClusterRef const & firstClusterRef() const { return originalHit().firstClusterRef();}
23 
24 
25  const SiStripRecHit2D& originalHit() const {return originalHit_;}
26  SiStripRecHit2D& originalHit() {return originalHit_;}
27 
28  virtual bool sharesInput( const TrackingRecHit* other, SharedInputType what) const {
29  return originalHit().sharesInput(other,what);
30  }
31  virtual std::vector<const TrackingRecHit*> recHits() const{
32  std::vector<const TrackingRecHit*> rechits(1,&originalHit_);
33  return rechits;
34  }
35  virtual std::vector<TrackingRecHit*> recHits() {
36  std::vector<TrackingRecHit*> rechits(1,&originalHit_);
37  return rechits;
38  }
39 
40 
41 private:
42 
43  SiStripRecHit2D originalHit_;
44 
45 };
46 
47 #endif
SharedInputType
definition of equality via shared input
virtual ProjectedSiStripRecHit2D * clone() const
virtual void getKfComponents(KfComponentsHolder &holder) const
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
void getKfComponents2D(KfComponentsHolder &holder) const
ProjectedSiStripRecHit2D(const LocalPoint &pos, const LocalError &err, const DetId &id, const SiStripRecHit2D *originalHit)
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
virtual OmniClusterRef const & firstClusterRef() const
Definition: DetId.h:18
virtual std::vector< TrackingRecHit * > recHits()
Non-const access to component RecHits (if any)
const SiStripRecHit2D & originalHit() const