42 if (!vertices.isValid())
return;
44 if (vertices->size() == 0)
return;
53 for (
auto const &
track : *tracks) {
55 bool isBpixtrack =
false, isFpixtrack =
false;
59 auto const & trajParams =
track.extra()->trajParams();
61 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
63 if(!
hit->isValid())
continue;
66 uint32_t subdetid = (
id.subdetId());
79 if (!isBpixtrack && !isFpixtrack)
continue;
82 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
86 uint32_t subdetid = (
id.subdetId());
100 lp = trajParams[
h].position();
104 int row = (
int) mp.
x();
118 histo[
VALID ].executePerEventHarvesting(&iEvent);
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
T getParameter(std::string const &) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &, const edm::EventSetup &)
virtual MeasurementPoint measurementPosition(const LocalPoint &) const =0
virtual LocalPoint localPosition() const final
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
virtual const PixelTopology & specificTopology() const
Returns a reference to the pixel proxy topology.
std::vector< HistogramManager > histo
SiPixelPhase1TrackEfficiency(const edm::ParameterSet &conf)
const TrackerGeomDet * idToDet(DetId) const