57 SiPixelPhase1DeadFEDChannels::SiPixelPhase1DeadFEDChannels(
const edm::ParameterSet& iConfig) :
60 pixelFEDChannelCollectionToken_ = consumes<PixelFEDChannelCollection>(
edm::InputTag(
"siPixelDigis"));
65 if( !checktrigger(iEvent,iSetup,DCS) )
return;
70 trackerGeometry_=&(*tmpTkGeometry);
74 cablingMap = pixelCabling.
product();
81 iEvent.
getByToken(pixelFEDChannelCollectionToken_, input);
84 for(
const auto& disabledOnDetId: *input){
86 for(
const auto& ch: disabledOnDetId) {
90 for (path.
roc=1; path.
roc<=(ch.roc_last-ch.roc_first)+1; path.
roc++){
93 assert(roc->
rawId()==disabledOnDetId.detId());
99 histo[DEADCHANROC].fill(disabledOnDetId.detId(), &
iEvent, global.
col, global.
row);
102 histo[DEADCHAN].fill(disabledOnDetId.detId(), &
iEvent);
106 histo[DEADCHAN].executePerEventHarvesting(&iEvent);
virtual int rowsperroc() const =0
virtual example_stream void analyze(const edm::Event &, const edm::EventSetup &) override
CaloTopology const * topology(0)
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
identify pixel inside single ROC
static std::string const input
global coordinates (row and column in DetUnit, as in PixelDigi)
virtual int colsperroc() const =0
uint32_t rawId() const
return the DetUnit to which this ROC belongs to.
void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override=0
row and collumn in ROC representation
T const * product() const
GlobalPixel toGlobal(const LocalPixel &loc) const