|
|
Go to the documentation of this file.
11 #include <boost/lexical_cast.hpp>
16 : printdebug_(iConfig.getUntrackedParameter<
bool>(
"printDebug",
true)),
26 uint32_t FedErrorMask = 1;
27 uint32_t DigiErrorMask = 2;
28 uint32_t ClusterErrorMask = 4;
32 <<
"[SiStripBadComponentsDQMServiceReader::analyze] End Reading SiStripBadStrip" << std::endl;
34 std::vector<uint32_t> detid;
35 siStripBadStrip.getDetIds(detid);
41 ss <<
"subdet layer stereo side \t detId \t\t Errors" << std::endl;
43 for (
size_t id = 0;
id < detid.size();
id++) {
46 for (
int it = 0; it <
range.second -
range.first; it++) {
50 uint32_t
flag = boost::lexical_cast<uint32_t>(siStripBadStrip.decode(
value).flag);
54 printError(
ss, ((
flag & ClusterErrorMask) == ClusterErrorMask),
"Cluster error");
58 ss <<
" firstBadStrip " << siStripBadStrip.decode(
value).firstStrip <<
"\t "
59 <<
" NconsecutiveBadStrips " << siStripBadStrip.decode(
value).range <<
"\t "
60 <<
" flag " << siStripBadStrip.decode(
value).flag <<
"\t "
61 <<
" packed integer " << std::hex <<
value <<
std::dec <<
"\t " << std::endl;
73 ss << errorText <<
"\t ";
119 }
else if (side == 2) {
SiStripBadComponentsDQMServiceReader(const edm::ParameterSet &)
Log< level::Info, false > LogInfo
uint32_t tobStereo(const DetId &id) const
unsigned int tidWheel(const DetId &id) const
std::pair< ContainerIterator, ContainerIterator > Range
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
static constexpr auto TIB
constexpr int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum)
constexpr std::array< uint8_t, layerIndexSize > layer
uint32_t tibStereo(const DetId &id) const
void printError(std::stringstream &ss, const bool error, const std::string &errorText)
edm::ESGetToken< SiStripBadStrip, SiStripBadStripRcd > badStripToken_
uint32_t tidStereo(const DetId &id) const
unsigned int tidSide(const DetId &id) const
bool getData(T &iHolder) const
unsigned int tobLayer(const DetId &id) const
constexpr uint32_t rawId() const
get the raw id
static constexpr auto TEC
static constexpr auto TOB
void analyze(const edm::Event &, const edm::EventSetup &) override
std::string detIdToString(DetId detid, const TrackerTopology &tTopo)
~SiStripBadComponentsDQMServiceReader() override
unsigned int tecWheel(const DetId &id) const
static constexpr auto TID
uint32_t tecStereo(const DetId &id) const
unsigned int tibLayer(const DetId &id) const
unsigned int tecSide(const DetId &id) const