|
|
Go to the documentation of this file.
50 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
51 <<
" Constructing....... ";
55 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
56 <<
" Destructing....... ";
70 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "
71 <<
" Reading SiStripQuality " << std::endl;
83 if (detid == 0 || detid == 0xFFFFFFFF) {
84 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
85 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
90 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
91 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
108 hid = hidmanager.
createHistoId(
"StripQualityFromCondDB",
"det", detid);
110 det_me = ibooker.
book1D(hid, hid, nStrip, 0.5, nStrip + 0.5);
113 QualityMEs.insert(std::make_pair(detid, det_me));
126 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "
127 <<
" Reading SiStripQuality " << std::endl;
139 if (detid == 0 || detid == 0xFFFFFFFF) {
140 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
141 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
146 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
147 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
154 for (; it !=
range.second; ++it) {
155 unsigned int value = (*it);
158 for (
short isr = str_start; isr < str_end + 1; isr++) {
159 if (isr <= (
me->getNbinsX() - 1))
160 me->Fill(isr + 1, 1.0);
171 if (outputMEsInRootFile) {
179 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::EndJob: "
187 std::map<uint32_t, MonitorElement *>::iterator
pos =
QualityMEs.find(idet);
190 det_me =
pos->second;
194 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::getQualityME : "
195 <<
"Wrong DetId !!!!!! " << idet <<
" No ME found!";
bool check(const edm::EventSetup &iSetup)
edm::ESWatcher< SiStripQualityRcd > qualityWatcher_
data decode(const unsigned int &value) const
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
Log< level::Info, false > LogInfo
std::map< uint32_t, MonitorElement * > QualityMEs
ContainerIterator getDataVectorBegin() const
std::pair< ContainerIterator, ContainerIterator > Range
RegistryIterator getRegistryVectorBegin() const
#define DEFINE_FWK_MODULE(type)
const SiStripDetCabling * detCabling_
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
const SiStripQuality * stripQuality_
bool IsConnected(const uint32_t &det_id) const
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken_
void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override
unsigned short firstStrip
Log< level::Error, false > LogError
MonitorElement * getQualityME(uint32_t idet, const TrackerTopology *tTopo)
~SiStripMonitorQuality() override
std::string createHistoId(std::string description, std::string id_type, uint32_t component_id)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
bool getData(T &iHolder) const
const uint16_t nApvPairs(uint32_t det_id) const
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
T getParameter(std::string const &) const
Registry::const_iterator RegistryIterator
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
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())