45 if (!vertices.isValid())
return;
59 for (
auto const &
track : *tracks) {
64 bool isBpixtrack =
false, isFpixtrack =
false;
70 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
73 if(!
hit->isValid())
continue;
76 uint32_t subdetid = (
id.subdetId());
89 if (!isBpixtrack && !isFpixtrack)
continue;
92 for(
unsigned int h=0;
h<
track.recHitsSize();
h++){
96 uint32_t subdetid = (
id.subdetId());
136 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)
bool checktrigger(const edm::Event &iEvent, const edm::EventSetup &iSetup, const unsigned trgidx) const
Abs< T >::type abs(const T &t)
edm::EDGetTokenT< reco::VertexCollection > vtxToken_
std::vector< HistogramManager > histo
SiPixelPhase1TrackEfficiency(const edm::ParameterSet &conf)