24 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::Creating SiPixelCertification ";
29 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::Deleting SiPixelCertification ";
41 CertificationPixel = iBooker.
bookFloat(
"CertificationSummary");
43 CertificationBarrel = iBooker.
bookFloat(
"PixelBarrelFraction");
44 CertificationEndcap = iBooker.
bookFloat(
"PixelEndcapFraction");
46 CertificationPixel->
Fill(1.);
47 CertificationBarrel->Fill(1.);
48 CertificationEndcap->Fill(1.);
53 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::endLuminosityBlock ";
56 float dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSSummary"))->getFloatValue();
57 float daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQSummary"))->getFloatValue();
58 float dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummary"))->getFloatValue();
59 float pixel_all =
std::min(dcsFrac, daqFrac);
60 pixel_all =
std::min(pixel_all, dqmFrac);
63 CertificationPixel = iGetter.
getElement(
"Pixel/EventInfo/CertificationSummary");
64 if (CertificationPixel)
65 CertificationPixel->
Fill(pixel_all);
67 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
68 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
69 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
70 float pixel_barrel =
std::min(dcsFrac, daqFrac);
71 pixel_barrel =
std::min(pixel_barrel, dqmFrac);
74 CertificationBarrel = iGetter.
getElement(
"Pixel/EventInfo/CertificationContents/PixelBarrelFraction");
75 if (CertificationBarrel)
76 CertificationBarrel->
Fill(pixel_barrel);
78 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
79 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
80 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
81 float pixel_endcap =
std::min(dcsFrac, daqFrac);
82 pixel_endcap =
std::min(pixel_endcap, dqmFrac);
85 CertificationEndcap = iGetter.
getElement(
"Pixel/EventInfo/CertificationContents/PixelEndcapFraction");
86 if (CertificationEndcap)
87 CertificationEndcap->
Fill(pixel_endcap);
92 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::endRun ";
95 float dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSSummary"))->getFloatValue();
96 float daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQSummary"))->getFloatValue();
97 float dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummary"))->getFloatValue();
98 float pixel_all =
std::min(dcsFrac, daqFrac);
99 pixel_all =
std::min(pixel_all, dqmFrac);
102 if (CertificationPixel)
103 CertificationPixel->Fill(pixel_all);
105 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
106 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
107 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
108 float pixel_barrel =
std::min(dcsFrac, daqFrac);
109 pixel_barrel =
std::min(pixel_barrel, dqmFrac);
112 if (CertificationBarrel)
113 CertificationBarrel->Fill(pixel_barrel);
115 dcsFrac = (iGetter.
getElement(
"Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
116 daqFrac = (iGetter.
getElement(
"Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
117 dqmFrac = (iGetter.
getElement(
"Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
118 float pixel_endcap =
std::min(dcsFrac, daqFrac);
119 pixel_endcap =
std::min(pixel_endcap, dqmFrac);
122 if (CertificationEndcap)
123 CertificationEndcap->Fill(pixel_endcap);
MonitorElement * getElement(std::string const &path)
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
MonitorElement * bookFloat(Args &&...args)
SiPixelCertification(const edm::ParameterSet &)