#include <BaseTrackerRecHit.h>
Definition at line 21 of file BaseTrackerRecHit.h.
BaseTrackerRecHit::BaseTrackerRecHit | ( | ) | [inline] |
Definition at line 23 of file BaseTrackerRecHit.h.
{}
virtual BaseTrackerRecHit::~BaseTrackerRecHit | ( | ) | [inline, virtual] |
Definition at line 25 of file BaseTrackerRecHit.h.
{}
BaseTrackerRecHit::BaseTrackerRecHit | ( | DetId | id, |
trackerHitRTTI::RTTI | rt | ||
) | [inline] |
Definition at line 28 of file BaseTrackerRecHit.h.
: TrackingRecHit(id,(unsigned int)(rt)) {}
BaseTrackerRecHit::BaseTrackerRecHit | ( | const LocalPoint & | p, |
const LocalError & | e, | ||
DetId | id, | ||
trackerHitRTTI::RTTI | rt | ||
) | [inline] |
Definition at line 30 of file BaseTrackerRecHit.h.
: TrackingRecHit(id,(unsigned int)(rt)), pos_(p), err_(e){}
virtual int BaseTrackerRecHit::dimension | ( | ) | const [pure virtual] |
Implements TrackingRecHit.
Implemented in GCC11_FINAL< T >, ProjectedSiStripRecHit2D, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, SiTrackerMultiRecHit, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.
virtual OmniClusterRef const& BaseTrackerRecHit::firstClusterRef | ( | ) | const [pure virtual] |
Implemented in ProjectedSiStripRecHit2D, GCC11_FINAL< T >, SiTrackerMultiRecHit, and TrackerSingleRecHit.
virtual void BaseTrackerRecHit::getKfComponents | ( | KfComponentsHolder & | holder | ) | const [pure virtual] |
Reimplemented from TrackingRecHit.
Implemented in ProjectedSiStripRecHit2D, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, SiTrackerMultiRecHit, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.
void BaseTrackerRecHit::getKfComponents1D | ( | KfComponentsHolder & | holder | ) | const |
Definition at line 41 of file BaseTrackerRecHit.cc.
References err_, KfComponentsHolder::errors(), hasPositionAndError(), KfComponentsHolder::measuredErrors(), KfComponentsHolder::measuredParams(), KfComponentsHolder::params(), pos_, trackerHitRTTI::proj, KfComponentsHolder::projection(), KfComponentsHolder::tsosLocalErrors(), KfComponentsHolder::tsosLocalParameters(), PV3DBase< T, PVType, FrameType >::x(), and LocalError::xx().
Referenced by GCC11_FINAL< T >::getKfComponents().
{ if (!hasPositionAndError()) throwExceptionUninitialized("getKfComponents"); AlgebraicVector1 & pars = holder.params<1>(); pars[0] = pos_.x(); AlgebraicSymMatrix11 & errs = holder.errors<1>(); errs(0,0) = err_.xx(); AlgebraicMatrix15 & proj = holder.projection<1>(); proj(0,3) = 1; holder.measuredParams<1>() = AlgebraicVector1( holder.tsosLocalParameters().At(3) ); holder.measuredErrors<1>() = holder.tsosLocalErrors().Sub<AlgebraicSymMatrix11>( 3, 3 ); }
void BaseTrackerRecHit::getKfComponents2D | ( | KfComponentsHolder & | holder | ) | const |
Definition at line 58 of file BaseTrackerRecHit.cc.
References KfComponentsHolder::doUseProjFunc(), err_, KfComponentsHolder::errors(), hasPositionAndError(), ProjectMatrix< T, N, D >::index, KfComponentsHolder::measuredErrors(), KfComponentsHolder::measuredParams(), KfComponentsHolder::params(), pos_, trackerHitRTTI::proj, KfComponentsHolder::projection(), KfComponentsHolder::projFunc(), KfComponentsHolder::tsosLocalErrors(), KfComponentsHolder::tsosLocalParameters(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().
Referenced by ProjectedSiStripRecHit2D::getKfComponents(), GCC11_FINAL< T >::getKfComponents(), and SiTrackerMultiRecHit::getKfComponents().
{ if (!hasPositionAndError()) throwExceptionUninitialized("getKfComponents"); AlgebraicVector2 & pars = holder.params<2>(); pars[0] = pos_.x(); pars[1] = pos_.y(); AlgebraicSymMatrix22 & errs = holder.errors<2>(); errs(0,0) = err_.xx(); errs(0,1) = err_.xy(); errs(1,1) = err_.yy(); AlgebraicMatrix25 & proj = holder.projection<2>(); proj(0,3) = 1; proj(1,4) = 1; ProjectMatrix<double,5,2> & pf = holder.projFunc<2>(); pf.index[0] = 3; pf.index[1] = 4; holder.doUseProjFunc(); holder.measuredParams<2>() = AlgebraicVector2( & holder.tsosLocalParameters().At(3), 2 ); holder.measuredErrors<2>() = holder.tsosLocalErrors().Sub<AlgebraicSymMatrix22>( 3, 3 ); }
bool BaseTrackerRecHit::hasPositionAndError | ( | ) | const [virtual] |
to be redefined by daughter class
Reimplemented from TrackingRecHit.
Definition at line 23 of file BaseTrackerRecHit.cc.
References err_, pos_, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by getKfComponents1D(), getKfComponents2D(), localPosition(), and localPositionError().
bool BaseTrackerRecHit::isMatched | ( | ) | const [inline] |
Definition at line 36 of file BaseTrackerRecHit.h.
{ return trackerHitRTTI::isMatched(*this);}
bool BaseTrackerRecHit::isMulti | ( | ) | const [inline] |
Definition at line 37 of file BaseTrackerRecHit.h.
{ return trackerHitRTTI::isMulti(*this);}
bool BaseTrackerRecHit::isProjected | ( | ) | const [inline] |
Definition at line 35 of file BaseTrackerRecHit.h.
{ return trackerHitRTTI::isProjected(*this);}
bool BaseTrackerRecHit::isSingle | ( | ) | const [inline] |
Definition at line 34 of file BaseTrackerRecHit.h.
{ return trackerHitRTTI::isSingle(*this);}
LocalPoint BaseTrackerRecHit::localPosition | ( | ) | const [virtual] |
Implements TrackingRecHit.
Reimplemented in GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.
Definition at line 28 of file BaseTrackerRecHit.cc.
References hasPositionAndError(), and pos_.
{ if (!hasPositionAndError()) throwExceptionUninitialized("localPosition"); return pos_; }
LocalError BaseTrackerRecHit::localPositionError | ( | ) | const [virtual] |
Implements TrackingRecHit.
Reimplemented in GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.
Definition at line 33 of file BaseTrackerRecHit.cc.
References err_, and hasPositionAndError().
{ if (!hasPositionAndError()) throwExceptionUninitialized("localPositionError"); return err_; }
const LocalError& BaseTrackerRecHit::localPositionErrorFast | ( | ) | const [inline] |
const LocalPoint& BaseTrackerRecHit::localPositionFast | ( | ) | const [inline] |
AlgebraicVector BaseTrackerRecHit::parameters | ( | void | ) | const [virtual] |
Implements TrackingRecHit.
Reimplemented in GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.
Definition at line 86 of file BaseTrackerRecHit.cc.
{ obsolete(); return AlgebraicVector(); }
AlgebraicSymMatrix BaseTrackerRecHit::parametersError | ( | ) | const [virtual] |
Implements TrackingRecHit.
Reimplemented in GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.
Definition at line 91 of file BaseTrackerRecHit.cc.
{ obsolete(); return AlgebraicSymMatrix(); }
AlgebraicMatrix BaseTrackerRecHit::projectionMatrix | ( | ) | const [virtual] |
Implements TrackingRecHit.
Reimplemented in GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.
Definition at line 97 of file BaseTrackerRecHit.cc.
{ obsolete(); return AlgebraicMatrix(); }
trackerHitRTTI::RTTI BaseTrackerRecHit::rtti | ( | ) | const [inline] |
Definition at line 33 of file BaseTrackerRecHit.h.
{ return trackerHitRTTI::rtti(*this);}
bool BaseTrackerRecHit::sameDetModule | ( | TrackingRecHit const & | hit | ) | const [inline] |
Definition at line 77 of file BaseTrackerRecHit.h.
References TrackingRecHit::geographicalId(), TrackingRecHit::isValid(), DetId::kSubdetOffset, and DetId::rawId().
Referenced by TrackerSingleRecHit::sharesInput().
{ unsigned int myid = geographicalId().rawId(); unsigned int mysubd = myid >> (DetId::kSubdetOffset); unsigned int id = hit.geographicalId().rawId(); unsigned int subd = id >> (DetId::kSubdetOffset); if (mysubd!=subd) return false; //Protection against invalid hits if(!hit.isValid()) return false; const unsigned int limdet = 10; // TIB=11 if (mysubd>limdet) { // strip // mask glue and stereo myid|=3; id|=3; } return id==myid; }
LocalError BaseTrackerRecHit::err_ [private] |
Reimplemented in GCC11_FINAL< T >, and GCC11_FINAL< T >.
Definition at line 73 of file BaseTrackerRecHit.h.
Referenced by getKfComponents1D(), getKfComponents2D(), hasPositionAndError(), localPositionError(), and localPositionErrorFast().
LocalPoint BaseTrackerRecHit::pos_ [private] |
Reimplemented in GCC11_FINAL< T >.
Definition at line 72 of file BaseTrackerRecHit.h.
Referenced by getKfComponents1D(), getKfComponents2D(), hasPositionAndError(), localPosition(), and localPositionFast().