Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCb
Rec
Commits
3ac45cd4
Commit
3ac45cd4
authored
Nov 25, 2021
by
Patrick Koppenburg
🍃
Committed by
Rosen Matev
Dec 02, 2021
Browse files
GaudiExcpetion instead of crash when outside of a DVAlgorithm
Moved from
Phys@46844776
parent
82797d51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Phys/LoKiPhys/src/AuxDesktopBase.cpp
View file @
3ac45cd4
...
...
@@ -34,11 +34,21 @@ bool LoKi::AuxDesktopBase::allow_late_desktop_acquire( const bool allow ) {
}
// constructor from the desktop
LoKi
::
AuxDesktopBase
::
AuxDesktopBase
(
const
IDVAlgorithm
*
desktop
)
:
LoKi
::
AuxFunBase
(),
m_desktop
(
desktop
)
{}
LoKi
::
AuxDesktopBase
::
AuxDesktopBase
(
const
IDVAlgorithm
*
desktop
)
:
LoKi
::
AuxFunBase
(),
m_desktop
(
desktop
)
{
if
(
!
desktop
)
throw
GaudiException
(
"
\n
### No IDVAlgorithm.
\n
### You cannot use this function from outside of a "
"DVAlgorithm.
\n
### Are you in FunTuple or an Hlt selection?"
,
"LoKi::AuxDesktopBase::AuxDesktopBase"
,
StatusCode
::
FAILURE
);
}
// constructor from the desktop
LoKi
::
AuxDesktopBase
::
AuxDesktopBase
(
const
LoKi
::
Interface
<
IDVAlgorithm
>&
desktop
)
:
LoKi
::
AuxFunBase
(),
m_desktop
(
desktop
)
{}
:
LoKi
::
AuxFunBase
(),
m_desktop
(
desktop
)
{
if
(
!
desktop
)
throw
GaudiException
(
"
\n
### No IDVAlgorithm.
\n
### You cannot use this function from outside of a "
"DVAlgorithm.
\n
### Are you in FunTuple or an Hlt selection?"
,
"LoKi::AuxDesktopBase::AuxDesktopBase"
,
StatusCode
::
FAILURE
);
}
// copy constructor
LoKi
::
AuxDesktopBase
::
AuxDesktopBase
(
const
LoKi
::
AuxDesktopBase
&
right
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment