Skip to content
Snippets Groups Projects
Commit f2e38b4d authored by Walter Lampl's avatar Walter Lampl
Browse files

RingerSelectorTools: Adjust dict-loading and enum handling for Root v6.22

parent 08499cf4
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!35630Syntax adjustments for root 6.22
......@@ -6,26 +6,17 @@ mlog = logging.getLogger( 'ElectronRingerSelectorDefs.py' )
from AthenaCommon.Configurable import Configurable
# Import from Ringer utilities:
import cppyy
try :
cppyy.loadDictionary('RingerSelectorToolsEnumsDict')
except RuntimeError as e:
mlog.error("Could not load RingerSelectorEnumsTools dictionary from cppyy.")
raise RuntimeError(e)
from ROOT import Ringer
import ROOT
ROOT.gSystem.Load('libRingerSelectorToolsEnumsDict.so')
from ROOT.Ringer import ElectronTAccept_v1
from RingerSelectorTools.RingerSelectorToolsConf import Ringer__AsgElectronRingerSelector
from CaloRingerAlgs.CaloRingerKeys import outputElectronRingSetsConfKey
# Import from CutID utilities:
try :
cppyy.loadDictionary('ElectronPhotonSelectorToolsDict')
except RuntimeError as e:
mlog.error("Could not load ElectronPhotonSelectorTools dictionary from cppyy.")
raise RuntimeError(e)
# Import egammaPID
ROOT.gSystem.Load('libElectronPhotonSelectorToolsDict.so')
from ROOT import egammaPID
from ElectronPhotonSelectorTools.ElectronIsEMSelectorMapping import electronPIDmenu
from ElectronPhotonSelectorTools.ConfiguredAsgElectronIsEMSelectors \
import ConfiguredAsgElectronIsEMSelector
......
......@@ -9,19 +9,12 @@
## Description: Retrieve selector from mask mapping
##=============================================================================
import cppyy
try :
cppyy.loadDictionary('RingerSelectorToolsEnumsDict')
except RuntimeError as e:
from AthenaCommon.Logging import logging
mlog = logging.getLogger( 'ElectronRingerSelectorMapping.py' )
mlog.error("Could not load RingerSelectorToolsEnums dictionary from cppyy.")
raise RuntimeError(e)
from ElectronPhotonSelectorTools.ElectronIsEMSelectorMapping import electronPIDmenu
# Import from Ringer selector tools dictionary:
import ROOT
ROOT.gSystem.Load('libRingerSelectorToolsEnumsDict.so')
from ROOT import Ringer
from RingerSelectorTools.ElectronRingerSelectorDefs import *
......@@ -54,8 +47,8 @@ class electronRingerPIDmenu (electronPIDmenu):
#####################################################################################################
ElectronRingerMap = {
(Ringer.Loose, electronRingerPIDmenu.testMenu): ElectronRingerSelectorTestLoose,
(Ringer.Medium, electronRingerPIDmenu.testMenu): ElectronRingerSelectorTestMedium,
(Ringer.Tight, electronRingerPIDmenu.testMenu): ElectronRingerSelectorTestTight,
(Ringer.NoCut, electronRingerPIDmenu.testMenu): ElectronRingerSelectorTestNoCut,
(Ringer.Requirement.Loose, electronRingerPIDmenu.testMenu): ElectronRingerSelectorTestLoose,
(Ringer.Requirement.Medium, electronRingerPIDmenu.testMenu): ElectronRingerSelectorTestMedium,
(Ringer.Requirement.Tight, electronRingerPIDmenu.testMenu): ElectronRingerSelectorTestTight,
(Ringer.Requirement.NoCut, electronRingerPIDmenu.testMenu): ElectronRingerSelectorTestNoCut,
}
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