Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 10:47:59

0001 #
0002 # Define Ecal convenience functions
0003 # author Stefano Argiro
0004 # version $Id$
0005 #
0006 
0007 from pluginEcalPyUtils import *
0008 
0009 def unhashEBIndex(idx) :
0010     
0011     tmp= hashedIndexToEtaPhi(idx)
0012     return tmp[0],tmp[1]
0013 
0014 def unhashEEIndex(idx) :
0015     
0016     tmp=hashedIndexToXY(idx)
0017     return tmp[0],tmp[1],tmp[2]
0018 
0019 def fromXML(filename):
0020     barrel=barrelfromXML(filename)
0021     endcap=endcapfromXML(filename)
0022     return barrel,endcap