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):
kwargs.setdefault('SkipIfNoChildren', True)
kwargs.setdefault('SkipIfNoParentBarcode', True)
import ROOT, cppyy
cppyy.loadDictionary('FaserDetDescrDict')
FaserRegion = ROOT.FaserDetDescr
import PyUtils.RootUtils as rootUtils
ROOT = rootUtils.import_root()
import cppyy
cppyy.load_library('FaserDetDescrDict')
from ROOT.FaserDetDescr import FaserRegion
kwargs.setdefault('ForceEndVtxInRegions', [FaserRegion.fFaserNeutrino,
FaserRegion.fFaserScintillator,
......
......@@ -155,9 +155,12 @@ def FaserParticleGenericFilterCfg(ConfigFlags, name="ISF_FaserGenericFilter", **
def FaserDipoleTruthStrategyCfg(ConfigFlags, name="ISF_FaserDipoleTruthStrategy", **kwargs):
result = ComponentAccumulator()
import ROOT, cppyy
cppyy.loadDictionary('FaserDetDescrDict')
FaserRegion = ROOT.FaserDetDescr
import PyUtils.RootUtils as rootUtils
ROOT = rootUtils.import_root()
import cppyy
cppyy.load_library('FaserDetDescrDict')
from ROOT.FaserDetDescr import FaserRegion
#
# Save truth in Dipole region
#
......@@ -170,9 +173,13 @@ def FaserDipoleTruthStrategyCfg(ConfigFlags, name="ISF_FaserDipoleTruthStrategy"
def FaserTruthStrategyCfg(ConfigFlags, name="ISF_FaserTruthStrategy", **kwargs):
result = ComponentAccumulator()
import ROOT, cppyy
cppyy.loadDictionary('FaserDetDescrDict')
FaserRegion = ROOT.FaserDetDescr
import PyUtils.RootUtils as rootUtils
ROOT = rootUtils.import_root()
import cppyy
cppyy.load_library('FaserDetDescrDict')
from ROOT.FaserDetDescr import FaserRegion
#
# 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