Skip to content

Commit

Permalink
Fix the compilation error in CaloSD for debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunanda committed Oct 17, 2023
1 parent eb6caad commit 4b34a28
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions SimG4CMS/Calo/src/CaloSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -386,10 +386,12 @@ 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 4b34a28

Please sign in to comment.