CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TransientTrackingRecHit.cc
Go to the documentation of this file.
3 
5 
7 {
8  return dynamic_cast<const GeomDetUnit*>(det());
9 }
10 
11 
13  if(! hasGlobalPosition_){
15  hasGlobalPosition_ = true;
16  return globalPosition_;
17  }else{
18  return globalPosition_;
19  }
20 }
21 
23  if(! hasGlobalError_){
25  return globalError_;
26  }else{
27  return globalError_;
28  }
29 
30 }
31 
32 float
34  if(!hasGlobalError_){
36  return errorR_;
37  }else{
38  return errorR_;
39  }
40 }
41 
42 float
44  if(!hasGlobalError_){
46  return errorZ_;
47  }else{
48  return errorZ_;
49  }
50 }
51 
52 float
54  if(!hasGlobalError_){
56  return errorRPhi_;
57  }else{
58  return errorRPhi_;
59  }
60 }
61 
62 void
68  hasGlobalError_ = true;
69 }
70 
72 {
73  // no components by default
74  return ConstRecHitContainer();
75 }
76 
79  return RecHitPointer(const_cast<TransientTrackingRecHit*>(this));
80 }
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:78
T perp() const
Definition: PV3DBase.h:66
GlobalError transform(const LocalError &le, const Surface &surf) const
virtual TransientTrackingRecHit * clone() const =0
T phierr(const GlobalPoint &aPoint) const
virtual GlobalError globalPositionError() const
T sqrt(T t)
Definition: SSEVec.h:28
std::vector< ConstRecHitPointer > ConstRecHitContainer
virtual LocalError localPositionError() const =0
T rerr(const GlobalPoint &aPoint) const
virtual GlobalPoint globalPosition() const
const GeomDet * det() const
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
virtual const Surface * surface() const
virtual const GeomDetUnit * detUnit() const
virtual LocalPoint localPosition() const =0
virtual ConstRecHitContainer transientHits() const
Composite interface: returns the component hits, if any.