Helper functions to extract the dictionary with - all EDFilters - all EDProducers - all EDAnalyzers - all modules either from a dictionary (either a cms.Process.__dict__ or from the locals() inside a _cff.py fragment)
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); } }
def helper::findEDAnalyzers | ( | holder | ) |
def helper::findEDFilters | ( | holder | ) |
def helper::findEDProducers | ( | holder | ) |
def helper::findModules | ( | holder | ) |
Definition at line 33 of file helper.py.
00034 : 00035 if isinstance(holder, cms.Process): 00036 modules = dict() 00037 modules.upate(process.analyzers_()) 00038 modules.upate(process.producers_()) 00039 modules.upate(process.filters_()) 00040 return modules 00041 else: 00042 return dict( (name, module) for name, module in holder.iteritems() if isinstance(module, (cms.EDAnalyzer, _cms.EDProducer, _cms.EDFilter)) ) 00043 00044
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().