54 virtual void endJob()
override ;
115 if (
debug_>0)
std::cout<<
"<HcalDataCertification> beginJob"<< std::endl;
119 if (
debug_>0)
std::cout <<
"--- Current Directory " << currDir << std::endl;
121 if (
debug_>0)
std::cout <<
"found " << mes.size() <<
" monitoring elements:" << std::endl;
153 if (
debug_>0)
std::cout <<
"<HcalDataCertification> endJob " << std::endl;
160 if (
debug_>0)
std::cout<<
"<HcalDataCertification> beginLuminosityBlock"<<std::endl;
178 float hcalFrac,reportFrac,dcsFrac,daqFrac;
179 float fracHCAL[7][3];
185 std::cout <<
"<HcalDataCertification::endLuminosityBlock> --- Current Directory " << currDir << std::endl;
187 std::cout <<
"found " << mes.size() <<
" monitoring elements:" << std::endl;
203 else reportFrac = -1;
210 std::cout<<
"dcsFrac= "<<dcsFrac<<std::endl;
211 std::cout<<
"daqFrac= "<<daqFrac<<std::endl;
212 std::cout<<
"reportFrac= "<<reportFrac<<std::endl;
213 std::cout<<
"CertificationSummary= "<<hcalFrac<<std::endl;
219 fracHCAL[0][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HB"))->getFloatValue();
221 else fracHCAL[0][0] = -1;
224 fracHCAL[1][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HE"))->getFloatValue();
226 else fracHCAL[1][0] = -1;
229 fracHCAL[2][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO"))->getFloatValue();
231 else fracHCAL[2][0] = -1;
234 fracHCAL[3][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HF"))->getFloatValue();
236 else fracHCAL[3][0] = -1;
239 fracHCAL[4][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO0"))->getFloatValue();
241 else fracHCAL[4][0] = -1;
244 fracHCAL[5][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO12"))->getFloatValue();
246 else fracHCAL[5][0] = -1;
250 fracHCAL[6][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HFlumi"))->getFloatValue();
252 else fracHCAL[6][0] = -1;
257 fracHCAL[0][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HB"))->getFloatValue();
259 else fracHCAL[0][1] = -1;
262 fracHCAL[1][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HE"))->getFloatValue();
264 else fracHCAL[1][1] = -1;
267 fracHCAL[2][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HO"))->getFloatValue();
269 else fracHCAL[2][1] = -1;
272 fracHCAL[3][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HF"))->getFloatValue();
274 else fracHCAL[3][1] = -1;
277 fracHCAL[4][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HO0"))->getFloatValue();
279 else fracHCAL[4][1] = -1;
282 fracHCAL[5][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HO12"))->getFloatValue();
284 else fracHCAL[5][1] = -1;
287 fracHCAL[6][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HFlumi"))->getFloatValue();
289 else fracHCAL[6][1] = -1;
294 fracHCAL[0][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HB"))->getFloatValue();
296 else fracHCAL[0][2] = -1;
299 fracHCAL[1][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HE"))->getFloatValue();
301 else fracHCAL[1][2] = -1;
304 fracHCAL[2][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HO"))->getFloatValue();
306 else fracHCAL[2][2] = -1;
309 fracHCAL[3][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HF"))->getFloatValue();
311 else fracHCAL[3][2] = -1;
314 fracHCAL[4][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HO0"))->getFloatValue();
316 else fracHCAL[4][2] = -1;
319 fracHCAL[5][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HO12"))->getFloatValue();
321 else fracHCAL[5][2] = -1;
325 fracHCAL[6][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HFlumi"))->getFloatValue();
327 else fracHCAL[6][2] = -1;
329 for (
int ii=0;
ii<7;
ii++) {
346 if (
debug_>0)
std::cout <<
"<HcalDataCertification::MEfilled= " << std::endl;
HcalDataCertification(const edm::ParameterSet &)
T getUntrackedParameter(std::string const &, T const &) const
void setBinContent(int binx, double content)
set content of bin (1-D)
void setAxisRange(double xmin, double xmax, int axis=1)
set x-, y- or z-axis range (axis=1, 2, 3 respectively)
#define DEFINE_FWK_MODULE(type)
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)
MonitorElement * bookFloat(const char *name)
Book float.
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< MonitorElement * > getAllContents(const std::string &path, uint32_t runNumber=0, uint32_t lumi=0) const
MonitorElement * Hcal_HO12
MonitorElement * CertificationSummaryMap
virtual void beginJob() override
MonitorElement * Hcal_HFlumi
void endRun(const edm::Run &r, const edm::EventSetup &c) override
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
virtual void endJob() override
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setCurrentFolder(const std::string &fullpath)
const std::string & pwd(void) const
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) override