Skip to content

Commit

Permalink
Merge pull request #10711 from fcavallo/fix-DTDigiTask75
Browse files Browse the repository at this point in the history
bug fix in OccupancyNoise
  • Loading branch information
cmsbuild committed Aug 14, 2015
2 parents 64f72e0 + 32fdf67 commit ebf5efa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions DQM/DTMonitorModule/src/DTDigiTask.cc
Expand Up @@ -139,7 +139,8 @@ void DTDigiTask::bookHistograms(DQMStore::IBooker & ibooker, edm::Run const & ru
ibooker.setCurrentFolder(topFolder());
for(int wh = -2; wh <= 2; ++wh) { // loop over wheels
if(doAllHitsOccupancies) bookHistos(ibooker, wh,string("Occupancies"),"OccupancyAllHits");
if(doNoiseOccupancies) bookHistos(ibooker, wh,string("Occupancies"),"OccupancyNoiseHits");

if(doNoiseOccupancies) bookHistos(ibooker, wh,string("Occupancies"),"OccupancyNoise");
if(doInTimeOccupancies) bookHistos(ibooker, wh,string("Occupancies"),"OccupancyInTimeHits");

if(lookForSyncNoise || filterSyncNoise) {
Expand Down Expand Up @@ -666,12 +667,12 @@ void DTDigiTask::analyze(const edm::Event& event, const edm::EventSetup& c) {
(layer_number+(superlayer_number-1)*4)-1);

// Fill the chamber occupancy

histoTag = "OccupancyNoise";
map<int, MonitorElement*>::const_iterator histoPerWheel =
wheelHistos[histoTag].find(dtChId.wheel());

histoPerWheel->second->Fill(dtChId.sector(),dtChId.station()); // FIXME: normalize to # of layers

}
}

Expand Down

0 comments on commit ebf5efa

Please sign in to comment.