00001 from AthenaCommon.SystemOfUnits import *
00002 from AthenaCommon.Constants import *
00003 from AthenaCommon.Logging import logging
00004 import traceback
00005 from RecExConfig.Configured import Configured
00006
00007
00008
00009
00010
00011
00012
00013 class Atlfast__ElectronIsolatorGetter ( Configured ) :
00014
00015
00016
00017
00018
00019 def configure(self):
00020
00021 try:
00022 from AtlfastAlgs.AtlfastAlgsConf import Atlfast__Isolator
00023 except Exception:
00024 mlog = logging.getLogger( 'Atlfast__ElectronIsolatorGetter::configure:' )
00025 mlog.error("could not import AtlfastAlgs.Atlfast__Isolator")
00026 print traceback.format_exc()
00027 return False
00028
00029 theElectronIsolator=Atlfast__Isolator("ElectronIsolator")
00030 self._algHandle_algHandle = theElectronIsolator;
00031
00032 theElectronIsolator.InputLocation = "/Event/AtlfastElectrons"
00033 theElectronIsolator.IsolatedOutputLocation = "/Event/AtlfastIsolatedElectrons"
00034 theElectronIsolator.NonIsolatedOutputLocation = "/Event/AtlfastNonIsolatedElectrons"
00035
00036 return True
00037
00038
00039
00040 def AlgHandle(self):
00041 return self._algHandle_algHandle