51 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
52 <<
" Constructing....... ";
58 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
59 <<
" Destructing....... ";
83 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "<<
84 " Reading SiStripQuality "<< std::endl;
90 if (rbegin==rend)
return;
96 if (detid == 0 || detid == 0xFFFFFFFF){
97 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
98 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
103 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
104 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
120 hid = hidmanager.
createHistoId(
"StripQualityFromCondDB",
"det", detid);
122 det_me = ibooker.
book1D(hid, hid, nStrip,0.5,nStrip+0.5);
123 ibooker.
tag(det_me, detid);
126 QualityMEs.insert( std::make_pair(detid, det_me));
149 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "<<
150 " Reading SiStripQuality "<< std::endl;
156 if (rbegin==rend)
return;
162 if (detid == 0 || detid == 0xFFFFFFFF){
163 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
164 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
169 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
170 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
177 for(;it!=range.second;++it){
178 unsigned int value=(*it);
181 for (
short isr = str_start; isr < str_end + 1; isr++) {
193 if (outputMEsInRootFile) {
202 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::EndJob: "
210 std::map<uint32_t, MonitorElement* >::iterator pos =
QualityMEs.find(idet);
213 det_me = pos->second;
217 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::getQualityME : "
218 <<
"Wrong DetId !!!!!! " << idet <<
" No ME found!";
T getParameter(std::string const &) const
edm::ESHandle< SiStripDetCabling > detCabling_
#define DEFINE_FWK_MODULE(type)
std::vector< unsigned int >::const_iterator ContainerIterator
Registry::const_iterator RegistryIterator
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
MonitorElement * getQualityME(uint32_t idet, const TrackerTopology *tTopo)
edm::ESHandle< SiStripQuality > stripQuality_
MonitorElement * book1D(Args &&...args)
void tag(MonitorElement *, unsigned int)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
virtual void endRun(edm::Run const &run, edm::EventSetup const &eSetup)
std::string createHistoId(std::string description, std::string id_type, uint32_t component_id)
T const * product() const
SiStripMonitorQuality(const edm::ParameterSet &)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, const uint32_t lumi=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE", const bool resetMEsAfterWriting=false)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
std::pair< ContainerIterator, ContainerIterator > Range
unsigned long long m_cacheID_
int getNbinsX(void) 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)
void Reset(void)
reset ME (ie. contents, errors, etc)
std::map< uint32_t, MonitorElement * > QualityMEs