13 #include <TProfile2D.h> 89 cout <<
"[TriggerDQM]: ending... " << endl;
101 verbose_ = parameters_.getUntrackedParameter<
bool>(
"verbose",
false);
103 prescaleLS_ = parameters_.getUntrackedParameter<
int>(
"prescaleLS", -1);
105 cout <<
"DQM lumi section prescale = " << prescaleLS_ <<
" lumi section(s)" << endl;
107 prescaleEvt_ = parameters_.getUntrackedParameter<
int>(
"prescaleEvt", -1);
109 cout <<
"DQM event prescale = " << prescaleEvt_ <<
" events(s)" << endl;
117 cout <<
"[TriggerDQM]: Begin Job" << endl;
121 dbe_->setCurrentFolder(
"HLT/EventInfo");
123 reportSummary_ = dbe_->bookFloat(
"reportSummary");
126 reportSummary_->Fill(1);
129 CertificationSummary_ = dbe_->bookFloat(
"CertificationSummary");
131 if (CertificationSummary_)
132 CertificationSummary_->Fill(1);
136 reportSummary_->Fill(1);
141 dbe_->setCurrentFolder(
"HLT/EventInfo");
143 reportSummaryMap_ = dbe_->book2D(
"reportSummaryMap",
"reportSummaryMap", 1, 1, 2, 6, 1, 7);
144 reportSummaryMap_->setAxisTitle(
"", 1);
145 reportSummaryMap_->setAxisTitle(
"", 2);
146 reportSummaryMap_->setBinLabel(1,
"Muon", 2);
147 reportSummaryMap_->setBinLabel(2,
"Electron", 2);
148 reportSummaryMap_->setBinLabel(3,
"Photon", 2);
149 reportSummaryMap_->setBinLabel(4,
"JetMET", 2);
150 reportSummaryMap_->setBinLabel(5,
"BJet", 2);
151 reportSummaryMap_->setBinLabel(6,
"Tau", 2);
152 reportSummaryMap_->setBinLabel(1,
" ", 1);
154 CertificationSummaryMap_ = dbe_->book2D(
"CertificationSummaryMap",
"CertificationSummaryMap", 1, 1, 2, 6, 1, 7);
155 CertificationSummaryMap_->setAxisTitle(
"", 1);
156 CertificationSummaryMap_->setAxisTitle(
"", 2);
157 CertificationSummaryMap_->setBinLabel(1,
"Muon", 2);
158 CertificationSummaryMap_->setBinLabel(2,
"Electron", 2);
159 CertificationSummaryMap_->setBinLabel(3,
"Photon", 2);
160 CertificationSummaryMap_->setBinLabel(4,
"JetMET", 2);
161 CertificationSummaryMap_->setBinLabel(5,
"BJet", 2);
162 CertificationSummaryMap_->setBinLabel(6,
"Tau", 2);
163 CertificationSummaryMap_->setBinLabel(1,
" ", 1);
174 if (prescaleEvt_ < 1)
176 if (prescaleEvt_ > 0 && counterEvt_ % prescaleEvt_ != 0)
180 cout <<
"DQMOfflineHLTEventInfoClient::analyze" << endl;
185 float summarySum = 0;
186 float reportSummary = 0;
188 dbe_->setCurrentFolder(
"HLT/EventInfo/reportSummaryContents");
191 reportSummaryContent_.push_back(HLT_Muon);
195 reportSummaryContent_.push_back(HLT_Electron);
199 reportSummaryContent_.push_back(HLT_Photon);
203 reportSummaryContent_.push_back(HLT_Tau);
205 int nSubsystems = reportSummaryContent_.size();
207 for (
int m = 0;
m < nSubsystems;
m++) {
208 summarySum += (reportSummaryContent_[
m])->getFloatValue();
211 if (nSubsystems > 0) {
212 reportSummary = summarySum / nSubsystems;
218 reportSummary_->
Fill(reportSummary);
219 CertificationSummary_->Fill(reportSummary);
225 float electronValue = 1;
229 float photonValue = 1;
237 reportSummaryMap_->setBinContent(1, 1, muonValue);
238 reportSummaryMap_->setBinContent(1, 2, electronValue);
239 reportSummaryMap_->setBinContent(1, 3, photonValue);
240 reportSummaryMap_->setBinContent(1, 4, 1);
241 reportSummaryMap_->setBinContent(1, 5, 1);
242 reportSummaryMap_->setBinContent(1, 6, tauValue);
244 CertificationSummaryMap_->setBinContent(1, 1, muonValue);
245 CertificationSummaryMap_->setBinContent(1, 2, electronValue);
246 CertificationSummaryMap_->setBinContent(1, 3, photonValue);
247 CertificationSummaryMap_->setBinContent(1, 4, 1);
248 CertificationSummaryMap_->setBinContent(1, 5, 1);
249 CertificationSummaryMap_->setBinContent(1, 6, tauValue);
static AlgebraicMatrix initialize()
void beginRun(const edm::Run &r, const edm::EventSetup &c) override
BeginRun.
void endRun(const edm::Run &r, const edm::EventSetup &c) override
EndRun.
DQMOfflineHLTEventInfoClient(const edm::ParameterSet &ps)
Constructor.
virtual double getFloatValue() const
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Fake Analyze.
void beginJob() override
BeginJob.
~DQMOfflineHLTEventInfoClient() override
Destructor.