3 __doc__ = 
"""Configure the AsgElectronLikelihoodTool with the quality 
    4              cuts and allow for (re-)setting of all provided cuts.""" 
    6 from ElectronPhotonSelectorTools.ElectronLikelihoodToolMapping 
import (
 
    7     ElectronLikelihoodMap, electronLHmenu)
 
    8 from AthenaCommon.Logging 
import logging
 
    9 from AthenaConfiguration.ComponentFactory 
import CompFactory
 
   10 from AthenaConfiguration.ComponentAccumulator 
import ComponentAccumulator
 
   17         menu=electronLHmenu.offlineMC21):
 
   19     mlog = logging.getLogger(
'AsgElectronLikelihoodTool')
 
   20     mlog.debug(
'Start configuration')
 
   22     AsgElectronLikelihoodTool = CompFactory.AsgElectronLikelihoodTool
 
   27         mlog.debug(
'ntuple: %s', ntuple)
 
   29         mlog.error(
"ElectronLH quality not found." 
   30                    "Please use an egammaIDQuality " 
   31                    "(ElectronPhotonSelectorTools/egammaPIDdefs.h). " 
   32                    "This function only supports standard electronLH IDs," 
   33                    "and not standard electron IDs or photon or forward IDs")
 
   39     tool.usePVContainer = flag.Tracking.doVertexFinding
 
   44     acc.setPrivateTools(tool)