CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BaseSiTrackerRecHit2DLocalPos.h
Go to the documentation of this file.
1 #ifndef BaseSiTrackerRecHit2DLocalPos_H
2 #define BaseSiTrackerRecHit2DLocalPos_H
3 
7 
9 public:
10 
12 
14 
16  DetId id) : RecHit2DLocalPos(id), pos_(p), err_(e){}
17 
18  // virtual BaseSiTrackerRecHit2DLocalPos * clone() const {return new BaseSiTrackerRecHit2DLocalPos( * this); }
19 
20  virtual LocalPoint localPosition() const ;
21 
22  virtual LocalError localPositionError() const ;
23 
24  bool hasPositionAndError() const ;
25 
26  virtual void getKfComponents( KfComponentsHolder & holder ) const ;
27 
28  const LocalPoint & localPositionFast() const { return pos_; }
29  const LocalError & localPositionErrorFast() const { return err_; }
30 
31  private:
32 
33  void throwExceptionUninitialized(const char *where) const;
34 
37 };
38 
39 // Comparison operators
41  return ( one.geographicalId() < other.geographicalId() );
42 }
43 
44 #endif
virtual LocalError localPositionError() const
virtual LocalPoint localPosition() const
virtual void getKfComponents(KfComponentsHolder &holder) const
void throwExceptionUninitialized(const char *where) const
bool operator<(const FedChannelConnection &, const FedChannelConnection &)
bool hasPositionAndError() const
to be redefined by daughter class
const LocalPoint & localPositionFast() const
Definition: DetId.h:20
const LocalError & localPositionErrorFast() const
GloballyPositioned< float >::LocalPoint LocalPoint
DetId geographicalId() const
BaseSiTrackerRecHit2DLocalPos(const LocalPoint &p, const LocalError &e, DetId id)