Commit dfc49ff7 authored by Carlos Vazquez Sierra's avatar Carlos Vazquez Sierra 👁‍🗨
Browse files

Add LokiAddParticleHeader as a post-config option to include additional needed...

Add LokiAddParticleHeader as a post-config option to include additional needed headers for some CorePhysics functors cache
parent 687a2f9c
......@@ -83,6 +83,7 @@ if ( NOT "$ENV{CMTCONFIG}" STREQUAL "x86_64-slc6-gcc48-do0" )
${extraopts_${strip}}
options/SilenceErrors.py
options/DisableLoKiCacheFunctors.py
options/LoKiAddParticleHeader.py
LINK_LIBRARIES LoKiArrayFunctorsLib LoKiHltLib
DEPENDS ${conf_deps}
SPLIT 50)
......
#!/usr/bin/env gaudirun.py
### Need to add a header for some of the functors to prevent a crash.
def post_action_for_fix( ):
"""
Post-config action to add a header for Event/Particle.
"""
import Configurables
for obj, name in [('Tool', 'HybridFactory'), ('CoreFactory', 'CoreFactory'), ('HltFactory', 'HltFactory')]:
obj = 'LoKi__Hybrid__%s' % obj
try:
factory = getattr(Configurables, obj)
name = 'ToolSvc.%s' %name
factory(name).CppLines += ['#include "Event/Particle.h"',
'#include "LoKi/ParticleCuts.h"']
except AttributeError: pass
from Gaudi.Configuration import appendPostConfigAction
appendPostConfigAction( post_action_for_fix )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment