13 #include <TProfile2D.h>
92 cout <<
"[TriggerDQM]: ending... " << endl;
104 verbose_ = parameters_.getUntrackedParameter<
bool>(
"verbose",
false);
106 prescaleLS_ = parameters_.getUntrackedParameter<
int>(
"prescaleLS", -1);
108 cout <<
"DQM lumi section prescale = " << prescaleLS_ <<
" lumi section(s)" << endl;
110 prescaleEvt_ = parameters_.getUntrackedParameter<
int>(
"prescaleEvt", -1);
112 cout <<
"DQM event prescale = " << prescaleEvt_ <<
" events(s)" << endl;
120 cout <<
"[TriggerDQM]: Begin Job" << endl;
129 reportSummary_->
Fill(1);
132 CertificationSummary_ =
dbe_->
bookFloat(
"CertificationSummary");
134 if (CertificationSummary_)
135 CertificationSummary_->
Fill(1);
139 reportSummary_->Fill(1);
146 reportSummaryMap_ =
dbe_->
book2D(
"reportSummaryMap",
"reportSummaryMap", 1, 1, 2, 6, 1, 7);
148 reportSummaryMap_->setAxisTitle(
"", 2);
149 reportSummaryMap_->setBinLabel(1,
"Muon", 2);
150 reportSummaryMap_->setBinLabel(2,
"Electron", 2);
151 reportSummaryMap_->setBinLabel(3,
"Photon", 2);
152 reportSummaryMap_->setBinLabel(4,
"JetMET", 2);
153 reportSummaryMap_->setBinLabel(5,
"BJet", 2);
154 reportSummaryMap_->setBinLabel(6,
"Tau", 2);
155 reportSummaryMap_->setBinLabel(1,
" ", 1);
157 CertificationSummaryMap_ =
dbe_->
book2D(
"CertificationSummaryMap",
"CertificationSummaryMap", 1, 1, 2, 6, 1, 7);
159 CertificationSummaryMap_->setAxisTitle(
"", 2);
160 CertificationSummaryMap_->setBinLabel(1,
"Muon", 2);
161 CertificationSummaryMap_->setBinLabel(2,
"Electron", 2);
162 CertificationSummaryMap_->setBinLabel(3,
"Photon", 2);
163 CertificationSummaryMap_->setBinLabel(4,
"JetMET", 2);
164 CertificationSummaryMap_->setBinLabel(5,
"BJet", 2);
165 CertificationSummaryMap_->setBinLabel(6,
"Tau", 2);
166 CertificationSummaryMap_->setBinLabel(1,
" ", 1);
177 if (prescaleEvt_ < 1)
179 if (prescaleEvt_ > 0 && counterEvt_ % prescaleEvt_ != 0)
183 cout <<
"DQMOfflineHLTEventInfoClient::analyze" << endl;
188 float summarySum = 0;
189 float reportSummary = 0;
194 reportSummaryContent_.push_back(HLT_Muon);
198 reportSummaryContent_.push_back(HLT_Electron);
202 reportSummaryContent_.push_back(HLT_Photon);
206 reportSummaryContent_.push_back(HLT_Tau);
208 int nSubsystems = reportSummaryContent_.size();
210 for (
int m = 0;
m < nSubsystems;
m++) {
211 summarySum += (reportSummaryContent_[
m])->getFloatValue();
214 if (nSubsystems > 0) {
215 reportSummary = summarySum / nSubsystems;
221 reportSummary_->
Fill(reportSummary);
222 CertificationSummary_->Fill(reportSummary);
228 float electronValue = 1;
232 float photonValue = 1;
240 reportSummaryMap_->setBinContent(1, 1, muonValue);
241 reportSummaryMap_->setBinContent(1, 2, electronValue);
242 reportSummaryMap_->setBinContent(1, 3, photonValue);
243 reportSummaryMap_->setBinContent(1, 4, 1);
244 reportSummaryMap_->setBinContent(1, 5, 1);
245 reportSummaryMap_->setBinContent(1, 6, tauValue);
247 CertificationSummaryMap_->setBinContent(1, 1, muonValue);
248 CertificationSummaryMap_->setBinContent(1, 2, electronValue);
249 CertificationSummaryMap_->setBinContent(1, 3, photonValue);
250 CertificationSummaryMap_->setBinContent(1, 4, 1);
251 CertificationSummaryMap_->setBinContent(1, 5, 1);
252 CertificationSummaryMap_->setBinContent(1, 6, tauValue);