33 m_retrieveL1Extra(paramSet.getParameter<edm::
ParameterSet>(
"L1ExtraInputTags")),
34 m_dirName(paramSet.getUntrackedParameter(
"DirName", std::
string(
37 m_nrBxInEventGmt(paramSet.getParameter<int>(
"NrBxInEventGmt")),
38 m_nrBxInEventGct(paramSet.getParameter<int>(
"NrBxInEventGct")),
40 m_dbe(0), m_resetModule(
true), m_currentRun(-99),
53 <<
"\nWARNING: Number of bunch crossing to be monitored for GMT rounded to: "
55 <<
"\n The number must be an odd number!\n"
63 <<
"\nWARNING: Number of bunch crossing to be monitored for GCT rounded to: "
65 <<
"\n The number must be an odd number!\n"
85 edm::LogInfo(
"L1ExtraDQM") <<
"\n Unable to get DQMStore service.";
111 bool isL1Coll =
true;
117 int bxInEvent = iBxInEvent + (m_nrBxInEventGmt + 1) / 2
126 isL1Coll, bxInEvent);
138 bool isL1Coll =
true;
144 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
153 isL1Coll, bxInEvent);
164 bool isL1Coll =
true;
170 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
179 isL1Coll, bxInEvent);
190 bool isL1Coll =
true;
196 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
205 isL1Coll, bxInEvent);
217 bool isL1Coll =
true;
223 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
232 isL1Coll, bxInEvent);
243 bool isL1Coll =
true;
249 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
258 isL1Coll, bxInEvent);
266 bool isL1Coll =
true;
272 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
286 bool bookEta =
false;
288 bool isL1Coll =
true;
294 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
299 isL1Coll, bxInEvent);
308 bool isL1Coll =
true;
314 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
327 bool bookEta =
false;
329 bool isL1Coll =
true;
335 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
340 isL1Coll, bxInEvent);
348 bool isL1Coll =
true;
354 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
361 isL1Coll, bxInEvent);
370 bool isL1Coll =
true;
376 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
383 isL1Coll, bxInEvent);
412 std::vector<L1GtObject> l1Obj;
419 int nrMonElements = 5;
431 int bxInEventHex = (bxInEvent+ 16) % 16;
433 std::stringstream ss;
435 ss << std::uppercase << std::hex << bxInEventHex;
436 ss >> bxInEventHexString;
440 + bxInEventHexString);
450 l1Obj.push_back(
IsoEG);
461 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
463 int bxInEventHex = (bxInEvent+ 16) % 16;
465 std::stringstream ss;
467 ss << std::uppercase << std::hex << bxInEventHex;
468 ss >> bxInEventHexString;
472 + bxInEventHexString);
492 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
494 int bxInEventHex = (bxInEvent+ 16) % 16;
496 std::stringstream ss;
498 ss << std::uppercase << std::hex << bxInEventHex;
499 ss >> bxInEventHexString;
503 + bxInEventHexString);
507 "L1_NoIsoEG", l1Obj);
523 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
525 int bxInEventHex = (bxInEvent+ 16) % 16;
527 std::stringstream ss;
529 ss << std::uppercase << std::hex << bxInEventHex;
530 ss >> bxInEventHexString;
534 + bxInEventHexString);
553 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
555 int bxInEventHex = (bxInEvent+ 16) % 16;
557 std::stringstream ss;
559 ss << std::uppercase << std::hex << bxInEventHex;
560 ss >> bxInEventHexString;
564 + bxInEventHexString);
583 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
585 int bxInEventHex = (bxInEvent+ 16) % 16;
587 std::stringstream ss;
589 ss << std::uppercase << std::hex << bxInEventHex;
590 ss >> bxInEventHexString;
594 + bxInEventHexString);
603 l1Obj.push_back(
ETT);
606 bool bookPhi =
false;
607 bool bookEta =
false;
617 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
619 int bxInEventHex = (bxInEvent+ 16) % 16;
621 std::stringstream ss;
623 ss << std::uppercase << std::hex << bxInEventHex;
624 ss >> bxInEventHexString;
628 + bxInEventHexString);
632 "L1_ETT", l1Obj, bookPhi, bookEta);
637 l1Obj.push_back(
ETM);
651 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
653 int bxInEventHex = (bxInEvent+ 16) % 16;
655 std::stringstream ss;
657 ss << std::uppercase << std::hex << bxInEventHex;
658 ss >> bxInEventHexString;
662 + bxInEventHexString);
666 "L1_ETM", l1Obj, bookPhi, bookEta);
671 l1Obj.push_back(
HTT);
685 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
687 int bxInEventHex = (bxInEvent+ 16) % 16;
689 std::stringstream ss;
691 ss << std::uppercase << std::hex << bxInEventHex;
692 ss >> bxInEventHexString;
696 + bxInEventHexString);
700 "L1_HTT", l1Obj, bookPhi, bookEta);
705 l1Obj.push_back(
HTM);
719 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
721 int bxInEventHex = (bxInEvent+ 16) % 16;
723 std::stringstream ss;
725 ss << std::uppercase << std::hex << bxInEventHex;
726 ss >> bxInEventHexString;
730 + bxInEventHexString);
734 "L1_HTM", l1Obj, bookPhi, bookEta);
749 evSetup, nrMonElements));
754 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
756 int bxInEventHex = (bxInEvent+ 16) % 16;
758 std::stringstream ss;
760 ss << std::uppercase << std::hex << bxInEventHex;
761 ss >> bxInEventHexString;
765 + bxInEventHexString);
769 m_dbe,
"L1_HfBitCounts", l1Obj, bookPhi, bookEta);
784 evSetup, nrMonElements));
789 int bxInEvent = iBxInEvent + (m_nrBxInEventGct + 1) / 2
791 int bxInEventHex = (bxInEvent+ 16) % 16;
793 std::stringstream ss;
795 ss << std::uppercase << std::hex << bxInEventHex;
796 ss >> bxInEventHexString;
800 + bxInEventHexString);
804 m_dbe,
"L1_HfRingEtSums", l1Obj, bookPhi, bookEta);
952 LogDebug(
"L1ExtraDQM") <<
"\n\n endRun: " << run.
id()
953 <<
"\n Number of events analyzed in this run: " <<
m_nrEvRun
954 <<
"\n Total number of events analyzed in this job: " <<
m_nrEvJob
955 <<
"\n" << std::endl;
962 <<
"\n\nTotal number of events analyzed in this job: " <<
m_nrEvJob
963 <<
"\n" << std::endl;
T getUntrackedParameter(std::string const &, T const &) const
void rmdir(const std::string &fullpath)
#define DEFINE_FWK_MODULE(type)
void bookHistograms(fwlite::EventContainer &eventCont)
void setVerbose(unsigned level)
bool dirExists(const std::string &path) const
true if directory exists
void setCurrentFolder(const std::string &fullpath)