00001 # 00002 # Define Ecal convenience functions 00003 # author Stefano Argiro 00004 # version $Id: EcalPyUtils.py,v 1.1 2009/07/09 22:56:14 argiro Exp $ 00005 # 00006 00007 from pluginEcalPyUtils import * 00008 00009 def unhashEBIndex(idx) : 00010 00011 tmp= hashedIndexToEtaPhi(idx) 00012 return tmp[0],tmp[1] 00013 00014 def unhashEEIndex(idx) : 00015 00016 tmp=hashedIndexToXY(idx) 00017 return tmp[0],tmp[1],tmp[2] 00018 00019 def fromXML(filename): 00020 barrel=barrelfromXML(filename) 00021 endcap=endcapfromXML(filename) 00022 return barrel,endcap