CMS 3D CMS Logo

Classes | Functions
ctfseeding Namespace Reference

Classes

class  HitExtractor
 
class  HitExtractorPIX
 
class  HitExtractorSTRP
 

Functions

template<typename DSTV , typename A , typename B >
void range2SeedingHits (DSTV const &dstv, HitExtractor::Hits &v, std::pair< A, B > const &sel)
 

Function Documentation

template<typename DSTV , typename A , typename B >
void ctfseeding::range2SeedingHits ( DSTV const &  dstv,
HitExtractor::Hits v,
std::pair< A, B > const &  sel 
)
inline

Definition at line 48 of file HitExtractor.h.

References SoftLeptonByDistance_cfi::distance, and h.

Referenced by ctfseeding::HitExtractorPIX::hits(), and ctfseeding::HitExtractorSTRP::hits().

50  {
51  typename DSTV::Range range = dstv.equal_range(sel.first,sel.second);
52  size_t ts = v.size();
53  for(typename DSTV::const_iterator id=range.first; id!=range.second; id++)
54  ts += std::distance((*id).begin(), (*id).end());
55  v.reserve(ts);
56  for(typename DSTV::const_iterator id=range.first; id!=range.second; id++){
57  for ( auto const & h : (*id) ) v.emplace_back(h);
58  }
59 
60  }
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
PixelRecoRange< float > Range