GaudiException instead of crash when outside of a DVAlgorithm
Addresses issue https://gitlab.cern.ch/lhcb-dpa/project/-/issues/173
When adding BPVIP() to FunTuple, it outputs the following message
### No IDVAlgorithm.
### You cannot use this function from outside of a DVAlgorithm.
### Are you in FunTuple or an Hlt selection?
ToolSvc.HybridFactory ERROR End of native Python printout to stderr
ToolSvc.HybridFactory ERROR Error has occured in Python: the problematic code is :
ToolSvc.HybridFactory ERROR # ==============================================================================
# python pseudomodule, generated for the hybrid factory'ToolSvc.HybridFactory'
# ==============================================================================
# Arguments:
# code = 'BPVIP()'
# actor = 'LoKi.Hybrid.Engine()'
# modules = [ 'LoKiPhys.decorators' , 'LoKiProtoParticles.decorators' , 'LoKiArrayFunctors.decorators' , 'LoKiCore.functions' , 'LoKiCore.math' ]
# lines = [ ]
# context = '
##! TRACK_MAX_PT = MAXTREE(ISBASIC & HASTRACK, PT, -1)'
# ==============================================================================
Edited by Patrick Koppenburg