34 : printverbose_(iConfig.getUntrackedParameter<
bool>(
"printVerbose",
false)),
35 printdebug_(iConfig.getUntrackedParameter<
int>(
"printDebug", 1)),
36 label_(iConfig.getUntrackedParameter<
std::
string>(
"label",
"")),
45 <<
"[SiPhase2BadStripChannelReader::analyze] End Reading SiStriBadStrip with label " <<
label_ << std::endl;
54 std::vector<uint32_t> detIds;
58 for (
const auto&
d : detIds) {
60 for (std::vector<unsigned int>::const_iterator badChannel =
range.first; badChannel !=
range.second; ++badChannel) {
61 const auto& firstStrip =
payload->decodePhase2(*badChannel).firstStrip;
62 const auto&
range =
payload->decodePhase2(*badChannel).range;
65 ss <<
"DetId= " <<
d <<
" Channel=" <<
payload->decodePhase2(*badChannel).firstStrip <<
":" 66 <<
payload->decodePhase2(*badChannel).range << std::endl;
72 ss <<
"DetId= " <<
d <<
" Channel= " << firstStrip +
index <<
" -> strip (row,col)=(" << badStrip.first <<
"," 73 << badStrip.second <<
")" << std::endl;
80 edm::LogInfo(
"SiPhase2BadStripChannelReader") <<
ss.str() << std::endl;
86 desc.setComment(
"Module to read SiStripBadStrip Payloads through SiPhase2OuterTrackerBadStripRcd");
87 desc.addUntracked<
bool>(
"printVerbose",
false)->setComment(
"if active, very verbose output");
88 desc.addUntracked<
int>(
"printDebug", 1)->setComment(
"tunes the amount of debug level print-outs");
89 desc.addUntracked<
std::string>(
"label",
"")->setComment(
"label from which to read the payload");
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
void analyze(edm::StreamID, edm::Event const &, edm::EventSetup const &) const override
#define DEFINE_FWK_MODULE(type)
const edm::ESGetToken< SiStripBadStrip, SiPhase2OuterTrackerBadStripRcd > badStripToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
bool getData(T &iHolder) const
SiPhase2BadStripChannelReader(const edm::ParameterSet &)
Log< level::Info, false > LogInfo
static std::pair< unsigned int, unsigned int > channelToPixel(unsigned int ch)
std::pair< ContainerIterator, ContainerIterator > Range
~SiPhase2BadStripChannelReader() override=default