51 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality " 52 <<
" Constructing....... ";
58 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality " 59 <<
" Destructing....... ";
78 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "<<
79 " Reading SiStripQuality "<< std::endl;
85 if (rbegin==rend)
return;
91 if (detid == 0 || detid == 0xFFFFFFFF){
92 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : " 93 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
98 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : " 99 <<
" 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));
144 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "<<
145 " Reading SiStripQuality "<< std::endl;
151 if (rbegin==rend)
return;
157 if (detid == 0 || detid == 0xFFFFFFFF){
158 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : " 159 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
164 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : " 165 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
172 for(;it!=range.second;++it){
173 unsigned int value=(*it);
176 for (
short isr = str_start; isr < str_end + 1; isr++) {
188 if (outputMEsInRootFile) {
197 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::EndJob: " 205 std::map<uint32_t, MonitorElement* >::iterator
pos =
QualityMEs.find(idet);
208 det_me = pos->second;
212 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::getQualityME : " 213 <<
"Wrong DetId !!!!!! " << idet <<
" No ME found!";
T getParameter(std::string const &) const
edm::ESHandle< SiStripDetCabling > detCabling_
void endRun(edm::Run const &run, edm::EventSetup const &eSetup) override
~SiStripMonitorQuality() 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_
void analyze(const edm::Event &, const edm::EventSetup &) override
MonitorElement * book1D(Args &&...args)
void tag(MonitorElement *, unsigned int)
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")
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)
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
std::map< uint32_t, MonitorElement * > QualityMEs
data decode(const unsigned int &value) const