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.

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

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
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4