116 LogInfo(
"HLTMuonVal") <<
">>> EndRun (HLTOverallSummary) <<<" << std::endl;
119 LogInfo(
"HLTMuonVal") <<
"No dqmstore... skipping processing step" << endl;
123 std::vector<string> histoNameVector;
127 float defaultValueIfNotFound = 1.0;
134 muonQualityBit =
dbe_->
get(
"HLT_Muon");
136 if (!muonQualityBit) {
137 LogInfo(
"HLTMuonVal") <<
"Can't find muonQuality bit... making a bit, setting it to zero" << endl;
140 muonQualityBit->
Fill(defaultValueIfNotFound);
144 eleQualityBit =
dbe_->
get(
"HLT_Electron");
146 if (!eleQualityBit) {
147 LogInfo(
"HLTMuonVal") <<
"Can't find eleQuality bit... making a bit, setting it to zero" << endl;
150 eleQualityBit->
Fill(defaultValueIfNotFound);
154 photonQualityBit =
dbe_->
get(
"HLT_Photon");
156 if (!photonQualityBit) {
157 LogInfo(
"HLTMuonVal") <<
"Can't find photonQuality bit... making a bit, setting it to zero" << endl;
160 photonQualityBit->
Fill(defaultValueIfNotFound);
172 dbe_->
book2D(
"reportSummaryMap",
"HLT: ReportSummaryMap", 3, -0.5, 2.5, 1, -0.5, 0.5);
174 dbe_->
book2D(
"certificationSummaryMap",
"HLT: CertificationSummaryMap", 3, -0.5, 2.5, 1, -0.5, 0.5);
176 TH2* reportSummaryMapTH2 = reportSummaryMap->
getTH2F();
178 reportSummaryMapTH2->GetXaxis()->SetBinLabel(1,
"Muon");
179 reportSummaryMapTH2->GetXaxis()->SetBinLabel(2,
"Electron");
180 reportSummaryMapTH2->GetXaxis()->SetBinLabel(3,
"Photon");
182 reportSummaryMapTH2->GetYaxis()->SetBinLabel(1,
"Quality");
184 TH2* CertificationSummaryMapTH2 = CertificationSummaryMap->
getTH2F();
186 CertificationSummaryMapTH2->GetXaxis()->SetBinLabel(1,
"Muon");
187 CertificationSummaryMapTH2->GetXaxis()->SetBinLabel(2,
"Electron");
188 CertificationSummaryMapTH2->GetXaxis()->SetBinLabel(3,
"Photon");
189 CertificationSummaryMapTH2->GetYaxis()->SetBinLabel(1,
"Quality");
199 float hltOverallValue = 1.0;
201 if ((photonValue > 0.99) && (electronValue > 0.99) && (muonValue > 0.99)) {
202 hltOverallValue = 1.0;
205 hltOverallValue = 0.0;
208 hltQualityBit->
Fill(hltOverallValue);
210 unsigned int hltSummaryValue = 0x0;
212 unsigned int ELECTRON_MASK = 0x1;
213 unsigned int PHOTON_MASK = 0x2;
214 unsigned int MUON_MASK = 0x4;
216 if (electronValue > 0.99)
217 hltSummaryValue = hltSummaryValue | ELECTRON_MASK;
218 if (photonValue > 0.99)
219 hltSummaryValue = hltSummaryValue | PHOTON_MASK;
220 if (muonValue > 0.99)
221 hltSummaryValue = hltSummaryValue | MUON_MASK;
223 hltQualitySummaryWord->
Fill(hltSummaryValue);
225 reportSummaryMapTH2->SetBinContent(reportSummaryMapTH2->GetBin(1, 1), muonValue);
226 reportSummaryMapTH2->SetBinContent(reportSummaryMapTH2->GetBin(2, 1), electronValue);
227 reportSummaryMapTH2->SetBinContent(reportSummaryMapTH2->GetBin(3, 1), photonValue);
229 CertificationSummaryMapTH2->SetBinContent(CertificationSummaryMapTH2->GetBin(1, 1), muonValue);
230 CertificationSummaryMapTH2->SetBinContent(CertificationSummaryMapTH2->GetBin(2, 1), electronValue);
231 CertificationSummaryMapTH2->SetBinContent(CertificationSummaryMapTH2->GetBin(3, 1), photonValue);