CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalPyUtils.py
Go to the documentation of this file.
1 #
2 # Define Ecal convenience functions
3 # author Stefano Argiro
4 # version $Id: EcalPyUtils.py,v 1.1 2009/07/09 22:56:14 argiro Exp $
5 #
6 
7 from pluginEcalPyUtils import *
8 
9 def unhashEBIndex(idx) :
10 
11  tmp= hashedIndexToEtaPhi(idx)
12  return tmp[0],tmp[1]
13 
14 def unhashEEIndex(idx) :
15 
16  tmp=hashedIndexToXY(idx)
17  return tmp[0],tmp[1],tmp[2]
18 
19 def fromXML(filename):
20  barrel=barrelfromXML(filename)
21  endcap=endcapfromXML(filename)
22  return barrel,endcap
def unhashEBIndex
Definition: EcalPyUtils.py:9
def unhashEEIndex
Definition: EcalPyUtils.py:14
std::vector< int > hashedIndexToXY(int hashedindex)
Definition: EcalPyUtils.cc:30
std::vector< int > hashedIndexToEtaPhi(int hashedindex)
Definition: EcalPyUtils.cc:21