44 if (!vertices.isValid())
return;
58 for (
auto const &
track : *tracks) {
63 bool isBpixtrack =
false, isFpixtrack =
false;
69 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
72 if(!
hit->isValid())
continue;
75 uint32_t subdetid = (
id.subdetId());
88 if (!isBpixtrack && !isFpixtrack)
continue;
91 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
95 uint32_t subdetid = (
id.subdetId());
135 histo[
VALID ].executePerEventHarvesting(&iEvent);
edm::EDGetTokenT< reco::TrackCollection > tracksToken_
T getParameter(std::string const &) const
T getUntrackedParameter(std::string const &, T const &) const
FWCore Framework interface EventSetupRecordImplementation h
Helper function to determine trigger accepts.
void analyze(const edm::Event &, const edm::EventSetup &) override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
std::vector< HistogramManager > histo
SiPixelPhase1TrackEfficiency(const edm::ParameterSet &conf)