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 
10 {
11  return dynamic_cast<const GeomDetUnit*>(det());
12 }
13 
14 
18  hasGlobalPosition_ = true;
19  return globalPosition_;
20  }else{
21  return globalPosition_;
22  }
23 }
24 
25 
26 #ifdef TTRH_NOGE
29 }
30 #else
34  return globalError_;
35  }else{
36  return globalError_;
37  }
38 
39 }
40 #endif
41 
42 float
46  return errorR_;
47  }else{
48  return errorR_;
49  }
50 }
51 
52 float
56  return errorZ_;
57  }else{
58  return errorZ_;
59  }
60 }
61 
62 float
66  return errorRPhi_;
67  }else{
68  return errorRPhi_;
69  }
70 }
71 
72 void
74 #ifdef TTRH_NOGE
76 #endif
78  errorRPhi_ = globalPosition().perp()*sqrt(globalError_.phierr(globalPosition()));
79  errorR_ = sqrt(globalError_.rerr(globalPosition()));
80  errorZ_ = sqrt(globalError_.czz());
81  hasGlobalError_ = true;
82 }
83 
85 {
86  // no components by default
87  return ConstRecHitContainer();
88 }
89 
92  return RecHitPointer(const_cast<TransientTrackingRecHit*>(this));
93 }
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:78
static GlobalError transform(const LocalError &le, const Surface &surf)
T perp() const
Definition: PV3DBase.h:71
virtual TransientTrackingRecHit * clone() const =0
T phierr(const GlobalPoint &aPoint) const
#define unlikely(x)
Definition: Likely.h:21
virtual GlobalError globalPositionError() const
T sqrt(T t)
Definition: SSEVec.h:46
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.