1 #ifndef BaseTrackerRecHit_H 2 #define BaseTrackerRecHit_H 64 virtual bool isPixel()
const {
return false;}
74 bool hasPositionAndError()
const final;
100 return surface()->toGlobal(localPosition());
106 float errorGlobalRPhi() const final {
return globalPosition().perp()*
sqrt(globalPositionError().phierr(globalPosition())); }
119 errorR,errorZ,errorRPhi
136 void check()
const { assert(det());}
137 #elif defined(DO_INTERNAL_CHECKS_BTR) 154 unsigned int myid = geographicalId().rawId();
160 if (mysubd!=subd)
return false;
163 if(!hit.
isValid())
return false;
165 const unsigned int limdet = 10;
181 #endif // BaseTrackerRecHit_H float errorGlobalR() const final
RTTI rtti(TrackingRecHit const &hit)
bool isSingleType(TrackingRecHit const &hit)
LocalError localPositionError() const final
GlobalError globalPositionError() const final
TrackingRecHitGlobalState globalState() const
bool isProjMono(TrackingRecHit const &hit)
constexpr uint32_t rawId() const
get the raw id
static const int kSubdetOffset
bool sameDetModule(TrackingRecHit const &hit) const
BaseTrackerRecHit(const LocalPoint &p, const LocalError &e, GeomDet const &idet, trackerHitRTTI::RTTI rt)
T phierr(const GlobalPoint &aPoint) const
unsigned int projId(TrackingRecHit const &hit)
CLHEP::HepMatrix AlgebraicMatrix
bool isProjStereo(TrackingRecHit const &hit)
BaseTrackerRecHit const * hit() const final
bool isMatched(TrackingRecHit const &hit)
bool isFast(TrackingRecHit const &hit)
unsigned int getRTTI() const
virtual bool isPixel() const
bool isProjStereo() const
float errorGlobalZ() const final
const LocalError & localPositionErrorFast() const
CLHEP::HepVector AlgebraicVector
bool isSingle(TrackingRecHit const &hit)
T rerr(const GlobalPoint &aPoint) const
~BaseTrackerRecHit() override
const Surface * surface() const final
bool isMulti(TrackingRecHit const &hit)
float errorGlobalRPhi() const final
virtual bool isPhase2() const
CLHEP::HepSymMatrix AlgebraicSymMatrix
bool operator<(const BaseTrackerRecHit &one, const BaseTrackerRecHit &other)
trackerHitRTTI::RTTI rtti() const
LocalPoint localPosition() const final
bool isUndef(TrackingRecHit const &hit)
GlobalPoint globalPosition() const final
const LocalPoint & localPositionFast() const
DetId geographicalId() const
virtual float clusterProbability() const
cluster probability, overloaded by pixel rechits.
BaseTrackerRecHit(DetId id, trackerHitRTTI::RTTI rt)
uint32_t dimension(pat::CandKinResolution::Parametrization parametrization)
Returns the number of free parameters in a parametrization (3 or 4)
const BasicVectorType & basicVector() const
bool isProjected(TrackingRecHit const &hit)