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) {
58 if ( region.et() > 0 ) {
59 if ( region.bx() == 0 ) {
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();
94 if ( region.bx() == 0 )
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_
MonitorElement * regionsAvgEtBxP2_
std::vector< MonitorElement * > regionsPUMEtaBxP2_
MonitorElement * nonZeroRegionsBxM2_
MonitorElement * regionBxPopulation_
MonitorElement * nonZeroRegionsBx0_
void setCurrentFolder(std::string const &fullpath)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
void analyze(const edm::Event &e, const edm::EventSetup &c) override
MonitorElement * book1D(Args &&...args)
MonitorElement * nonZeroRegionsBxP2_
MonitorElement * regionsAvgNonZeroEtBxP2_
std::vector< MonitorElement * > regionsPUMEtaBxM2_
MonitorElement * book2D(Args &&...args)
std::vector< MonitorElement * > regionsPUMEtaBx0_
void bookHistograms(DQMStore::IBooker &ibooker, const edm::Run &, const edm::EventSetup &) override
MonitorElement * regionsAvgEtBx0_
MonitorElement * regionsTotalEtBx0_
MonitorElement * regionsAvgNonZeroEtBx0_
std::vector< L1CaloRegion > L1CaloRegionCollection
MonitorElement * regionsTotalEtBxM2_
MonitorElement * regionBxEtSum_
void dqmBeginRun(const edm::Run &, const edm::EventSetup &) override