24 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::Creating SiPixelCertification ";
30 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::Deleting SiPixelCertification ";
34 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::beginJob ";
42 CertificationPixel->
Fill(1.);
43 CertificationBarrel->Fill(1.);
44 CertificationEndcap->Fill(1.);
49 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::beginLuminosityBlock ";
55 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::endLuminosityBlock ";
57 float dcsFrac = (
dbe_->
get(
"Pixel/EventInfo/DCSSummary"))->getFloatValue();
58 float daqFrac = (
dbe_->
get(
"Pixel/EventInfo/DAQSummary"))->getFloatValue();
59 float dqmFrac = (
dbe_->
get(
"Pixel/EventInfo/reportSummary"))->getFloatValue();
60 float pixel_all =
std::min(dcsFrac,daqFrac);
61 pixel_all =
std::min(pixel_all,dqmFrac);
63 CertificationPixel =
dbe_->
get(
"Pixel/EventInfo/CertificationSummary");
64 if(CertificationPixel) CertificationPixel->
Fill(pixel_all);
66 dcsFrac = (
dbe_->
get(
"Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
67 daqFrac = (
dbe_->
get(
"Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
68 dqmFrac = (
dbe_->
get(
"Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
69 float pixel_barrel =
std::min(dcsFrac,daqFrac);
70 pixel_barrel =
std::min(pixel_barrel,dqmFrac);
72 CertificationBarrel =
dbe_->
get(
"Pixel/EventInfo/CertificationContents/PixelBarrelFraction");
73 if(CertificationBarrel) CertificationBarrel->
Fill(pixel_barrel);
75 dcsFrac = (
dbe_->
get(
"Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
76 daqFrac = (
dbe_->
get(
"Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
77 dqmFrac = (
dbe_->
get(
"Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
78 float pixel_endcap =
std::min(dcsFrac,daqFrac);
79 pixel_endcap =
std::min(pixel_endcap,dqmFrac);
81 CertificationEndcap =
dbe_->
get(
"Pixel/EventInfo/CertificationContents/PixelEndcapFraction");
82 if(CertificationEndcap) CertificationEndcap->
Fill(pixel_endcap);
89 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::endRun ";
91 float dcsFrac = (
dbe_->
get(
"Pixel/EventInfo/DCSSummary"))->getFloatValue();
92 float daqFrac = (
dbe_->
get(
"Pixel/EventInfo/DAQSummary"))->getFloatValue();
93 float dqmFrac = (
dbe_->
get(
"Pixel/EventInfo/reportSummary"))->getFloatValue();
94 float pixel_all =
std::min(dcsFrac,daqFrac);
95 pixel_all =
std::min(pixel_all,dqmFrac);
97 CertificationPixel =
dbe_->
get(
"Pixel/EventInfo/CertificationSummary");
98 if(CertificationPixel) CertificationPixel->
Fill(pixel_all);
100 dcsFrac = (
dbe_->
get(
"Pixel/EventInfo/DCSContents/PixelBarrelFraction"))->getFloatValue();
101 daqFrac = (
dbe_->
get(
"Pixel/EventInfo/DAQContents/PixelBarrelFraction"))->getFloatValue();
102 dqmFrac = (
dbe_->
get(
"Pixel/EventInfo/reportSummaryContents/PixelBarrelFraction"))->getFloatValue();
103 float pixel_barrel =
std::min(dcsFrac,daqFrac);
104 pixel_barrel =
std::min(pixel_barrel,dqmFrac);
106 CertificationBarrel =
dbe_->
get(
"Pixel/EventInfo/CertificationContents/PixelBarrelFraction");
107 if(CertificationBarrel) CertificationBarrel->
Fill(pixel_barrel);
109 dcsFrac = (
dbe_->
get(
"Pixel/EventInfo/DCSContents/PixelEndcapFraction"))->getFloatValue();
110 daqFrac = (
dbe_->
get(
"Pixel/EventInfo/DAQContents/PixelEndcapFraction"))->getFloatValue();
111 dqmFrac = (
dbe_->
get(
"Pixel/EventInfo/reportSummaryContents/PixelEndcapFraction"))->getFloatValue();
112 float pixel_endcap =
std::min(dcsFrac,daqFrac);
113 pixel_endcap =
std::min(pixel_endcap,dqmFrac);
115 CertificationEndcap =
dbe_->
get(
"Pixel/EventInfo/CertificationContents/PixelEndcapFraction");
116 if(CertificationEndcap) CertificationEndcap->
Fill(pixel_endcap);
122 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::endJob ";
128 edm::LogInfo(
"SiPixelCertification") <<
"SiPixelCertification::analyze ";
MonitorElement * bookFloat(const char *name)
Book float.
MonitorElement * get(const std::string &path) const
get ME from full pathname (e.g. "my/long/dir/my_histo")
virtual void analyze(const edm::Event &, const edm::EventSetup &)
virtual void endRun(const edm::Run &, const edm::EventSetup &)
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
void setCurrentFolder(const std::string &fullpath)
SiPixelCertification(const edm::ParameterSet &)