18 const unsigned int R10BINS = 1024;
20 const float R10MAX = 1023.5;
22 const unsigned int PUMETABINS = 22;
23 const unsigned int PUMNORMALIZE = 22;
25 const unsigned int PUMBINS = 18;
26 const float PUMMIN = -0.5;
27 const float PUMMAX = 17.5;
32 histFolder_(ps.getParameter<std::
string>(
"histFolder"))
49 int nonzeroRegionsBxP2{0};
50 int nonzeroRegionsBx0{0};
51 int nonzeroRegionsBxM2{0};
53 float regionsTotalEtBxP2{0.};
54 float regionsTotalEtBx0{0.};
55 float regionsTotalEtBxM2{0.};
57 for (
const auto&
region : *regionCollection) {
61 regionsTotalEtBx0 +=
region.et();
63 else if (
region.bx() == 2 ) {
65 regionsTotalEtBxP2 +=
region.et();
67 else if (
region.bx() == -2 ) {
69 regionsTotalEtBxM2 +=
region.et();
90 for (
const auto&
region : *regionCollection) {
91 size_t etaBin =
region.gctEta();
96 else if (
region.bx() == 2 )
98 else if (
region.bx() == -2 )
107 for (
size_t ieta=0; ieta<PUMETABINS; ++ieta) {
111 nonZeroRegionsBx0_ = ibooker.
book1D(
"nonZeroRegions",
"Nonzero regions;Number Regions >0;Counts", 397, -0.5, 396.5);
117 for (
size_t ieta=0; ieta<PUMETABINS; ++ieta) {
127 for (
size_t ieta=0; ieta<PUMETABINS; ++ieta) {
136 regionBxPopulation_ = ibooker.
book2D(
"regionBxPopulation",
"Event counts per region per bunch crossing;Region index (18*eta+phi);BX index;Counts", 396, -0.5, 395.5, 5, -2.5, 2.5);
137 regionBxEtSum_ = ibooker.
book2D(
"regionBxEtSum",
"Et per region per bunch crossing;Region index (18*eta+phi);BX index;Counts*et", 396, -0.5, 395.5, 5, -2.5, 2.5);
MonitorElement * regionsTotalEtBxP2_
MonitorElement * regionsAvgNonZeroEtBxM2_
MonitorElement * regionsAvgEtBxM2_
L1TPUM(const edm::ParameterSet &ps)
const unsigned int R10BINS
edm::EDGetTokenT< L1CaloRegionCollection > regionSource_
virtual void dqmBeginRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * regionsAvgEtBxP2_
std::vector< MonitorElement * > regionsPUMEtaBxP2_
MonitorElement * nonZeroRegionsBxM2_
MonitorElement * regionBxPopulation_
std::string to_string(const T &t)
MonitorElement * nonZeroRegionsBx0_
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
MonitorElement * book1D(Args &&...args)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
MonitorElement * nonZeroRegionsBxP2_
MonitorElement * regionsAvgNonZeroEtBxP2_
std::vector< MonitorElement * > regionsPUMEtaBxM2_
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
std::vector< MonitorElement * > regionsPUMEtaBx0_
virtual void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run &, const edm::EventSetup &) override
MonitorElement * regionsAvgEtBx0_
MonitorElement * regionsTotalEtBx0_
void analyze(const edm::Event &e, const edm::EventSetup &c)
MonitorElement * regionsAvgNonZeroEtBx0_
std::vector< L1CaloRegion > L1CaloRegionCollection
MonitorElement * regionsTotalEtBxM2_
MonitorElement * regionBxEtSum_