42 if (!vertices.isValid())
return;
44 if (vertices->size() == 0)
return;
54 for (
auto const &
track : *tracks) {
56 bool isBpixtrack =
false, isFpixtrack =
false;
62 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
65 if(!
hit->isValid())
continue;
68 uint32_t subdetid = (
id.subdetId());
81 if (!isBpixtrack && !isFpixtrack)
continue;
84 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
88 uint32_t subdetid = (
id.subdetId());
124 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 &)
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
std::vector< HistogramManager > histo
SiPixelPhase1TrackEfficiency(const edm::ParameterSet &conf)