Go to the documentation of this file.
34 myName_(
"CSCRecoBadChannelsAnalyzer"),
77 edm::LogVerbatim(
"CSCBadChannels") <<
" Geometry node for CSCGeom is " << &(*theGeometry);
90 edm::LogVerbatim(
"CSCBadChannels") <<
"There are " << vecOfLayers.size() <<
" layers";
97 for (
auto it = vecOfLayers.begin(); it != vecOfLayers.end(); ++it) {
103 edm::LogVerbatim(
"CSCBadChannels") <<
"Layer " <<
id <<
" has " << nstrips <<
" strips";
111 bool layerhasbadchannels =
false;
112 for (
short is = 1; is <= nstrips; ++is) {
115 layerhasbadchannels =
true;
120 for (
short is = 1; is <= nstrips; ++is) {
122 edm::LogVerbatim(
"CSCBadChannels") <<
id <<
" strip " << is <<
" is a neighbor of a bad strip";
126 if (layerhasbadchannels)
130 edm::LogVerbatim(
"CSCBadChannels") <<
"WEIRD ERROR: a null CSCLayer* was seen";
134 edm::LogVerbatim(
"CSCBadChannels") <<
"No. of layers with bad strip channels = " << ibadlayers;
135 edm::LogVerbatim(
"CSCBadChannels") <<
"No. of bad strip channels seen = " << ibadchannels;
bool readBadChannels() const
did we request reading bad channel info from db?
const int dashedLineWidth_
void initializeEvent(const edm::EventSetup &es)
fetch the cond data from the database
virtual std::string name() const
CSCRecoBadChannelsAnalyzer(edm::ParameterSet const &ps)
#define DEFINE_FWK_MODULE(type)
const CSCLayerGeometry * geometry() const
bool badStrip(const CSCDetId &id, int geomStrip, int nstrips) const
Is the strip bad?
void analyze(const edm::Event &e, const edm::EventSetup &c) override
const std::string dashedLine_
const std::string myName_
const std::string & myName()
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.
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)
CSCRecoConditions * recoConditions_
~CSCRecoBadChannelsAnalyzer() override
virtual std::string name() const
const LayerContainer & layers() const
Return a vector of all layers.
int numberOfStrips() const
std::vector< const CSCLayer * > LayerContainer