#include <RecoTracker/TkSeedingLayers/src/HitExtractorPIX.h>
Public Member Functions | |
virtual HitExtractorPIX * | clone () const |
HitExtractorPIX (SeedingLayer::Side &side, int idLayer, const std::string &hitProducer) | |
virtual std::vector< SeedingHit > | hits (const SeedingLayer &sl, const edm::Event &, const edm::EventSetup &) const |
virtual | ~HitExtractorPIX () |
Private Attributes | |
std::string | theHitProducer |
int | theIdLayer |
SeedingLayer::Side | theSide |
Definition at line 12 of file HitExtractorPIX.h.
HitExtractorPIX::HitExtractorPIX | ( | SeedingLayer::Side & | side, | |
int | idLayer, | |||
const std::string & | hitProducer | |||
) |
Definition at line 16 of file HitExtractorPIX.cc.
Referenced by clone().
00018 : theSide(side), theIdLayer(idLayer), theHitProducer(hitProducer) 00019 { }
virtual ctfseeding::HitExtractorPIX::~HitExtractorPIX | ( | ) | [inline, virtual] |
virtual HitExtractorPIX* ctfseeding::HitExtractorPIX::clone | ( | void | ) | const [inline, virtual] |
Definition at line 17 of file HitExtractorPIX.h.
References HitExtractorPIX().
00017 { return new HitExtractorPIX(*this); }
vector< SeedingHit > HitExtractorPIX::hits | ( | const SeedingLayer & | sl, | |
const edm::Event & | ev, | |||
const edm::EventSetup & | es | |||
) | const [virtual] |
Implements ctfseeding::HitExtractor.
Definition at line 21 of file HitExtractorPIX.cc.
References ctfseeding::SeedingLayer::Barrel, edm::Event::getByLabel(), it, TrackerLayerIdAccessor::pixelBarrelLayer(), TrackerLayerIdAccessor::pixelForwardDisk(), range, HLT_VtxMuL3::result, theHitProducer, theIdLayer, and theSide.
00022 { 00023 TrackerLayerIdAccessor accessor; 00024 std::vector<SeedingHit> result; 00025 edm::Handle<SiPixelRecHitCollection> pixelHits; 00026 ev.getByLabel( theHitProducer, pixelHits); 00027 const SiPixelRecHitCollection::range range = (theSide==SeedingLayer::Barrel) ? 00028 pixelHits->get(accessor.pixelBarrelLayer(theIdLayer)) 00029 : pixelHits->get(accessor.pixelForwardDisk(theSide,theIdLayer)); 00030 for(SiPixelRecHitCollection::const_iterator it = range.first; it != range.second; it++){ 00031 result.push_back( SeedingHit(&(*it), sl, es) ); 00032 } 00033 return result; 00034 }
std::string ctfseeding::HitExtractorPIX::theHitProducer [private] |
int ctfseeding::HitExtractorPIX::theIdLayer [private] |