![]() |
![]() |
#include <HitExtractorPIX.h>
Public Member Functions | |
virtual HitExtractorPIX * | clone () const |
HitExtractorPIX (SeedingLayer::Side &side, int idLayer, const std::string &hitProducer) | |
virtual HitExtractor::Hits | 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().
: theSide(side), theIdLayer(idLayer), theHitProducer(hitProducer) { }
virtual ctfseeding::HitExtractorPIX::~HitExtractorPIX | ( | ) | [inline, virtual] |
Definition at line 15 of file HitExtractorPIX.h.
{}
virtual HitExtractorPIX* ctfseeding::HitExtractorPIX::clone | ( | void | ) | const [inline, virtual] |
Definition at line 17 of file HitExtractorPIX.h.
References HitExtractorPIX().
{ return new HitExtractorPIX(*this); }
HitExtractor::Hits 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(), TrackerLayerIdAccessor::pixelBarrelLayer(), TrackerLayerIdAccessor::pixelForwardDisk(), ctfseeding::range2SeedingHits(), query::result, theHitProducer, theIdLayer, and theSide.
{ TrackerLayerIdAccessor accessor; HitExtractor::Hits result; edm::Handle<SiPixelRecHitCollection> pixelHits; ev.getByLabel( theHitProducer, pixelHits); if (theSide==SeedingLayer::Barrel) { range2SeedingHits( *pixelHits, result, accessor.pixelBarrelLayer(theIdLayer), sl, es ); } else { range2SeedingHits( *pixelHits, result, accessor.pixelForwardDisk(theSide,theIdLayer), sl, es ); } return result; }
std::string ctfseeding::HitExtractorPIX::theHitProducer [private] |
Definition at line 22 of file HitExtractorPIX.h.
Referenced by hits().
int ctfseeding::HitExtractorPIX::theIdLayer [private] |
Definition at line 21 of file HitExtractorPIX.h.
Referenced by hits().
Definition at line 20 of file HitExtractorPIX.h.
Referenced by hits().