Skip to content
Snippets Groups Projects
Commit 5c0e0d1c authored by Andre Sailer's avatar Andre Sailer
Browse files

Geant4RegexSD: reduce verbosity of printouts

parent cb072f7e
No related branches found
No related tags found
No related merge requests found
...@@ -151,18 +151,18 @@ void Geant4RegexSensitivesConstruction::constructSensitives(Geant4DetectorConstr ...@@ -151,18 +151,18 @@ void Geant4RegexSensitivesConstruction::constructSensitives(Geant4DetectorConstr
expressions.emplace_back(e); expressions.emplace_back(e);
} }
TTimeStamp start; 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); std::size_t num_nodes = this->collect_volumes(volumes, de.placement(), de.placementPath(), expressions);
for( const auto& vol : volumes ) { for( const auto& vol : volumes ) {
G4LogicalVolume* g4vol = g4info->g4Volumes[vol]; G4LogicalVolume* g4vol = g4info->g4Volumes[vol];
if( !g4vol ) { if( !g4vol ) {
except("+++ Failed to access G4LogicalVolume for SD %s of type %s", nam.c_str(), typ.c_str()); 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()); nam.c_str(), typ.c_str(), vol.name());
ctxt->setSensitiveDetector(g4vol, g4sd); ctxt->setSensitiveDetector(g4vol, g4sd);
} }
TTimeStamp stop; TTimeStamp stop;
print("+++ Detector: %s Handled %ld nodes with %ld sensitive volume type(s). Total of %7.3f seconds.", 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() ); det, num_nodes, volumes.size(), stop.AsDouble()-start.AsDouble() );
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment