MuonKIsolatorGetter.py

Go to the documentation of this file.
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 ## @brief Configures an instance of Atlfast::KIsolator for muons.
00009 #
00010 # Supplies a handle if needed. 
00011 # StoreGate location of the Atlfast muon collection is given as input.
00012 # KIsolator is designed to be used alongside FastShower.
00013 
00014 class Atlfast__MuonKIsolatorGetter ( Configured )  :
00015 
00016     ## Creates and configures Atlfast::KIsolator instance.
00017     # This is done via the genConf autogenerated getter class.
00018     # StoreGate location of the Atlfast muon collection is given as input
00019 
00020     def configure(self):
00021 
00022         try:        
00023             from AtlfastAlgs.AtlfastAlgsConf import Atlfast__KIsolator
00024         except Exception:
00025             mlog = logging.getLogger( 'Atlfast__MuonKIsolatorGetter::configure:' )
00026             mlog.error("could not import AtlfastAlgs.Atlfast__KIsolator")
00027             print traceback.format_exc()
00028             return False
00029 
00030         theMuonKIsolator=Atlfast__KIsolator("MuonKIsolator")
00031         self._algHandle_algHandle = theMuonKIsolator;
00032 
00033         theMuonKIsolator.InputLocation             = "/Event/AtlfastMuons"
00034         theMuonKIsolator.IsolatedOutputLocation    = "/Event/AtlfastIsolatedMuons"
00035         theMuonKIsolator.NonIsolatedOutputLocation = "/Event/AtlfastNonIsolatedMuons"
00036         theMuonKIsolator.RClusterMatch             = 0.0
00037 
00038         return True
00039 
00040     ## Returns a handle to the Atlfast::KIsolator instance.
00041 
00042     def AlgHandle(self):
00043         return self._algHandle_algHandle

Generated on Mon Sep 24 14:19:11 2007 for AtlfastAlgs by  doxygen 1.5.1