Skip to content
Snippets Groups Projects
Commit 22dfcdeb authored by Dave Casper's avatar Dave Casper
Browse files

Fix python issue caused by ROOT 6.22

parent 0c5e8f4b
No related branches found
No related tags found
No related merge requests found
...@@ -87,9 +87,12 @@ def FaserTruthServiceCfg(ConfigFlags, name="FaserISF_TruthService", **kwargs): ...@@ -87,9 +87,12 @@ def FaserTruthServiceCfg(ConfigFlags, name="FaserISF_TruthService", **kwargs):
kwargs.setdefault('SkipIfNoChildren', True) kwargs.setdefault('SkipIfNoChildren', True)
kwargs.setdefault('SkipIfNoParentBarcode', True) kwargs.setdefault('SkipIfNoParentBarcode', True)
import ROOT, cppyy import PyUtils.RootUtils as rootUtils
cppyy.loadDictionary('FaserDetDescrDict') ROOT = rootUtils.import_root()
FaserRegion = ROOT.FaserDetDescr
import cppyy
cppyy.load_library('FaserDetDescrDict')
from ROOT.FaserDetDescr import FaserRegion
kwargs.setdefault('ForceEndVtxInRegions', [FaserRegion.fFaserNeutrino, kwargs.setdefault('ForceEndVtxInRegions', [FaserRegion.fFaserNeutrino,
FaserRegion.fFaserScintillator, FaserRegion.fFaserScintillator,
......
...@@ -155,9 +155,12 @@ def FaserParticleGenericFilterCfg(ConfigFlags, name="ISF_FaserGenericFilter", ** ...@@ -155,9 +155,12 @@ def FaserParticleGenericFilterCfg(ConfigFlags, name="ISF_FaserGenericFilter", **
def FaserDipoleTruthStrategyCfg(ConfigFlags, name="ISF_FaserDipoleTruthStrategy", **kwargs): def FaserDipoleTruthStrategyCfg(ConfigFlags, name="ISF_FaserDipoleTruthStrategy", **kwargs):
result = ComponentAccumulator() result = ComponentAccumulator()
import ROOT, cppyy
cppyy.loadDictionary('FaserDetDescrDict') import PyUtils.RootUtils as rootUtils
FaserRegion = ROOT.FaserDetDescr ROOT = rootUtils.import_root()
import cppyy
cppyy.load_library('FaserDetDescrDict')
from ROOT.FaserDetDescr import FaserRegion
# #
# Save truth in Dipole region # Save truth in Dipole region
# #
...@@ -170,9 +173,13 @@ def FaserDipoleTruthStrategyCfg(ConfigFlags, name="ISF_FaserDipoleTruthStrategy" ...@@ -170,9 +173,13 @@ def FaserDipoleTruthStrategyCfg(ConfigFlags, name="ISF_FaserDipoleTruthStrategy"
def FaserTruthStrategyCfg(ConfigFlags, name="ISF_FaserTruthStrategy", **kwargs): def FaserTruthStrategyCfg(ConfigFlags, name="ISF_FaserTruthStrategy", **kwargs):
result = ComponentAccumulator() result = ComponentAccumulator()
import ROOT, cppyy
cppyy.loadDictionary('FaserDetDescrDict') import PyUtils.RootUtils as rootUtils
FaserRegion = ROOT.FaserDetDescr ROOT = rootUtils.import_root()
import cppyy
cppyy.load_library('FaserDetDescrDict')
from ROOT.FaserDetDescr import FaserRegion
# #
# Save truth in all regions except Dipole # Save truth in all regions except Dipole
# #
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment