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
a191fd08
Commit
a191fd08
authored
2 years ago
by
Andre Sailer
Browse files
Options
Downloads
Patches
Plain Diff
Geant4UIManager: check more ApplyCommands for failures
parent
3999a5b6
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
DDG4/src/Geant4UIManager.cpp
+12
-3
12 additions, 3 deletions
DDG4/src/Geant4UIManager.cpp
with
12 additions
and
3 deletions
DDG4/src/Geant4UIManager.cpp
+
12
−
3
View file @
a191fd08
...
@@ -210,7 +210,10 @@ void Geant4UIManager::start() {
...
@@ -210,7 +210,10 @@ void Geant4UIManager::start() {
/// Execute the chained pre-run command statements
/// Execute the chained pre-run command statements
for
(
const
auto
&
c
:
m_preRunCommands
)
{
for
(
const
auto
&
c
:
m_preRunCommands
)
{
info
(
"++ Executing pre-run statement: %s"
,
c
.
c_str
());
info
(
"++ Executing pre-run statement: %s"
,
c
.
c_str
());
mgr
->
ApplyCommand
(
c
.
c_str
());
G4int
ret
=
mgr
->
ApplyCommand
(
c
.
c_str
());
if
(
ret
!=
0
)
{
except
(
"Failed to execute command: %s"
,
c
.
c_str
());
}
executed_statements
=
true
;
executed_statements
=
true
;
}
}
/// Start UI session if present
/// Start UI session if present
...
@@ -219,7 +222,10 @@ void Geant4UIManager::start() {
...
@@ -219,7 +222,10 @@ void Geant4UIManager::start() {
/// Execute the chained post-run command statements
/// Execute the chained post-run command statements
for
(
const
auto
&
c
:
m_postRunCommands
)
{
for
(
const
auto
&
c
:
m_postRunCommands
)
{
info
(
"++ Executing post-run statement: %s"
,
c
.
c_str
());
info
(
"++ Executing post-run statement: %s"
,
c
.
c_str
());
mgr
->
ApplyCommand
(
c
.
c_str
());
G4int
ret
=
mgr
->
ApplyCommand
(
c
.
c_str
());
if
(
ret
!=
0
)
{
except
(
"Failed to execute command: %s"
,
c
.
c_str
());
}
executed_statements
=
true
;
executed_statements
=
true
;
}
}
return
;
return
;
...
@@ -232,7 +238,10 @@ void Geant4UIManager::start() {
...
@@ -232,7 +238,10 @@ void Geant4UIManager::start() {
/// Execute the chained post-run command statements
/// Execute the chained post-run command statements
for
(
const
auto
&
c
:
m_postRunCommands
)
{
for
(
const
auto
&
c
:
m_postRunCommands
)
{
info
(
"++ Executing post-run statement: %s"
,
c
.
c_str
());
info
(
"++ Executing post-run statement: %s"
,
c
.
c_str
());
mgr
->
ApplyCommand
(
c
.
c_str
());
G4int
ret
=
mgr
->
ApplyCommand
(
c
.
c_str
());
if
(
ret
!=
0
)
{
except
(
"Failed to execute command: %s"
,
c
.
c_str
());
}
}
}
return
;
return
;
}
}
...
...
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