50 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
51 <<
" Constructing....... ";
57 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
58 <<
" Destructing....... ";
82 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "<<
83 " Reading SiStripQuality "<< std::endl;
89 if (rbegin==rend)
return;
95 if (detid == 0 || detid == 0xFFFFFFFF){
96 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
97 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
102 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
103 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
119 hid = hidmanager.
createHistoId(
"StripQualityFromCondDB",
"det", detid);
121 det_me = ibooker.
book1D(hid, hid, nStrip,0.5,nStrip+0.5);
122 ibooker.
tag(det_me, detid);
125 QualityMEs.insert( std::make_pair(detid, det_me));
148 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "<<
149 " Reading SiStripQuality "<< std::endl;
155 if (rbegin==rend)
return;
161 if (detid == 0 || detid == 0xFFFFFFFF){
162 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
163 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
168 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
169 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
176 for(;it!=range.second;++it){
177 unsigned int value=(*it);
180 for (
short isr = str_start; isr < str_end + 1; isr++) {
192 if (outputMEsInRootFile) {
201 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::EndJob: "
209 std::map<uint32_t, MonitorElement* >::iterator pos =
QualityMEs.find(idet);
212 det_me = pos->second;
216 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::getQualityME : "
217 <<
"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