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
02c6d5ac
Commit
02c6d5ac
authored
2 years ago
by
Juraj Smiesko
Committed by
MarkusFrankATcernch
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Improving error message
parent
eb00b5bf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDCore/src/XML/Utilities.cpp
+6
-4
6 additions, 4 deletions
DDCore/src/XML/Utilities.cpp
with
6 additions
and
4 deletions
DDCore/src/XML/Utilities.cpp
+
6
−
4
View file @
02c6d5ac
...
@@ -219,13 +219,15 @@ void dd4hep::xml::setDetectorTypeFlag( dd4hep::xml::Handle_t e, dd4hep::DetElem
...
@@ -219,13 +219,15 @@ void dd4hep::xml::setDetectorTypeFlag( dd4hep::xml::Handle_t e, dd4hep::DetElem
try
{
try
{
xml_comp_t
x_dettype
=
x_det
.
child
(
dd4hep
::
xml
::
Strng_t
(
"type_flags"
)
)
;
xml_comp_t
x_dettype
=
x_det
.
child
(
dd4hep
::
xml
::
Strng_t
(
"type_flags"
)
)
;
unsigned
int
typeFlag
=
x_dettype
.
type
()
;
unsigned
int
typeFlag
=
x_dettype
.
type
()
;
printout
(
DEBUG
,
"Utilities"
,
"+++ setDetectorTypeFlags for detector
:%s set to 0x%x"
,
det_name
.
c_str
(),
typeFlag
)
;
printout
(
DEBUG
,
"Utilities"
,
"+++ setDetectorTypeFlags for detector:
%s set to 0x%x"
,
det_name
.
c_str
(),
typeFlag
)
;
sdet
.
setTypeFlag
(
typeFlag
)
;
sdet
.
setTypeFlag
(
typeFlag
)
;
}
}
catch
(
const
std
::
runtime_error
&
)
{
catch
(
const
std
::
runtime_error
&
err
)
{
printout
(
INFO
,
"Utilities"
,
printout
(
INFO
,
"Utilities"
,
"+++ setDetectorTypeFlags for detector :%s no xml element <type_flags/> found - nothing to set "
,
"+++ setDetectorTypeFlags for detector: %s not set."
,
det_name
.
c_str
()
)
;
det_name
.
c_str
()
);
printout
(
DEBUG
,
"Utilities"
,
"+++ setDetectorTypeFlags encountered an error:
\n
%s"
,
err
.
what
());
}
}
}
}
#endif
#endif
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