We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents afe48e8 + 0d4f93a commit e4bfeacCopy full SHA for e4bfeac
SimG4CMS/Calo/src/CaloSD.cc
@@ -386,10 +386,13 @@ void CaloSD::EndOfEvent(G4HCofThisEvent*) {
386
cleanHitCollection();
387
388
#ifdef EDM_ML_DEBUG
389
- if (theHC[0] == nullptr)
390
- edm::LogVerbatim("CaloSim") << "CaloSD: EndofEvent entered with no entries";
391
- else
392
- 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
393
+ edm::LogVerbatim("CaloSim") << "CaloSD: EndofEvent entered for container " << k << " with " << theHC[0]->entries()
394
+ << " entries";
395
+ }
396
#endif
397
}
398
0 commit comments