|
|
Go to the documentation of this file.
49 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
50 <<
" Constructing....... ";
54 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
55 <<
" Destructing....... ";
76 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "
77 <<
" Reading SiStripQuality " << std::endl;
89 if (detid == 0 || detid == 0xFFFFFFFF) {
90 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
91 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
96 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
97 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
114 hid = hidmanager.
createHistoId(
"StripQualityFromCondDB",
"det", detid);
116 det_me = ibooker.book1D(hid, hid, nStrip, 0.5, nStrip + 0.5);
119 QualityMEs.insert(std::make_pair(detid, det_me));
140 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "
141 <<
" Reading SiStripQuality " << std::endl;
153 if (detid == 0 || detid == 0xFFFFFFFF) {
154 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
155 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
160 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
161 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
168 for (; it !=
range.second; ++it) {
169 unsigned int value = (*it);
172 for (
short isr = str_start; isr < str_end + 1; isr++) {
173 if (isr <= (
me->getNbinsX() - 1))
174 me->Fill(isr + 1, 1.0);
185 if (outputMEsInRootFile) {
193 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::EndJob: "
201 std::map<uint32_t, MonitorElement *>::iterator
pos =
QualityMEs.find(idet);
204 det_me =
pos->second;
208 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::getQualityME : "
209 <<
"Wrong DetId !!!!!! " << idet <<
" No ME found!";
T const * product() const
data decode(const unsigned int &value) const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
std::map< uint32_t, MonitorElement * > QualityMEs
ContainerIterator getDataVectorBegin() const
std::pair< ContainerIterator, ContainerIterator > Range
RegistryIterator getRegistryVectorBegin() const
#define DEFINE_FWK_MODULE(type)
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
bool IsConnected(const uint32_t &det_id) const
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override
edm::ESHandle< SiStripQuality > stripQuality_
unsigned short firstStrip
MonitorElement * getQualityME(uint32_t idet, const TrackerTopology *tTopo)
~SiStripMonitorQuality() override
std::string createHistoId(std::string description, std::string id_type, uint32_t component_id)
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
T getParameter(std::string const &) const
const uint16_t nApvPairs(uint32_t det_id) const
Registry::const_iterator RegistryIterator
edm::ESHandle< SiStripDetCabling > detCabling_
SiStripMonitorQuality(const edm::ParameterSet &)
void analyze(const edm::Event &, const edm::EventSetup &) override
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
std::vector< unsigned int >::const_iterator ContainerIterator
RegistryIterator getRegistryVectorEnd() const
unsigned long long m_cacheID_