Skip to content

Commit

Permalink
Code check
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Oct 7, 2024
1 parent 92112aa commit fa726f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SimCalorimetry/HcalSimProducers/interface/HcalDigitizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class HcalDigitizer {
int bunchCrossing,
CLHEP::HepRandomEngine *,
const HcalTopology *h,
const ZdcTopology *z);
const ZdcTopology *z);

/// some hits in each subdetector, just for testing purposes
void fillFakeHits();
Expand Down
6 changes: 4 additions & 2 deletions SimCalorimetry/HcalSimProducers/src/HcalDigitizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -431,12 +431,14 @@ void HcalDigitizer::accumulateCaloHits(edm::Handle<std::vector<PCaloHit>> const
DetId id(zdcHitsOrig[i].id());
HcalZDCDetId hid(id);
if (!ztopoP->valid(hid)) {
edm::LogError("HcalDigitizer") << "bad zdc id found in digitizer. Skipping " << std::hex << id.rawId() << std::dec << " " << hid;
edm::LogError("HcalDigitizer") << "bad zdc id found in digitizer. Skipping " << std::hex << id.rawId()
<< std::dec << " " << hid;
continue;
}
zdcHits.push_back(zdcHitsOrig[i]);
#ifdef EDM_ML_DEBUG
edm::LogVerbatim("HcalSim") << "Hit " << i << " out of " << zdcHitsOrig.size() << " " << std::hex << id.rawId() << " " << hid;
edm::LogVerbatim("HcalSim") << "Hit " << i << " out of " << zdcHitsOrig.size() << " " << std::hex << id.rawId()
<< " " << hid;
#endif
}
theZDCDigitizer->add(zdcHits, bunchCrossing, engine);
Expand Down

0 comments on commit fa726f2

Please sign in to comment.