13 #include <TProfile2D.h> 83 usesResource(
"DQMStore");
90 cout <<
"[TriggerDQM]: ending... " << endl;
102 verbose_ = parameters_.getUntrackedParameter<
bool>(
"verbose",
false);
104 prescaleLS_ = parameters_.getUntrackedParameter<
int>(
"prescaleLS", -1);
106 cout <<
"DQM lumi section prescale = " << prescaleLS_ <<
" lumi section(s)" << endl;
108 prescaleEvt_ = parameters_.getUntrackedParameter<
int>(
"prescaleEvt", -1);
110 cout <<
"DQM event prescale = " << prescaleEvt_ <<
" events(s)" << endl;
118 cout <<
"[TriggerDQM]: Begin Job" << endl;
122 dbe_->setCurrentFolder(
"HLT/EventInfo");
124 reportSummary_ = dbe_->bookFloat(
"reportSummary");
127 reportSummary_->Fill(1);
130 CertificationSummary_ = dbe_->bookFloat(
"CertificationSummary");
132 if (CertificationSummary_)
133 CertificationSummary_->Fill(1);
137 reportSummary_->Fill(1);
142 dbe_->setCurrentFolder(
"HLT/EventInfo");
144 reportSummaryMap_ = dbe_->book2D(
"reportSummaryMap",
"reportSummaryMap", 1, 1, 2, 6, 1, 7);
145 reportSummaryMap_->setAxisTitle(
"", 1);
146 reportSummaryMap_->setAxisTitle(
"", 2);
147 reportSummaryMap_->setBinLabel(1,
"Muon", 2);
148 reportSummaryMap_->setBinLabel(2,
"Electron", 2);
149 reportSummaryMap_->setBinLabel(3,
"Photon", 2);
150 reportSummaryMap_->setBinLabel(4,
"JetMET", 2);
151 reportSummaryMap_->setBinLabel(5,
"BJet", 2);
152 reportSummaryMap_->setBinLabel(6,
"Tau", 2);
153 reportSummaryMap_->setBinLabel(1,
" ", 1);
155 CertificationSummaryMap_ = dbe_->book2D(
"CertificationSummaryMap",
"CertificationSummaryMap", 1, 1, 2, 6, 1, 7);
156 CertificationSummaryMap_->setAxisTitle(
"", 1);
157 CertificationSummaryMap_->setAxisTitle(
"", 2);
158 CertificationSummaryMap_->setBinLabel(1,
"Muon", 2);
159 CertificationSummaryMap_->setBinLabel(2,
"Electron", 2);
160 CertificationSummaryMap_->setBinLabel(3,
"Photon", 2);
161 CertificationSummaryMap_->setBinLabel(4,
"JetMET", 2);
162 CertificationSummaryMap_->setBinLabel(5,
"BJet", 2);
163 CertificationSummaryMap_->setBinLabel(6,
"Tau", 2);
164 CertificationSummaryMap_->setBinLabel(1,
" ", 1);
175 if (prescaleEvt_ < 1)
177 if (prescaleEvt_ > 0 && counterEvt_ % prescaleEvt_ != 0)
181 cout <<
"DQMOfflineHLTEventInfoClient::analyze" << endl;
186 float summarySum = 0;
187 float reportSummary = 0;
189 dbe_->setCurrentFolder(
"HLT/EventInfo/reportSummaryContents");
192 reportSummaryContent_.push_back(HLT_Muon);
196 reportSummaryContent_.push_back(HLT_Electron);
200 reportSummaryContent_.push_back(HLT_Photon);
204 reportSummaryContent_.push_back(HLT_Tau);
206 int nSubsystems = reportSummaryContent_.size();
208 for (
int m = 0;
m < nSubsystems;
m++) {
209 summarySum += (reportSummaryContent_[
m])->getFloatValue();
212 if (nSubsystems > 0) {
213 reportSummary = summarySum / nSubsystems;
219 reportSummary_->
Fill(reportSummary);
220 CertificationSummary_->Fill(reportSummary);
226 float electronValue = 1;
230 float photonValue = 1;
238 reportSummaryMap_->setBinContent(1, 1, muonValue);
239 reportSummaryMap_->setBinContent(1, 2, electronValue);
240 reportSummaryMap_->setBinContent(1, 3, photonValue);
241 reportSummaryMap_->setBinContent(1, 4, 1);
242 reportSummaryMap_->setBinContent(1, 5, 1);
243 reportSummaryMap_->setBinContent(1, 6, tauValue);
245 CertificationSummaryMap_->setBinContent(1, 1, muonValue);
246 CertificationSummaryMap_->setBinContent(1, 2, electronValue);
247 CertificationSummaryMap_->setBinContent(1, 3, photonValue);
248 CertificationSummaryMap_->setBinContent(1, 4, 1);
249 CertificationSummaryMap_->setBinContent(1, 5, 1);
250 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
#define DEFINE_FWK_MODULE(type)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
Fake Analyze.
void beginJob() override
BeginJob.
~DQMOfflineHLTEventInfoClient() override
Destructor.