35 MEDir_{iConfig.getUntrackedParameter<
std::string>(
"ME_DIR",
"DQMData")} {
36 edm::LogInfo(
"SiStripPedestalsDQMService") <<
"[SiStripPedestalsDQMService::SiStripPedestalsDQMService]";
40 edm::LogInfo(
"SiStripPedestalsDQMService") <<
"[SiStripPedestalsDQMService::~SiStripPedestalsDQMService]";
44 std::cout <<
"SiStripPedestalsDQMService::readPedestals" << std::endl;
53 uint32_t stripsPerApv = 128;
61 MEs.erase(std::remove_if(
MEs.begin(),
64 return std::string::npos ==
ME->getName().find(
"PedsPerStrip__det__");
69 for (
const auto& detInfo : detInfo.getAllData()) {
76 std::string MEname(
"PedsPerStrip__det__" + std::to_string(detInfo.first));
78 if (ime->getName() == MEname) {
88 TH1F*
histo = mE->getTH1F();
91 uint32_t nBinsX =
histo->GetXaxis()->GetNbins();
93 if (nBinsX != stripsPerApv * (detInfo.second.nApvs)) {
94 std::cout <<
"ERROR: number of bin = " << nBinsX
95 <<
" != number of strips = " << stripsPerApv * (detInfo.second.nApvs) << std::endl;
100 for (uint32_t iBin = 1; iBin <= nBinsX; ++iBin) {
108 std::cout <<
"ERROR: ME = " << mE << std::endl;
111 if (theSiStripVector.empty()) {
112 for (
unsigned short j = 0;
j < 128 * detInfo.second.nApvs; ++
j) {
117 if (!
m_obj.
put(detInfo.first, theSiStripVector))
118 edm::LogError(
"SiStripPedestalsFakeESSource::produce ") <<
" detid already exists" << std::endl;