46 : printdebug_(iConfig.getUntrackedParameter<
bool>(
"printDebug",
true)),
54 uint32_t FedErrorMask = 1;
55 uint32_t DigiErrorMask = 2;
56 uint32_t ClusterErrorMask = 4;
60 <<
"[SiStripBadComponentsDQMServiceReader::analyze] End Reading SiStripBadStrip" << std::endl;
62 std::vector<uint32_t> detid;
63 siStripBadStrip.getDetIds(detid);
69 ss <<
"subdet layer stereo side \t detId \t\t Errors" << std::endl;
71 for (
size_t id = 0;
id < detid.size();
id++) {
74 for (
int it = 0; it <
range.second -
range.first; it++) {
78 uint32_t
flag =
static_cast<uint32_t
>(siStripBadStrip.decode(
value).flag);
82 printError(
ss, ((
flag & ClusterErrorMask) == ClusterErrorMask),
"Cluster error");
86 ss <<
" firstBadStrip " << siStripBadStrip.decode(
value).firstStrip <<
"\t " 87 <<
" NconsecutiveBadStrips " << siStripBadStrip.decode(
value).range <<
"\t " 88 <<
" flag " << siStripBadStrip.decode(
value).flag <<
"\t " 89 <<
" packed integer " << std::hex <<
value <<
std::dec <<
"\t " << std::endl;
101 ss << errorText <<
"\t ";
147 }
else if (side == 2) {
static constexpr auto TEC
unsigned int tobLayer(const DetId &id) const
std::string detIdToString(DetId detid, const TrackerTopology &tTopo)
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
void printError(std::stringstream &ss, const bool error, const std::string &errorText)
uint32_t tidStereo(const DetId &id) const
unsigned int tidSide(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
unsigned int tecWheel(const DetId &id) const
std::string to_string(const V &value)
const edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
constexpr std::array< uint8_t, layerIndexSize< TrackerTraits > > layer
uint32_t tobStereo(const DetId &id) const
unsigned int tecSide(const DetId &id) const
#define DEFINE_FWK_MODULE(type)
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
static constexpr auto TOB
~SiStripBadComponentsDQMServiceReader() override=default
Log< level::Info, false > LogInfo
static constexpr auto TIB
SiStripBadComponentsDQMServiceReader(const edm::ParameterSet &)
constexpr uint32_t rawId() const
get the raw id
const edm::ESGetToken< SiStripBadStrip, SiStripBadStripRcd > badStripToken_
std::pair< ContainerIterator, ContainerIterator > Range
void analyze(const edm::Event &, const edm::EventSetup &) override
uint32_t tecStereo(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
static constexpr auto TID
uint32_t tibStereo(const DetId &id) const