Skip to content

Commit

Permalink
Merge pull request #43016 from bsunanda/Phase2-hgx346Y
Browse files Browse the repository at this point in the history
Phase2-hgx346Y Fix the compilation error in CaloSD for debug mode
  • Loading branch information
cmsbuild committed Oct 18, 2023
2 parents afe48e8 + 0d4f93a commit e4bfeac
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions SimG4CMS/Calo/src/CaloSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,13 @@ void CaloSD::EndOfEvent(G4HCofThisEvent*) {
cleanHitCollection();

#ifdef EDM_ML_DEBUG
if (theHC[0] == nullptr)
edm::LogVerbatim("CaloSim") << "CaloSD: EndofEvent entered with no entries";
else
edm::LogVerbatim("CaloSim") << "CaloSD: EndofEvent entered with " << theHC[0]->entries() << " entries";
for (int k = 0; k < nHC_; ++k) {
if (theHC[k] == nullptr)
edm::LogVerbatim("CaloSim") << "CaloSD: EndofEvent entered for container " << k << " with no entries";
else
edm::LogVerbatim("CaloSim") << "CaloSD: EndofEvent entered for container " << k << " with " << theHC[0]->entries()
<< " entries";
}
#endif
}

Expand Down

0 comments on commit e4bfeac

Please sign in to comment.