From f13f90029ca83180dd334620b017d6e83b3960c4 Mon Sep 17 00:00:00 2001 From: Andre Sailer Date: Fri, 9 Aug 2024 09:50:52 +0200 Subject: [PATCH] Geant4RegexSD: reduce verbosity of printouts --- DDG4/plugins/Geant4RegexSensitivesConstruction.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp b/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp index c1ff49ff9..8aa24ed26 100644 --- a/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp +++ b/DDG4/plugins/Geant4RegexSensitivesConstruction.cpp @@ -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() ); }