17 const unsigned int R10BINS = 1024;
18 const float R10MIN = -0.5;
19 const float R10MAX = 1023.5;
21 const unsigned int PUMETABINS = 22;
22 const unsigned int PUMNORMALIZE = 22;
24 const unsigned int PUMBINS = 18;
25 const float PUMMIN = -0.5;
26 const float PUMMAX = 17.5;
31 histFolder_(ps.getParameter<
std::
string>(
"histFolder")) {}
41 int nonzeroRegionsBxP2{0};
42 int nonzeroRegionsBx0{0};
43 int nonzeroRegionsBxM2{0};
45 float regionsTotalEtBxP2{0.};
46 float regionsTotalEtBx0{0.};
47 float regionsTotalEtBxM2{0.};
49 for (
const auto&
region : *regionCollection) {
53 regionsTotalEtBx0 +=
region.et();
54 }
else if (
region.bx() == 2) {
56 regionsTotalEtBxP2 +=
region.et();
57 }
else if (
region.bx() == -2) {
59 regionsTotalEtBxM2 +=
region.et();
80 for (
const auto&
region : *regionCollection) {
88 else if (
region.bx() == -2)
98 regionsAvgEtBx0_ = ibooker.
book1D(
"regionsAvgEt",
"Average Rank;Average Rank;Counts", R10BINS, R10MIN, R10MAX);
100 ibooker.
book1D(
"regionsAvgNonZeroEt",
"Average Rank >0;Average Rank Regions>0;Counts", R10BINS, R10MIN, R10MAX);
101 nonZeroRegionsBx0_ = ibooker.
book1D(
"nonZeroRegions",
"Nonzero regions;Number Regions >0;Counts", 397, -0.5, 396.5);
103 "PUM Bin rank distribution;PU bin;Rank",
116 regionsAvgEtBxP2_ = ibooker.
book1D(
"regionsAvgEt",
"Average Rank;Average Rank;Counts", R10BINS, R10MIN, R10MAX);
118 ibooker.
book1D(
"regionsAvgNonZeroEt",
"Average Rank >0;Average Rank Regions>0;Counts", R10BINS, R10MIN, R10MAX);
120 ibooker.
book1D(
"nonZeroRegions",
"Nonzero regions;Number Regions >0;Counts", 397, -0.5, 396.5);
122 "PUM Bin rank distribution;PU bin;Rank",
135 regionsAvgEtBxM2_ = ibooker.
book1D(
"regionsAvgEt",
"Average Rank;Average Rank;Counts", R10BINS, R10MIN, R10MAX);
137 ibooker.
book1D(
"regionsAvgNonZeroEt",
"Average Rank >0;Average Rank Regions>0;Counts", R10BINS, R10MIN, R10MAX);
139 ibooker.
book1D(
"nonZeroRegions",
"Nonzero regions;Number Regions >0;Counts", 397, -0.5, 396.5);
141 "PUM Bin rank distribution;PU bin;Rank",
152 ibooker.
book2D(
"regionBxPopulation",
153 "Event counts per region per bunch crossing;Region index (18*eta+phi);BX index;Counts",
161 "Et per region per bunch crossing;Region index (18*eta+phi);BX index;Counts*et",
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX)
MonitorElement * regionsTotalEtBxP2_
MonitorElement * regionsAvgNonZeroEtBxM2_
MonitorElement * regionsAvgEtBxM2_
L1TPUM(const edm::ParameterSet &ps)
edm::EDGetTokenT< L1CaloRegionCollection > regionSource_
void setCurrentFolder(std::string const &fullpath)
MonitorElement * regionsAvgEtBxP2_
std::vector< MonitorElement * > regionsPUMEtaBxP2_
MonitorElement * nonZeroRegionsBxM2_
MonitorElement * regionBxPopulation_
MonitorElement * nonZeroRegionsBx0_
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * nonZeroRegionsBxP2_
MonitorElement * regionsAvgNonZeroEtBxP2_
std::vector< MonitorElement * > regionsPUMEtaBxM2_
std::vector< MonitorElement * > regionsPUMEtaBx0_
void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run &, const edm::EventSetup &) override
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
MonitorElement * regionsAvgEtBx0_
MonitorElement * regionsTotalEtBx0_
MonitorElement * regionsAvgNonZeroEtBx0_
std::vector< L1CaloRegion > L1CaloRegionCollection
MonitorElement * regionsTotalEtBxM2_
MonitorElement * regionBxEtSum_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override