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

◆ range2SeedingHits()

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.

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  }

References HLT_FULL_cff::distance, FastTimerService_cff::range, EgammaValidation_Wenu_cff::sel, and findQualityFiles::v.

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

FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
Range
PixelRecoRange< float > Range
Definition: PixelTripletHLTGenerator.cc:31
findQualityFiles.v
v
Definition: findQualityFiles.py:179
h
EgammaValidation_Wenu_cff.sel
sel
Definition: EgammaValidation_Wenu_cff.py:33
HLT_FULL_cff.distance
distance
Definition: HLT_FULL_cff.py:7746