Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
5c0e0d1c
Commit
5c0e0d1c
authored
7 months ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
Geant4RegexSD: reduce verbosity of printouts
parent
cb072f7e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDG4/plugins/Geant4RegexSensitivesConstruction.cpp
+4
-4
4 additions, 4 deletions
DDG4/plugins/Geant4RegexSensitivesConstruction.cpp
with
4 additions
and
4 deletions
DDG4/plugins/Geant4RegexSensitivesConstruction.cpp
+
4
−
4
View file @
5c0e0d1c
...
@@ -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
()
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment