Skip to content

Commit

Permalink
Geant4RegexSD: reduce verbosity of printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
andresailer committed Aug 9, 2024
1 parent 3d5d2a2 commit 14d845b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DDG4/plugins/Geant4RegexSensitivesConstruction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,18 +151,18 @@ void Geant4RegexSensitivesConstruction::constructSensitives(Geant4DetectorConstr
expressions.emplace_back(e);
}
TTimeStamp start;
print("+++ Detector: %s Starting to scan volume....", det);
info("%s Starting to scan volume....", det);
std::size_t num_nodes = this->collect_volumes(volumes, de.placement(), de.placementPath(), expressions);
for( const auto& vol : volumes ) {
G4LogicalVolume* g4vol = g4info->g4Volumes[vol];
if( !g4vol ) {
except("+++ Failed to access G4LogicalVolume for SD %s of type %s", nam.c_str(), typ.c_str());
}
print("+++ Detector: %s Assign sensitive detector [%s] to volume: %s.",
debug("%s Assign sensitive detector [%s] to volume: %s.",
nam.c_str(), typ.c_str(), vol.name());
ctxt->setSensitiveDetector(g4vol, g4sd);
}
TTimeStamp stop;
print("+++ Detector: %s Handled %ld nodes with %ld sensitive volume type(s). Total of %7.3f seconds.",
det, num_nodes, volumes.size(), stop.AsDouble()-start.AsDouble() );
info("%s Handled %ld nodes with %ld sensitive volume type(s). Total of %7.3f seconds.",
det, num_nodes, volumes.size(), stop.AsDouble()-start.AsDouble() );
}

0 comments on commit 14d845b

Please sign in to comment.