CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
GSSiTrackerRecHit2DLocalPos.h
Go to the documentation of this file.
1 #ifndef GSSiTrackerRecHit2DLocalPos_H
2 #define GSSiTrackerRecHit2DLocalPos_H
3 
4 #include "BaseTrackerRecHit.h"
5 
7 public:
8 
10 
12 
13  GSSiTrackerRecHit2DLocalPos( const LocalPoint& p, const LocalError&e, GeomDet const & idet) :
14  BaseTrackerRecHit(p,e,idet, trackerHitRTTI::gs) {store();}
15 
16  virtual GSSiTrackerRecHit2DLocalPos * clone() const =0;
17 
18 
19  virtual void getKfComponents( KfComponentsHolder & holder ) const {
20  getKfComponents2D(holder);
21  }
22 
23  virtual bool sharesInput( const TrackingRecHit* other, SharedInputType what) const {return false;}
24 
25  virtual int dimension() const { return 2;}
26 
27  virtual std::vector<const TrackingRecHit*> recHits() const { return std::vector<TrackingRecHit const*>();}
28  virtual std::vector<TrackingRecHit*> recHits() { return std::vector<TrackingRecHit*>();}
29 
30  // shall I support FakeCluster?
31  virtual OmniClusterRef const & firstClusterRef() const;
32 
33 private:
34  virtual TrackingRecHit* clone(const TkCloner&, const TrajectoryStateOnSurface&) const { return clone();}
35 
36 
37 protected:
38 
41 
42  void store() { m_myPos=pos_; m_myErr=err_;}
44 
45 
46 };
47 
48 // Comparison operators
49 inline bool operator<( const GSSiTrackerRecHit2DLocalPos& one, const GSSiTrackerRecHit2DLocalPos& other) {
50  return ( one.geographicalId() < other.geographicalId() );
51 }
52 
53 #endif
SharedInputType
definition of equality via shared input
virtual OmniClusterRef const & firstClusterRef() const
virtual TrackingRecHit * clone(const TkCloner &, const TrajectoryStateOnSurface &) const
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
void getKfComponents2D(KfComponentsHolder &holder) const
GSSiTrackerRecHit2DLocalPos(const LocalPoint &p, const LocalError &e, GeomDet const &idet)
virtual void getKfComponents(KfComponentsHolder &holder) const
virtual std::vector< TrackingRecHit * > recHits()
Non-const access to component RecHits (if any)
virtual GSSiTrackerRecHit2DLocalPos * clone() const =0
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
DetId geographicalId() const
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const