Skip to content

Commit b23f2ca

Browse files
committed
do not fill up non-muon simhits
1 parent 1dafa67 commit b23f2ca

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

Validation/RPCRecHits/src/RPCRecHitValid.cc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,6 @@ void RPCRecHitValid::analyze(const edm::Event &event, const edm::EventSetup &eve
382382
h_simMuonNoRPC_eta->Fill(simParticle->eta());
383383
h_simMuonNoRPC_phi->Fill(simParticle->phi());
384384
}
385-
} else {
386-
pthrSimHits.insert(pthrSimHits.end(), simHitsFromParticle.begin(), simHitsFromParticle.end());
387385
}
388386

389387
if (hasRPCHit) {
@@ -454,22 +452,6 @@ void RPCRecHitValid::analyze(const edm::Event &event, const edm::EventSetup &eve
454452
}
455453
}
456454

457-
// Loop over punch-through simHits, fill histograms which does not need
458-
// associations
459-
for (const auto &simHit : pthrSimHits) {
460-
const RPCDetId detId = static_cast<const RPCDetId>(simHit->detUnitId());
461-
const RPCRoll *roll = dynamic_cast<const RPCRoll *>(rpcGeom->roll(detId()));
462-
463-
const int region = roll->id().region();
464-
465-
if (region == 0) {
466-
++nRefHitBarrel;
467-
h_refOccupancyBarrel_detId->Fill(detIdToIndexMapBarrel_[simHit->detUnitId()]);
468-
} else {
469-
++nRefHitEndcap;
470-
h_refOccupancyEndcap_detId->Fill(detIdToIndexMapEndcap_[simHit->detUnitId()]);
471-
}
472-
}
473455
h_.nRefHitBarrel->Fill(nRefHitBarrel);
474456
h_.nRefHitEndcap->Fill(nRefHitEndcap);
475457

0 commit comments

Comments
 (0)