CMS 3D CMS Logo

ctfseeding::HitExtractorPIX Class Reference

#include <RecoTracker/TkSeedingLayers/src/HitExtractorPIX.h>

Inheritance diagram for ctfseeding::HitExtractorPIX:

ctfseeding::HitExtractor

List of all members.

Public Member Functions

virtual HitExtractorPIXclone () const
 HitExtractorPIX (SeedingLayer::Side &side, int idLayer, const std::string &hitProducer)
virtual std::vector< SeedingHithits (const SeedingLayer &sl, const edm::Event &, const edm::EventSetup &) const
virtual ~HitExtractorPIX ()

Private Attributes

std::string theHitProducer
int theIdLayer
SeedingLayer::Side theSide


Detailed Description

Definition at line 12 of file HitExtractorPIX.h.


Constructor & Destructor Documentation

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]

Definition at line 15 of file HitExtractorPIX.h.

00015 {}


Member Function Documentation

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 }


Member Data Documentation

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().

SeedingLayer::Side ctfseeding::HitExtractorPIX::theSide [private]

Definition at line 20 of file HitExtractorPIX.h.

Referenced by hits().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:37:08 2009 for CMSSW by  doxygen 1.5.4