35 myName_(
"CSCRecoBadChannelsAnalyzer"),
81 edm::LogVerbatim(
"CSCBadChannels") <<
" Geometry node for CSCGeom is " << &(*theGeometry);
94 edm::LogVerbatim(
"CSCBadChannels") <<
"There are " << vecOfLayers.size() <<
" layers";
101 for (
auto it = vecOfLayers.begin(); it != vecOfLayers.end(); ++it) {
106 int nstrips =
layer->geometry()->numberOfStrips();
107 edm::LogVerbatim(
"CSCBadChannels") <<
"Layer " <<
id <<
" has " << nstrips <<
" strips";
115 bool layerhasbadchannels =
false;
116 for (
short is = 1; is <= nstrips; ++is) {
119 layerhasbadchannels =
true;
124 for (
short is = 1; is <= nstrips; ++is) {
126 edm::LogVerbatim(
"CSCBadChannels") <<
id <<
" strip " << is <<
" is a neighbor of a bad strip";
130 if (layerhasbadchannels)
134 edm::LogVerbatim(
"CSCBadChannels") <<
"WEIRD ERROR: a null CSCLayer* was seen";
138 edm::LogVerbatim(
"CSCBadChannels") <<
"No. of layers with bad strip channels = " << ibadlayers;
139 edm::LogVerbatim(
"CSCBadChannels") <<
"No. of bad strip channels seen = " << ibadchannels;
Log< level::Info, true > LogVerbatim
bool readBadChannels() const
did we request reading bad channel info from db?
const int dashedLineWidth_
edm::ESGetToken< CSCGeometry, MuonGeometryRecord > geometryToken_
const std::string dashedLine_
CSCRecoBadChannelsAnalyzer(edm::ParameterSet const &ps)
bool nearBadStrip(const CSCDetId &id, int geomStrip, int nstrips) const
Is a neighbour bad?
const DetTypeContainer & detTypes() const override
Return a vector of all det types.
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void fillBadChannelWords(const CSCDetId &id)
fill bad strip & bad wiregroup bitsets from conditions data
const DetContainer & dets() const override
Returm a vector of all GeomDet (including all GeomDetUnits)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
edm::ESGetToken< CSCChannelMapperBase, CSCChannelMapperRecord > mapperToken_
#define DEFINE_FWK_MODULE(type)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
const std::string myName_
const std::string & myName()
bool badStrip(const CSCDetId &id, int geomStrip, int nstrips) const
Is the strip bad?
virtual std::string name() const
~CSCRecoBadChannelsAnalyzer() override
const LayerContainer & layers() const
Return a vector of all layers.
std::vector< const CSCLayer * > LayerContainer
CSCRecoConditions * recoConditions_
virtual std::string name() const
void initializeEvent(const edm::EventSetup &es)
fetch the cond data from the database
edm::ESGetToken< CSCIndexerBase, CSCIndexerRecord > indexerToken_