Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
RecoTracker
TkSeedingLayers
src
HitExtractorPIX.cc
Go to the documentation of this file.
1
#include "
HitExtractorPIX.h
"
2
#include "
Geometry/TrackerGeometryBuilder/interface/TrackerLayerIdAccessor.h
"
3
#include "
TrackingTools/DetLayers/interface/DetLayer.h
"
4
5
#include "
DataFormats/Common/interface/Handle.h
"
6
#include "
FWCore/Framework/interface/Event.h
"
7
8
#include "
FWCore/Framework/interface/EventSetup.h
"
9
#include "
FWCore/Framework/interface/ESHandle.h
"
10
11
#include "
DataFormats/TrackerRecHit2D/interface/SiPixelRecHitCollection.h
"
12
13
using namespace
ctfseeding;
14
using namespace
std;
15
16
HitExtractorPIX::HitExtractorPIX
(
17
SeedingLayer::Side
& side,
int
idLayer,
const
std::string &
hitProducer
)
18
: theSide(side), theIdLayer(idLayer), theHitProducer(hitProducer)
19
{ }
20
21
HitExtractor::Hits
HitExtractorPIX::hits
(
const
SeedingLayer
& sl,
const
edm::Event
& ev,
const
edm::EventSetup
& es)
const
22
{
23
TrackerLayerIdAccessor
accessor;
24
HitExtractor::Hits
result
;
25
edm::Handle<SiPixelRecHitCollection>
pixelHits;
26
ev.
getByLabel
(
theHitProducer
, pixelHits);
27
if
(
theSide
==
SeedingLayer::Barrel
) {
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
}
TrackerLayerIdAccessor.h
Event.h
HitExtractorPIX.h
EventSetup.h
ctfseeding::SeedingLayer::Barrel
Definition:
SeedingLayer.h:20
TrackerLayerIdAccessor::pixelForwardDisk
std::pair< DetId, DetIdPXFSameDiskComparator > pixelForwardDisk(int side, int disk)
Definition:
TrackerLayerIdAccessor.cc:10
ctfseeding::HitExtractorPIX::theHitProducer
std::string theHitProducer
Definition:
HitExtractorPIX.h:22
TrackerLayerIdAccessor
Definition:
TrackerLayerIdAccessor.h:97
Handle.h
edm::Handle
Definition:
AssociativeIterator.h:48
ctfseeding::HitExtractorPIX::theIdLayer
int theIdLayer
Definition:
HitExtractorPIX.h:21
ctfseeding::SeedingLayer
Definition:
SeedingLayer.h:18
ctfseeding::range2SeedingHits
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
ctfseeding::HitExtractorPIX::theSide
SeedingLayer::Side theSide
Definition:
HitExtractorPIX.h:20
SiPixelRecHitCollection.h
query.result
tuple result
Definition:
query.py:137
ESHandle.h
edm::EventSetup
Definition:
EventSetup.h:44
edm::Event::getByLabel
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
Definition:
Event.h:359
reco_application_2006_simpleTBanalysis_cfg.hitProducer
tuple hitProducer
Definition:
reco_application_2006_simpleTBanalysis_cfg.py:16
ctfseeding::HitExtractorPIX::HitExtractorPIX
HitExtractorPIX(SeedingLayer::Side &side, int idLayer, const std::string &hitProducer)
Definition:
HitExtractorPIX.cc:16
TrackerLayerIdAccessor::pixelBarrelLayer
std::pair< DetId, DetIdPXBSameLayerComparator > pixelBarrelLayer(int layer)
Definition:
TrackerLayerIdAccessor.cc:6
ctfseeding::HitExtractorPIX::hits
virtual HitExtractor::Hits hits(const SeedingLayer &sl, const edm::Event &, const edm::EventSetup &) const
Definition:
HitExtractorPIX.cc:21
DetLayer.h
edm::Event
Definition:
Event.h:49
ctfseeding::SeedingLayer::Side
Side
Definition:
SeedingLayer.h:20
ctfseeding::HitExtractor::Hits
std::vector< TransientTrackingRecHit::ConstRecHitPointer > Hits
Definition:
HitExtractor.h:16
Generated for CMSSW Reference Manual by
1.8.5