![]() |
![]() |
predicts a range in r-z for the position of third hit. the predicted reange is defined by the template argument, which is a straight line extrapolation/interpolation if PixelRecoLineRZ is used.
void helper::ClusterStorer::ClusterHitRecord< SiStripRecHit2D::ClusterRef >rekey | ( | const SiStripRecHit2D::ClusterRef & | newRef | ) | const |
Definition at line 158 of file ClusterStorer.cc.
References SiStripRecHit1D::cluster(), SiStripRecHit2D::cluster(), SiStripMatchedRecHit2D::monoHit(), ProjectedSiStripRecHit2D::originalHit(), SiStripRecHit2D::setClusterRef(), SiStripRecHit1D::setClusterRef(), SiStripDetId::stereo(), and SiStripMatchedRecHit2D::stereoHit().
{ TrackingRecHit &genericHit = (*hits_)[index_]; const std::type_info &hit_type = typeid(genericHit); if (typeid(SiStripRecHit1D) == hit_type) { // case of SiStripRecHit1D SiStripRecHit1D *hit = &static_cast<SiStripRecHit1D&>(genericHit); assert(hit->cluster() == ref_); // otherwise something went wrong hit->setClusterRef(newRef); } else { // various cases resolving to SiStripRecHit2D SiStripRecHit2D *hit = 0; if (typeid(SiStripRecHit2D) == hit_type) { hit = &static_cast<SiStripRecHit2D&>(genericHit); } else if (typeid(SiStripMatchedRecHit2D) == hit_type) { SiStripMatchedRecHit2D &mhit = static_cast<SiStripMatchedRecHit2D&>(genericHit); hit = (SiStripDetId(detid_).stereo() ? mhit.stereoHit() : mhit.monoHit()); } else if (typeid(ProjectedSiStripRecHit2D) == hit_type) { ProjectedSiStripRecHit2D &phit = static_cast<ProjectedSiStripRecHit2D&>(genericHit); hit = &phit.originalHit(); } assert(hit != 0); // to catch missing RecHit types assert(hit->cluster() == ref_); // otherwise something went wrong hit->setClusterRef(newRef); } }
std::pair<typename T::DetSet::const_iterator, typename T::DetSet::const_iterator> helper::getRange | ( | const T & | detset, |
const DetId & | id | ||
) |
Definition at line 40 of file SiStripRecHitsValid.cc.
References match().
Referenced by SiStripRecHitsValid::analyze(), reco::TaggingVariableList::get(), and reco::TaggingVariableList::getList().