CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
HitExtractorPIX.cc
Go to the documentation of this file.
1 #include "HitExtractorPIX.h"
4 
7 
10 
12 
13 using namespace ctfseeding;
14 using namespace std;
15 
17  SeedingLayer::Side & side, int idLayer, const std::string & hitProducer)
18  : theSide(side), theIdLayer(idLayer), theHitProducer(hitProducer)
19 { }
20 
22 {
23  TrackerLayerIdAccessor accessor;
26  ev.getByLabel( theHitProducer, pixelHits);
28  range2SeedingHits( *pixelHits, result, accessor.pixelBarrelLayer(theIdLayer), sl, es );
29  } else {
30  range2SeedingHits( *pixelHits, result, accessor.pixelForwardDisk(theSide,theIdLayer), sl, es );
31  }
32  return result;
33 }
std::pair< DetId, DetIdPXFSameDiskComparator > pixelForwardDisk(int side, int disk)
void range2SeedingHits(DSTV const &dstv, HitExtractor::Hits &v, std::pair< A, B > const &sel, const SeedingLayer &sl, const edm::EventSetup &es)
Definition: HitExtractor.h:34
SeedingLayer::Side theSide
tuple result
Definition: query.py:137
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition: Event.h:359
HitExtractorPIX(SeedingLayer::Side &side, int idLayer, const std::string &hitProducer)
std::pair< DetId, DetIdPXBSameLayerComparator > pixelBarrelLayer(int layer)
virtual HitExtractor::Hits hits(const SeedingLayer &sl, const edm::Event &, const edm::EventSetup &) const
std::vector< TransientTrackingRecHit::ConstRecHitPointer > Hits
Definition: HitExtractor.h:16