Skip to content

Commit

Permalink
whoops its when its NOT valid
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlange6 committed Oct 23, 2015
1 parent c3e52ad commit 61e2603
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimCalorimetry/HcalSimProducers/src/HcalDigitizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ void HcalDigitizer::accumulateCaloHits(edm::Handle<std::vector<PCaloHit> > const
HcalDetId hid(id);

// if ( id.subdetId()==2 && hid.ietaAbs()<16 ) edm::LogError("HcalDigitizer") << "bad hcal id found in digitizer. Skipping " << id.rawId() << std::endl;
if ( htopoP->validHcal(hid) ) edm::LogError("HcalDigitizer") << "bad hcal id found in digitizer. Skipping " << id.rawId() << std::endl;
if ( !htopoP->validHcal(hid) ) edm::LogError("HcalDigitizer") << "bad hcal id found in digitizer. Skipping " << id.rawId() << std::endl;
else
hcalHits.push_back(hcalHitsOrig[i]);
}
Expand Down

0 comments on commit 61e2603

Please sign in to comment.