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_
virtual void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
#define DEFINE_FWK_MODULE(type)
std::vector< unsigned int >::const_iterator ContainerIterator
bool IsConnected(const uint32_t &det_id) const
Registry::const_iterator RegistryIterator
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
MonitorElement * getQualityME(uint32_t idet, const TrackerTopology *tTopo)
RegistryIterator getRegistryVectorEnd() const
edm::ESHandle< SiStripQuality > stripQuality_
virtual 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
ContainerIterator getDataVectorBegin() const
unsigned short firstStrip
std::string createHistoId(std::string description, std::string id_type, uint32_t component_id)
RegistryIterator getRegistryVectorBegin() const
const uint16_t nApvPairs(uint32_t det_id) 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)
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)
T const * product() const
std::map< uint32_t, MonitorElement * > QualityMEs
data decode(const unsigned int &value) const