50 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality " 51 <<
" Constructing....... ";
55 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality " 56 <<
" Destructing....... ";
77 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: " 78 <<
" Reading SiStripQuality " << std::endl;
90 if (detid == 0 || detid == 0xFFFFFFFF) {
91 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : " 92 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
97 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : " 98 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
115 hid = hidmanager.
createHistoId(
"StripQualityFromCondDB",
"det", detid);
117 det_me = ibooker.
book1D(hid, hid, nStrip, 0.5, nStrip + 0.5);
118 ibooker.
tag(det_me, detid);
121 QualityMEs.insert(std::make_pair(detid, det_me));
142 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: " 143 <<
" Reading SiStripQuality " << std::endl;
155 if (detid == 0 || detid == 0xFFFFFFFF) {
156 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : " 157 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
162 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : " 163 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
170 for (; it != range.second; ++it) {
171 unsigned int value = (*it);
174 for (
short isr = str_start; isr < str_end + 1; isr++) {
176 me->
Fill(isr + 1, 1.0);
187 if (outputMEsInRootFile) {
196 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::EndJob: " 203 std::map<uint32_t, MonitorElement *>::iterator
pos =
QualityMEs.find(idet);
206 det_me = pos->second;
210 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::getQualityME : " 211 <<
"Wrong DetId !!!!!! " << idet <<
" No ME found!";
T getParameter(std::string const &) const
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
std::map< uint32_t, MonitorElement * > QualityMEs
~SiStripMonitorQuality() override
std::vector< unsigned int >::const_iterator ContainerIterator
edm::ESHandle< SiStripQuality > stripQuality_
bool IsConnected(const uint32_t &det_id) const
Registry::const_iterator RegistryIterator
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
#define DEFINE_FWK_MODULE(type)
MonitorElement * getQualityME(uint32_t idet, const TrackerTopology *tTopo)
RegistryIterator getRegistryVectorEnd() const
edm::ESHandle< SiStripDetCabling > detCabling_
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * book1D(Args &&...args)
void tag(MonitorElement *, unsigned int)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
void Reset()
reset ME (ie. contents, errors, etc)
ContainerIterator getDataVectorBegin() const
unsigned short firstStrip
std::string createHistoId(std::string description, std::string id_type, uint32_t component_id)
void save(std::string const &filename, std::string const &path="", std::string const &pattern="", std::string const &rewrite="", uint32_t run=0, uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, std::string const &fileupdate="RECREATE")
RegistryIterator getRegistryVectorBegin() const
const uint16_t nApvPairs(uint32_t det_id) const
SiStripMonitorQuality(const edm::ParameterSet &)
std::pair< ContainerIterator, ContainerIterator > Range
unsigned long long m_cacheID_
int getNbinsX() const
get # of bins in X-axis
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
T const * product() const
data decode(const unsigned int &value) const