46 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
47 <<
" Constructing....... ";
51 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality "
52 <<
" Destructing....... ";
66 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "
67 <<
" Reading SiStripQuality " << std::endl;
79 if (detid == 0 || detid == 0xFFFFFFFF) {
80 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
81 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
86 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::bookHistograms : "
87 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
104 hid = hidmanager.
createHistoId(
"StripQualityFromCondDB",
"det", detid);
106 det_me = ibooker.
book1D(hid, hid, nStrip, 0.5, nStrip + 0.5);
109 QualityMEs.insert(std::make_pair(detid, det_me));
122 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze: "
123 <<
" Reading SiStripQuality " << std::endl;
135 if (detid == 0 || detid == 0xFFFFFFFF) {
136 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
137 <<
"Wrong DetId !!!!!! " << detid <<
" Neglecting !!!!!! ";
142 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::analyze : "
143 <<
" DetId " << detid <<
" not connected, Neglecting !!!!!! ";
150 for (; it != range.second; ++it) {
151 unsigned int value = (*it);
154 for (
short isr = str_start; isr < str_end + 1; isr++) {
156 me->
Fill(isr + 1, 1.0);
167 if (outputMEsInRootFile) {
175 edm::LogInfo(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::EndJob: "
183 std::map<uint32_t, MonitorElement *>::iterator pos =
QualityMEs.find(idet);
186 det_me = pos->second;
190 edm::LogError(
"SiStripMonitorQuality") <<
"SiStripMonitorQuality::getQualityME : "
191 <<
"Wrong DetId !!!!!! " << idet <<
" No ME found!";
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > tTopoToken_
std::map< uint32_t, MonitorElement * > QualityMEs
~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
MonitorElement * getQualityME(uint32_t idet, const TrackerTopology *tTopo)
Log< level::Error, false > LogError
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken_
const uint16_t range(const Frame &aFrame)
void setDetectorFolder(uint32_t rawdetid, const TrackerTopology *tTopo)
bool getData(T &iHolder) const
virtual void Reset()
Remove all data from the ME, keept the empty histogram with all its settings.
edm::ESWatcher< SiStripQualityRcd > qualityWatcher_
RegistryIterator getRegistryVectorEnd() const
virtual int getNbinsX() const
get # of bins in X-axis
void analyze(const edm::Event &, const edm::EventSetup &) override
const SiStripDetCabling * detCabling_
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
edm::ESGetToken< SiStripDetCabling, SiStripDetCablingRcd > detCablingToken_
ContainerIterator getDataVectorBegin() const
SiStripHistoId hidmanager
const SiStripQuality * stripQuality_
Log< level::Info, false > LogInfo
unsigned short firstStrip
std::string createHistoId(std::string description, std::string id_type, uint32_t component_id)
T getParameter(std::string const &) const
SiStripFolderOrganizer folder_organizer
bool check(const edm::EventSetup &iSetup)
RegistryIterator getRegistryVectorBegin() const
const uint16_t nApvPairs(uint32_t det_id) const
SiStripMonitorQuality(const edm::ParameterSet &)
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
std::pair< ContainerIterator, ContainerIterator > Range
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
void dqmEndRun(edm::Run const &run, edm::EventSetup const &eSetup) override
data decode(const unsigned int &value) const
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)