112 if (
debug_>0)
std::cout<<
"<HcalDataCertification> bookHistograms"<< std::endl;
171 float hcalFrac,reportFrac,dcsFrac,daqFrac;
172 float fracHCAL[7][3];
178 std::cout <<
"<HcalDataCertification::endLuminosityBlock> --- Current Directory " << currDir << std::endl;
182 dcsFrac = (ig.
get(
rootFolder_+
"/EventInfo/DCSSummary"))->getFloatValue();
187 daqFrac = (ig.
get(
rootFolder_+
"/EventInfo/DAQSummary"))->getFloatValue();
192 reportFrac = (ig.
get(
rootFolder_+
"/EventInfo/reportSummary"))->getFloatValue();
194 else reportFrac = -1;
201 std::cout<<
"dcsFrac= "<<dcsFrac<<std::endl;
202 std::cout<<
"daqFrac= "<<daqFrac<<std::endl;
203 std::cout<<
"reportFrac= "<<reportFrac<<std::endl;
204 std::cout<<
"CertificationSummary= "<<hcalFrac<<std::endl;
209 if (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HB")) {
210 fracHCAL[0][0] = (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HB"))->getFloatValue();
212 else fracHCAL[0][0] = -1;
214 if (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HE")) {
215 fracHCAL[1][0] = (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HE"))->getFloatValue();
217 else fracHCAL[1][0] = -1;
219 if (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO")) {
220 fracHCAL[2][0] = (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO"))->getFloatValue();
222 else fracHCAL[2][0] = -1;
224 if (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HF")) {
225 fracHCAL[3][0] = (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HF"))->getFloatValue();
227 else fracHCAL[3][0] = -1;
229 if (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO0")) {
230 fracHCAL[4][0] = (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO0"))->getFloatValue();
232 else fracHCAL[4][0] = -1;
234 if (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO12")) {
235 fracHCAL[5][0] = (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO12"))->getFloatValue();
237 else fracHCAL[5][0] = -1;
240 if (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HFlumi")) {
241 fracHCAL[6][0] = (ig.
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HFlumi"))->getFloatValue();
243 else fracHCAL[6][0] = -1;
248 fracHCAL[0][1] = (ig.
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HB"))->getFloatValue();
250 else fracHCAL[0][1] = -1;
253 fracHCAL[1][1] = (ig.
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HE"))->getFloatValue();
255 else fracHCAL[1][1] = -1;
258 fracHCAL[2][1] = (ig.
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HO"))->getFloatValue();
260 else fracHCAL[2][1] = -1;
263 fracHCAL[3][1] = (ig.
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HF"))->getFloatValue();
265 else fracHCAL[3][1] = -1;
268 fracHCAL[4][1] = (ig.
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HO0"))->getFloatValue();
270 else fracHCAL[4][1] = -1;
273 fracHCAL[5][1] = (ig.
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HO12"))->getFloatValue();
275 else fracHCAL[5][1] = -1;
278 fracHCAL[6][1] = (ig.
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HFlumi"))->getFloatValue();
280 else fracHCAL[6][1] = -1;
285 fracHCAL[0][2] = (ig.
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HB"))->getFloatValue();
287 else fracHCAL[0][2] = -1;
290 fracHCAL[1][2] = (ig.
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HE"))->getFloatValue();
292 else fracHCAL[1][2] = -1;
295 fracHCAL[2][2] = (ig.
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HO"))->getFloatValue();
297 else fracHCAL[2][2] = -1;
300 fracHCAL[3][2] = (ig.
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HF"))->getFloatValue();
302 else fracHCAL[3][2] = -1;
305 fracHCAL[4][2] = (ig.
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HO0"))->getFloatValue();
307 else fracHCAL[4][2] = -1;
310 fracHCAL[5][2] = (ig.
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HO12"))->getFloatValue();
312 else fracHCAL[5][2] = -1;
316 fracHCAL[6][2] = (ig.
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HFlumi"))->getFloatValue();
318 else fracHCAL[6][2] = -1;
320 for (
int ii=0;
ii<7;
ii++) {
337 if (
debug_>0)
std::cout <<
"<HcalDataCertification::MEfilled= " << std::endl;
HcalDataCertification(const edm::ParameterSet &)
T getUntrackedParameter(std::string const &, T const &) const
void bookHistograms(DQMStore::IBooker &)
void setBinContent(int binx, double content)
set content of bin (1-D)
virtual void dqmEndLuminosityBlock(DQMStore::IBooker &ib, DQMStore::IGetter &ig, const edm::LuminosityBlock &, const edm::EventSetup &) override
void setAxisRange(double xmin, double xmax, int axis=1)
set x-, y- or z-axis range (axis=1, 2, 3 respectively)
MonitorElement * get(const std::string &path)
#define DEFINE_FWK_MODULE(type)
const std::string & pwd(void)
MonitorElement * CertificationSummary
MonitorElement * Hcal_HO0
void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
virtual void dqmEndJob(DQMStore::IBooker &ib, DQMStore::IGetter &ig) override
MonitorElement * Hcal_HO12
MonitorElement * CertificationSummaryMap
MonitorElement * Hcal_HFlumi
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
void setCurrentFolder(const std::string &fullpath)
void CertifyHcal(DQMStore::IBooker &, DQMStore::IGetter &)
MonitorElement * bookFloat(Args &&...args)