Skip to content

Commit a7be00e

Browse files
committed
add separate RecHit maps for HB and HE
1 parent 11d4ed4 commit a7be00e

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

DQM/HLTEvF/plugins/ScoutingCollectionMonitor.cc

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@ class ScoutingCollectionMonitor : public DQMEDAnalyzer {
419419
dqm::reco::MonitorElement* hbheRecHitsNumber_hist;
420420
dqm::reco::MonitorElement* hbheRecHits_energy_hist;
421421
dqm::reco::MonitorElement* hbheRecHitsEtaPhiMap;
422+
dqm::reco::MonitorElement* hbRecHitsEtaPhiMap;
423+
dqm::reco::MonitorElement* heRecHitsEtaPhiMap;
422424
};
423425

424426
//
@@ -903,6 +905,12 @@ void ScoutingCollectionMonitor::analyze(const edm::Event& iEvent, const edm::Eve
903905
hbheRecHits_energy_hist->Fill(hbheRecHit.energy());
904906
HcalDetId hcalid(hbheRecHit.detId());
905907
hbheRecHitsEtaPhiMap->Fill(hcalid.ieta(), hcalid.iphi());
908+
const auto& subdet = hcalid.subdetId();
909+
if (subdet == 1) { // HB
910+
hbRecHitsEtaPhiMap->Fill(hcalid.ieta(), hcalid.iphi());
911+
} else { // HE
912+
heRecHitsEtaPhiMap->Fill(hcalid.ieta(), hcalid.iphi());
913+
}
906914
}
907915
}
908916
}
@@ -1348,7 +1356,7 @@ void ScoutingCollectionMonitor::bookHistograms(DQMStore::IBooker& ibook,
13481356
"eeRechits_time" + sfx, "Time of EE RecHits (" + lbl + "); Time of EE recHits (ps); Entries", 100, 0.0, 1000.0);
13491357

13501358
ebRecHitsEtaPhiMap[i] = ibook.book2D("ebRecHitsEtaPhitMap" + sfx,
1351-
"Occupancy map of EB rechit (" + lbl + ");ieta;iphi;Entries",
1359+
"Occupancy map of EB rechits (" + lbl + ");ieta;iphi;Entries",
13521360
171,
13531361
-85.5,
13541362
85.5,
@@ -1359,7 +1367,7 @@ void ScoutingCollectionMonitor::bookHistograms(DQMStore::IBooker& ibook,
13591367
ebRecHitsEtaPhiMap[i]->setOption("colz");
13601368

13611369
eePlusRecHitsXYMap[i] = ibook.book2D("eePlusRecHitsEtaPhitMap" + sfx,
1362-
"Occupancy map of EE+ rechit (" + lbl + ");ix;iy;Entries",
1370+
"Occupancy map of EE+ rechits (" + lbl + ");ix;iy;Entries",
13631371
100,
13641372
1,
13651373
101,
@@ -1370,7 +1378,7 @@ void ScoutingCollectionMonitor::bookHistograms(DQMStore::IBooker& ibook,
13701378
eePlusRecHitsXYMap[i]->setOption("colz");
13711379

13721380
eeMinusRecHitsXYMap[i] = ibook.book2D("eeMinusRecHitsEtaPhitMap" + sfx,
1373-
"Occupancy map of EE- rechit (" + lbl + ");ix;iy;Entries",
1381+
"Occupancy map of EE- rechits (" + lbl + ");ix;iy;Entries",
13741382
100,
13751383
1,
13761384
101,
@@ -1388,8 +1396,16 @@ void ScoutingCollectionMonitor::bookHistograms(DQMStore::IBooker& ibook,
13881396
"hbheRechits_energy", "Energy spectrum of hbhe RecHits; Energy of HBHE recHits (GeV); Entries", 100, 0.0, 200.0);
13891397

13901398
hbheRecHitsEtaPhiMap = ibook.book2D(
1391-
"hbheRecHitsEtaPhitMap", "Occupancy map of HBHE rechit;ieta;iphi;Entries", 61, -30.5, 30.5, 74, -0.5, 73.5);
1399+
"hbheRecHitsEtaPhitMap", "Occupancy map of HBHE rechits;ieta;iphi;Entries", 61, -30.5, 30.5, 74, -0.5, 73.5);
13921400
hbheRecHitsEtaPhiMap->setOption("colz");
1401+
1402+
hbRecHitsEtaPhiMap = ibook.book2D(
1403+
"hbRecHitsEtaPhitMap", "Occupancy map of HB rechits;ieta;iphi;Entries", 83, -41.5, 41.5, 72, 0.5, 72.5);
1404+
hbRecHitsEtaPhiMap->setOption("colz");
1405+
1406+
heRecHitsEtaPhiMap = ibook.book2D(
1407+
"heRecHitsEtaPhitMap", "Occupancy map of HE rechits;ieta;iphi;Entries", 83, -41.5, 41.5, 72, 0.5, 72.5);
1408+
heRecHitsEtaPhiMap->setOption("colz");
13931409
}
13941410
// ------------ method fills 'descriptions' with the allowed parameters for the module ------------
13951411

0 commit comments

Comments
 (0)