CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Typedefs | Functions
ctfseeding Namespace Reference

Classes

class  HitExtractor
 
class  HitExtractorPIX
 
class  HitExtractorSTRP
 
class  SeedingLayer
 

Typedefs

typedef std::vector< SeedingLayerSeedingLayers
 
typedef std::vector
< std::vector< SeedingLayer > > 
SeedingLayerSets
 

Functions

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

Typedef Documentation

Definition at line 8 of file SeedingLayerSets.h.

typedef std::vector<std::vector<SeedingLayer> > ctfseeding::SeedingLayerSets

Definition at line 9 of file SeedingLayerSets.h.

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 49 of file HitExtractor.h.

References HLT_25ns10e33_v2_cff::distance, and h.

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

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