23 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::Creating SiPixelCertification ";
28 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::Deleting SiPixelCertification ";
40 CertificationPixel = iBooker.
bookFloat(
"CertificationSummary");
42 CertificationBarrel = iBooker.
bookFloat(
"PixelBarrelFraction");
43 CertificationEndcap = iBooker.
bookFloat(
"PixelEndcapFraction");
45 CertificationPixel->
Fill(1.);
46 CertificationBarrel->Fill(1.);
47 CertificationEndcap->Fill(1.);
52 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::endLuminosityBlock ";
55 float dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSSummary"))->getFloatValue();
56 float daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQSummary"))->getFloatValue();
57 float dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummary"))->getFloatValue();
58 float pixel_all =
std::min(dcsFrac, daqFrac);
59 pixel_all =
std::min(pixel_all, dqmFrac);
62 CertificationPixel = iGetter.
getElement(
"Pixel/EventInfo/CertificationSummary");
63 if (CertificationPixel)
64 CertificationPixel->
Fill(pixel_all);
66 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
67 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
68 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
69 float pixel_barrel =
std::min(dcsFrac, daqFrac);
70 pixel_barrel =
std::min(pixel_barrel, dqmFrac);
73 CertificationBarrel = iGetter.
getElement(
"Pixel/EventInfo/CertificationContents/PixelBarrelFraction");
74 if (CertificationBarrel)
75 CertificationBarrel->
Fill(pixel_barrel);
77 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
78 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
79 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
80 float pixel_endcap =
std::min(dcsFrac, daqFrac);
81 pixel_endcap =
std::min(pixel_endcap, dqmFrac);
84 CertificationEndcap = iGetter.
getElement(
"Pixel/EventInfo/CertificationContents/PixelEndcapFraction");
85 if (CertificationEndcap)
86 CertificationEndcap->
Fill(pixel_endcap);
91 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::endRun ";
94 float dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSSummary"))->getFloatValue();
95 float daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQSummary"))->getFloatValue();
96 float dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummary"))->getFloatValue();
97 float pixel_all =
std::min(dcsFrac, daqFrac);
98 pixel_all =
std::min(pixel_all, dqmFrac);
101 if (CertificationPixel)
102 CertificationPixel->Fill(pixel_all);
104 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
105 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
106 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
107 float pixel_barrel =
std::min(dcsFrac, daqFrac);
108 pixel_barrel =
std::min(pixel_barrel, dqmFrac);
111 if (CertificationBarrel)
112 CertificationBarrel->Fill(pixel_barrel);
114 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
115 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
116 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
117 float pixel_endcap =
std::min(dcsFrac, daqFrac);
118 pixel_endcap =
std::min(pixel_endcap, dqmFrac);
121 if (CertificationEndcap)
122 CertificationEndcap->Fill(pixel_endcap);
MonitorElement * getElement(std::string const &path)
MonitorElement * bookFloat(TString const &name)
void setCurrentFolder(std::string const &fullpath)
~SiPixelCertification() override
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, const edm::LuminosityBlock &, const edm::EventSetup &) override
SiPixelCertification(const edm::ParameterSet &)