Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BugFix] DDG4ProductionCuts Debug Printout #27597

Merged
merged 4 commits into from Jul 25, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions SimG4Core/Geometry/src/DDG4ProductionCuts.cc
Expand Up @@ -83,15 +83,16 @@ void DDG4ProductionCuts::initialize() {
G4RegionStore* store = G4RegionStore::GetInstance();
for (auto const& vv : vec_) {
unsigned int num = map_->toString(keywordRegion_, vv.second, regionName);
edm::LogVerbatim("Geometry") << " num " << num << " regionName: " << regionName << " " << store;

edm::LogVerbatim("Geometry") << " num " << num << " regionName: " << regionName << ", the store of size "
<< store->size();
if (num != 1) {
throw cms::Exception("SimG4CoreGeometry", " DDG4ProductionCuts::initialize: Problem with Region tags.");
}
if (regionName != curName) {
edm::LogVerbatim("Geometry") << "DDG4ProductionCuts : regionName " << regionName << " " << store;
edm::LogVerbatim("Geometry") << "DDG4ProductionCuts : regionName " << regionName << ", the store of size "
<< store->size();
region = store->FindOrCreateRegion(regionName);
edm::LogVerbatim("Geometry") << "DDG4ProductionCuts : region " << region;
edm::LogVerbatim("Geometry") << "DDG4ProductionCuts : region " << region->GetName();
if (!region) {
throw cms::Exception("SimG4CoreGeometry", " DDG4ProductionCuts::initialize: Problem with Region tags.");
}
Expand Down