1 #ifndef RecoTracker_TkSeedingLayers_HitExtractor_H
2 #define RecoTracker_TkSeedingLayers_HitExtractor_H
13 namespace edm {
class Event;
class EventSetup;
class ConsumesCollector;}
14 namespace ctfseeding {
class SeedingLayer; }
16 namespace ctfseeding {
20 typedef std::vector<TransientTrackingRecHit::ConstRecHitPointer>
Hits;
50 template <
typename DSTV,
typename A,
typename B>
53 std::pair<A,B>
const &
sel,
55 typename DSTV::Range range = dstv.equal_range(sel.first,sel.second);
57 for(
typename DSTV::const_iterator
id=range.first;
id!=range.second;
id++)
58 ts += std::distance((*id).begin(), (*id).end());
60 for(
typename DSTV::const_iterator
id=range.first;
id!=range.second;
id++){
const TransientTrackingRecHitBuilder & ttrhBuilder_
virtual RecHitPointer build(const TrackingRecHit *p) const =0
build a tracking rechit from an existing rechit
PixelRecoRange< float > Range
void range2SeedingHits(DSTV const &dstv, HitExtractor::Hits &v, std::pair< A, B > const &sel, const TransientTrackingRecHitBuilder &ttrhBuilder, const edm::EventSetup &es)
TransientTrackingRecHit::ConstRecHitPointer operator()(const H &hit)
const edm::EventSetup & es_
HitConv(const TransientTrackingRecHitBuilder &ttrhBuilder, const edm::EventSetup &es)