CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 54 of file HitExtractor.h.

References HLT_FULL_cff::distance, h, and sistrip::SpyUtilities::range().

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

54  {
55  typename DSTV::Range range = dstv.equal_range(sel.first, sel.second);
56  size_t ts = v.size();
57  for (typename DSTV::const_iterator id = range.first; id != range.second; id++)
58  ts += std::distance((*id).begin(), (*id).end());
59  v.reserve(ts);
60  for (typename DSTV::const_iterator id = range.first; id != range.second; id++) {
61  for (auto const& h : (*id))
62  v.emplace_back(h);
63  }
64  }
PixelRecoRange< float > Range
const uint16_t range(const Frame &aFrame)
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4