24 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::Creating SiPixelCertification ";
29 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::Deleting SiPixelCertification ";
38 CertificationPixel= iBooker.
bookFloat(
"CertificationSummary");
40 CertificationBarrel= iBooker.
bookFloat(
"PixelBarrelFraction");
41 CertificationEndcap= iBooker.
bookFloat(
"PixelEndcapFraction");
43 CertificationPixel->
Fill(1.);
44 CertificationBarrel->Fill(1.);
45 CertificationEndcap->Fill(1.);
50 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::endLuminosityBlock ";
52 float dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSSummary"))->getFloatValue();
53 float daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQSummary"))->getFloatValue();
54 float dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummary"))->getFloatValue();
55 float pixel_all =
std::min(dcsFrac,daqFrac);
56 pixel_all =
std::min(pixel_all,dqmFrac);
58 CertificationPixel = iGetter.
getElement(
"Pixel/EventInfo/CertificationSummary");
59 if(CertificationPixel) CertificationPixel->
Fill(pixel_all);
61 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
62 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
63 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
64 float pixel_barrel =
std::min(dcsFrac,daqFrac);
65 pixel_barrel =
std::min(pixel_barrel,dqmFrac);
67 CertificationBarrel = iGetter.
getElement(
"Pixel/EventInfo/CertificationContents/PixelBarrelFraction");
68 if(CertificationBarrel) CertificationBarrel->
Fill(pixel_barrel);
70 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
71 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
72 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
73 float pixel_endcap =
std::min(dcsFrac,daqFrac);
74 pixel_endcap =
std::min(pixel_endcap,dqmFrac);
76 CertificationEndcap = iGetter.
getElement(
"Pixel/EventInfo/CertificationContents/PixelEndcapFraction");
77 if(CertificationEndcap) CertificationEndcap->
Fill(pixel_endcap);
84 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::endRun ";
86 float dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSSummary"))->getFloatValue();
87 float daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQSummary"))->getFloatValue();
88 float dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummary"))->getFloatValue();
89 float pixel_all =
std::min(dcsFrac,daqFrac);
90 pixel_all =
std::min(pixel_all,dqmFrac);
92 if(CertificationPixel) CertificationPixel->Fill(pixel_all);
94 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
95 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
96 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
97 float pixel_barrel =
std::min(dcsFrac,daqFrac);
98 pixel_barrel =
std::min(pixel_barrel,dqmFrac);
100 if(CertificationBarrel) CertificationBarrel->Fill(pixel_barrel);
102 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
103 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
104 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
105 float pixel_endcap =
std::min(dcsFrac,daqFrac);
106 pixel_endcap =
std::min(pixel_endcap,dqmFrac);
108 if(CertificationEndcap) CertificationEndcap->Fill(pixel_endcap);
MonitorElement * getElement(const std::string &path)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
void setCurrentFolder(const std::string &fullpath)
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, const edm::LuminosityBlock &, const edm::EventSetup &) override
MonitorElement * bookFloat(Args &&...args)
SiPixelCertification(const edm::ParameterSet &)