46 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality " 47 <<
" Constructing....... ";
51 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality " 52 <<
" Destructing....... ";
66 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: " 67 <<
" Reading SiStripQuality " << std::endl;
79 if (detid == 0 || detid == 0xFFFFFFFF) {
80 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : " 81 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
86 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : " 87 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
104 hid = hidmanager.
createHistoId(
"StripQualityFromCondDB",
"det", detid);
106 det_me = ibooker.
book1D(hid, hid, nStrip, 0.5, nStrip + 0.5);
109 QualityMEs.insert(std::make_pair(detid, det_me));
122 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: " 123 <<
" Reading SiStripQuality " << std::endl;
135 if (detid == 0 || detid == 0xFFFFFFFF) {
136 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : " 137 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
142 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : " 143 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
151 unsigned int value = (*it);
154 for (
short isr = str_start; isr < str_end + 1; isr++) {
155 if (isr <= (
me->getNbinsX() - 1))
156 me->Fill(isr + 1, 1.0);
167 if (outputMEsInRootFile) {
175 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::EndJob: " 183 std::map<uint32_t, MonitorElement *>::iterator
pos =
QualityMEs.find(idet);
186 det_me =
pos->second;
190 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::getQualityME : " 191 <<
"Wrong DetId !!!!!! " << idet <<
" No ME found!";
ContainerIterator getDataVectorBegin() const
T getParameter(std::string const &) const
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
T const & getData(const ESGetToken< T, R > &iToken) const noexcept(false)
std::map< uint32_t, MonitorElement * > QualityMEs
~SiStripMonitorQuality() override
std::vector< unsigned int >::const_iterator ContainerIterator
Registry::const_iterator RegistryIterator
MonitorElement * getQualityME(uint32_t idet, const TrackerTopology *tTopo)
Log< level::Error, false > LogError
bool IsConnected(const uint32_t &det_id) const
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken_
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
edm::ESWatcher< SiStripQualityRcd > qualityWatcher_
void analyze(const edm::Event &, const edm::EventSetup &) override
RegistryIterator getRegistryVectorEnd() const
#define DEFINE_FWK_MODULE(type)
const SiStripDetCabling * detCabling_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
const SiStripQuality * stripQuality_
Log< level::Info, false > LogInfo
unsigned short firstStrip
std::string createHistoId(std::string description, std::string id_type, uint32_t component_id)
bool check(const edm::EventSetup &iSetup)
SiStripMonitorQuality(const edm::ParameterSet &)
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
std::pair< ContainerIterator, ContainerIterator > Range
data decode(const unsigned int &value) const
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override
RegistryIterator getRegistryVectorBegin() const
const uint16_t nApvPairs(uint32_t det_id) const
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)