Skip to content

Commit 1dafa67

Browse files
committed
remove plots so called punch-throughs which never used in the validation procedure
1 parent 1234e95 commit 1dafa67

File tree

2 files changed

+0
-142
lines changed

2 files changed

+0
-142
lines changed

Validation/RPCRecHits/interface/RPCRecHitValid.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,6 @@ class RPCRecHitValid : public DQMEDAnalyzer {
6262
MEP h_recoMuonBarrel_phi, h_recoMuonOverlap_phi, h_recoMuonEndcap_phi, h_recoMuonNoRPC_phi;
6363
MEP h_simParticleType, h_simParticleTypeBarrel, h_simParticleTypeEndcap;
6464

65-
MEP h_refPunchOccupancyBarrel_wheel, h_refPunchOccupancyEndcap_disk, h_refPunchOccupancyBarrel_station;
66-
MEP h_refPunchOccupancyBarrel_wheel_station, h_refPunchOccupancyEndcap_disk_ring;
67-
MEP h_recPunchOccupancyBarrel_wheel, h_recPunchOccupancyEndcap_disk, h_recPunchOccupancyBarrel_station;
68-
MEP h_recPunchOccupancyBarrel_wheel_station, h_recPunchOccupancyEndcap_disk_ring;
69-
7065
MEP h_matchOccupancyBarrel_detId;
7166
MEP h_matchOccupancyEndcap_detId;
7267
MEP h_refOccupancyBarrel_detId;

Validation/RPCRecHits/src/RPCRecHitValid.cc

Lines changed: 0 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -166,85 +166,6 @@ void RPCRecHitValid::bookHistograms(DQMStore::IBooker &booker, edm::Run const &r
166166
}
167167
h_eventCount->Fill(3);
168168

169-
h_refPunchOccupancyBarrel_wheel =
170-
booker.book1D("RefPunchOccupancyBarrel_wheel", "RefPunchthrough occupancy", 5, -2.5, 2.5);
171-
h_refPunchOccupancyEndcap_disk =
172-
booker.book1D("RefPunchOccupancyEndcap_disk", "RefPunchthrough occupancy", 9, -4.5, 4.5);
173-
h_refPunchOccupancyBarrel_station =
174-
booker.book1D("RefPunchOccupancyBarrel_station", "RefPunchthrough occupancy", 4, 0.5, 4.5);
175-
h_recPunchOccupancyBarrel_wheel =
176-
booker.book1D("RecPunchOccupancyBarrel_wheel", "Punchthrough recHit occupancy", 5, -2.5, 2.5);
177-
h_recPunchOccupancyEndcap_disk =
178-
booker.book1D("RecPunchOccupancyEndcap_disk", "Punchthrough recHit occupancy", 9, -4.5, 4.5);
179-
h_recPunchOccupancyBarrel_station =
180-
booker.book1D("RecPunchOccupancyBarrel_station", "Punchthrough recHit occupancy", 4, 0.5, 4.5);
181-
182-
h_refPunchOccupancyBarrel_wheel->getTH1()->SetMinimum(0);
183-
h_refPunchOccupancyEndcap_disk->getTH1()->SetMinimum(0);
184-
h_refPunchOccupancyBarrel_station->getTH1()->SetMinimum(0);
185-
h_recPunchOccupancyBarrel_wheel->getTH1()->SetMinimum(0);
186-
h_recPunchOccupancyEndcap_disk->getTH1()->SetMinimum(0);
187-
h_recPunchOccupancyBarrel_station->getTH1()->SetMinimum(0);
188-
189-
h_refPunchOccupancyBarrel_wheel_station =
190-
booker.book2D("RefPunchOccupancyBarrel_wheel_station", "RefPunchthrough occupancy", 5, -2.5, 2.5, 4, 0.5, 4.5);
191-
h_refPunchOccupancyEndcap_disk_ring =
192-
booker.book2D("RefPunchOccupancyEndcap_disk_ring", "RefPunchthrough occupancy", 9, -4.5, 4.5, 4, 0.5, 4.5);
193-
h_recPunchOccupancyBarrel_wheel_station = booker.book2D(
194-
"RecPunchOccupancyBarrel_wheel_station", "Punchthrough recHit occupancy", 5, -2.5, 2.5, 4, 0.5, 4.5);
195-
h_recPunchOccupancyEndcap_disk_ring =
196-
booker.book2D("RecPunchOccupancyEndcap_disk_ring", "Punchthrough recHit occupancy", 9, -4.5, 4.5, 4, 0.5, 4.5);
197-
198-
h_refPunchOccupancyBarrel_wheel_station->getTH2F()->SetOption("COLZ");
199-
h_refPunchOccupancyEndcap_disk_ring->getTH2F()->SetOption("COLZ");
200-
h_recPunchOccupancyBarrel_wheel_station->getTH2F()->SetOption("COLZ");
201-
h_recPunchOccupancyEndcap_disk_ring->getTH2F()->SetOption("COLZ");
202-
203-
h_refPunchOccupancyBarrel_wheel_station->getTH2F()->SetContour(10);
204-
h_refPunchOccupancyEndcap_disk_ring->getTH2F()->SetContour(10);
205-
h_recPunchOccupancyBarrel_wheel_station->getTH2F()->SetContour(10);
206-
h_recPunchOccupancyEndcap_disk_ring->getTH2F()->SetContour(10);
207-
208-
h_refPunchOccupancyBarrel_wheel_station->getTH2F()->SetStats(false);
209-
h_refPunchOccupancyEndcap_disk_ring->getTH2F()->SetStats(false);
210-
h_recPunchOccupancyBarrel_wheel_station->getTH2F()->SetStats(false);
211-
h_recPunchOccupancyEndcap_disk_ring->getTH2F()->SetStats(false);
212-
213-
h_refPunchOccupancyBarrel_wheel_station->getTH2F()->SetMinimum(0);
214-
h_refPunchOccupancyEndcap_disk_ring->getTH2F()->SetMinimum(0);
215-
h_recPunchOccupancyBarrel_wheel_station->getTH2F()->SetMinimum(0);
216-
h_recPunchOccupancyEndcap_disk_ring->getTH2F()->SetMinimum(0);
217-
218-
for (int i = 1; i <= 5; ++i) {
219-
TString binLabel = Form("Wheel %d", i - 3);
220-
h_refPunchOccupancyBarrel_wheel->getTH1()->GetXaxis()->SetBinLabel(i, binLabel);
221-
h_refPunchOccupancyBarrel_wheel_station->getTH2F()->GetXaxis()->SetBinLabel(i, binLabel);
222-
h_recPunchOccupancyBarrel_wheel->getTH1()->GetXaxis()->SetBinLabel(i, binLabel);
223-
h_recPunchOccupancyBarrel_wheel_station->getTH2F()->GetXaxis()->SetBinLabel(i, binLabel);
224-
}
225-
226-
for (int i = 1; i <= 9; ++i) {
227-
TString binLabel = Form("Disk %d", i - 5);
228-
h_refPunchOccupancyEndcap_disk->getTH1()->GetXaxis()->SetBinLabel(i, binLabel);
229-
h_refPunchOccupancyEndcap_disk_ring->getTH2F()->GetXaxis()->SetBinLabel(i, binLabel);
230-
h_recPunchOccupancyEndcap_disk->getTH1()->GetXaxis()->SetBinLabel(i, binLabel);
231-
h_recPunchOccupancyEndcap_disk_ring->getTH2F()->GetXaxis()->SetBinLabel(i, binLabel);
232-
}
233-
234-
for (int i = 1; i <= 4; ++i) {
235-
TString binLabel = Form("Station %d", i);
236-
h_refPunchOccupancyBarrel_station->getTH1()->GetXaxis()->SetBinLabel(i, binLabel);
237-
h_refPunchOccupancyBarrel_wheel_station->getTH2F()->GetYaxis()->SetBinLabel(i, binLabel);
238-
h_recPunchOccupancyBarrel_station->getTH1()->GetXaxis()->SetBinLabel(i, binLabel);
239-
h_recPunchOccupancyBarrel_wheel_station->getTH2F()->GetYaxis()->SetBinLabel(i, binLabel);
240-
}
241-
242-
for (int i = 1; i <= 4; ++i) {
243-
TString binLabel = Form("Ring %d", i);
244-
h_refPunchOccupancyEndcap_disk_ring->getTH2F()->GetYaxis()->SetBinLabel(i, binLabel);
245-
h_recPunchOccupancyEndcap_disk_ring->getTH2F()->GetYaxis()->SetBinLabel(i, binLabel);
246-
}
247-
248169
// Book roll-by-roll histograms
249170
auto rpcGeom = eventSetup.getHandle(rpcGeomTokenInRun_);
250171

@@ -540,24 +461,12 @@ void RPCRecHitValid::analyze(const edm::Event &event, const edm::EventSetup &eve
540461
const RPCRoll *roll = dynamic_cast<const RPCRoll *>(rpcGeom->roll(detId()));
541462

542463
const int region = roll->id().region();
543-
const int ring = roll->id().ring();
544-
// const int sector = roll->id().sector();
545-
const int station = roll->id().station();
546-
// const int layer = roll->id().layer();
547-
// const int subSector = roll->id().subsector();
548464

549465
if (region == 0) {
550466
++nRefHitBarrel;
551-
h_refPunchOccupancyBarrel_wheel->Fill(ring);
552-
h_refPunchOccupancyBarrel_station->Fill(station);
553-
h_refPunchOccupancyBarrel_wheel_station->Fill(ring, station);
554-
555467
h_refOccupancyBarrel_detId->Fill(detIdToIndexMapBarrel_[simHit->detUnitId()]);
556468
} else {
557469
++nRefHitEndcap;
558-
h_refPunchOccupancyEndcap_disk->Fill(region * station);
559-
h_refPunchOccupancyEndcap_disk_ring->Fill(region * station, ring);
560-
561470
h_refOccupancyEndcap_detId->Fill(detIdToIndexMapEndcap_[simHit->detUnitId()]);
562471
}
563472
}
@@ -766,52 +675,6 @@ void RPCRecHitValid::analyze(const edm::Event &event, const edm::EventSetup &eve
766675
}
767676
}
768677

769-
// Find Non-muon hits
770-
for (RecHitIter recHitIter = recHitHandle->begin(); recHitIter != recHitHandle->end(); ++recHitIter) {
771-
const RPCDetId detId = static_cast<const RPCDetId>(recHitIter->rpcId());
772-
const RPCRoll *roll = dynamic_cast<const RPCRoll *>(rpcGeom->roll(detId));
773-
774-
const int region = roll->id().region();
775-
const int ring = roll->id().ring();
776-
// const int sector = roll->id().sector();
777-
const int station = roll->id().station();
778-
// const int layer = roll->id().layer();
779-
// const int subsector = roll->id().subsector();
780-
781-
bool matched = false;
782-
for (const auto &match : simToRecHitMap) {
783-
if (recHitIter == match.second) {
784-
matched = true;
785-
break;
786-
}
787-
}
788-
789-
if (!matched) {
790-
int nPunchMatched = 0;
791-
// Check if this recHit came from non-muon simHit
792-
for (const auto &simHit : pthrSimHits) {
793-
const int absSimHitPType = abs(simHit->particleType());
794-
if (absSimHitPType == 13)
795-
continue;
796-
797-
const RPCDetId simDetId = static_cast<const RPCDetId>(simHit->detUnitId());
798-
if (simDetId == detId)
799-
++nPunchMatched;
800-
}
801-
802-
if (nPunchMatched > 0) {
803-
if (region == 0) {
804-
h_recPunchOccupancyBarrel_wheel->Fill(ring);
805-
h_recPunchOccupancyBarrel_station->Fill(station);
806-
h_recPunchOccupancyBarrel_wheel_station->Fill(ring, station);
807-
} else {
808-
h_recPunchOccupancyEndcap_disk->Fill(region * station);
809-
h_recPunchOccupancyEndcap_disk_ring->Fill(region * station, ring);
810-
}
811-
}
812-
}
813-
}
814-
815678
// Find noise recHits : RecHits without SimHit match
816679
for (RecHitIter recHitIter = recHitHandle->begin(); recHitIter != recHitHandle->end(); ++recHitIter) {
817680
const RPCDetId recDetId = static_cast<const RPCDetId>(recHitIter->rpcId());

0 commit comments

Comments
 (0)