116 if (
debug_>0)
std::cout<<
"<HcalDataCertification> beginJob"<< std::endl;
119 std::string currDir =
dbe_->
pwd();
120 if (
debug_>0)
std::cout <<
"--- Current Directory " << currDir << std::endl;
122 if (
debug_>0)
std::cout <<
"found " << mes.size() <<
" monitoring elements:" << std::endl;
154 if (
debug_>0)
std::cout <<
"<HcalDataCertification> endJob " << std::endl;
161 if (
debug_>0)
std::cout<<
"<HcalDataCertification> beginLuminosityBlock"<<std::endl;
179 float hcalFrac,reportFrac,dcsFrac,daqFrac;
180 float fracHCAL[7][3];
185 std::string currDir =
dbe_->
pwd();
186 std::cout <<
"<HcalDataCertification::endLuminosityBlock> --- Current Directory " << currDir << std::endl;
188 std::cout <<
"found " << mes.size() <<
" monitoring elements:" << std::endl;
204 else reportFrac = -1;
211 std::cout<<
"dcsFrac= "<<dcsFrac<<std::endl;
212 std::cout<<
"daqFrac= "<<daqFrac<<std::endl;
213 std::cout<<
"reportFrac= "<<reportFrac<<std::endl;
214 std::cout<<
"CertificationSummary= "<<hcalFrac<<std::endl;
220 fracHCAL[0][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HB"))->getFloatValue();
222 else fracHCAL[0][0] = -1;
225 fracHCAL[1][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HE"))->getFloatValue();
227 else fracHCAL[1][0] = -1;
230 fracHCAL[2][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO"))->getFloatValue();
232 else fracHCAL[2][0] = -1;
235 fracHCAL[3][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HF"))->getFloatValue();
237 else fracHCAL[3][0] = -1;
240 fracHCAL[4][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO0"))->getFloatValue();
242 else fracHCAL[4][0] = -1;
245 fracHCAL[5][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HO12"))->getFloatValue();
247 else fracHCAL[5][0] = -1;
251 fracHCAL[6][0] = (
dbe_->
get(
rootFolder_+
"/EventInfo/reportSummaryContents/Hcal_HFlumi"))->getFloatValue();
253 else fracHCAL[6][0] = -1;
258 fracHCAL[0][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HB"))->getFloatValue();
260 else fracHCAL[0][1] = -1;
263 fracHCAL[1][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HE"))->getFloatValue();
265 else fracHCAL[1][1] = -1;
268 fracHCAL[2][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HO"))->getFloatValue();
270 else fracHCAL[2][1] = -1;
273 fracHCAL[3][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HF"))->getFloatValue();
275 else fracHCAL[3][1] = -1;
278 fracHCAL[4][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HO0"))->getFloatValue();
280 else fracHCAL[4][1] = -1;
283 fracHCAL[5][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HO12"))->getFloatValue();
285 else fracHCAL[5][1] = -1;
288 fracHCAL[6][1] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DAQContents/Hcal_HFlumi"))->getFloatValue();
290 else fracHCAL[6][1] = -1;
295 fracHCAL[0][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HB"))->getFloatValue();
297 else fracHCAL[0][2] = -1;
300 fracHCAL[1][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HE"))->getFloatValue();
302 else fracHCAL[1][2] = -1;
305 fracHCAL[2][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HO"))->getFloatValue();
307 else fracHCAL[2][2] = -1;
310 fracHCAL[3][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HF"))->getFloatValue();
312 else fracHCAL[3][2] = -1;
315 fracHCAL[4][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HO0"))->getFloatValue();
317 else fracHCAL[4][2] = -1;
320 fracHCAL[5][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HO12"))->getFloatValue();
322 else fracHCAL[5][2] = -1;
326 fracHCAL[6][2] = (
dbe_->
get(
rootFolder_+
"/EventInfo/DCSContents/Hcal_HFlumi"))->getFloatValue();
328 else fracHCAL[6][2] = -1;
330 for (
int ii=0;ii<7;ii++) {
332 for (
int jj=0; jj<2;jj++) certHcal[ii] =
TMath::Min(certHcal[ii],fracHCAL[ii][jj]);
334 if (
debug_>0)
std::cout<<
"certFrac["<<ii<<
"]= "<<certHcal[ii]<<std::endl;
347 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)
void endRun(const edm::Run &r, const edm::EventSetup &c)
#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)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
MonitorElement * bookFloat(const char *name)
Book float.
std::vector< MonitorElement * > getAllContents(const std::string &path) const
MonitorElement * Hcal_HO12
MonitorElement * CertificationSummaryMap
MonitorElement * Hcal_HFlumi
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
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