CMS 3D CMS Logo

EcalPyUtils.py
Go to the documentation of this file.
1 #
2 # Define Ecal convenience functions
3 # author Stefano Argiro
4 # version $Id$
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 fromXML(filename)
Definition: EcalPyUtils.py:19
def unhashEEIndex(idx)
Definition: EcalPyUtils.py:14
std::vector< int > hashedIndexToXY(int hashedindex)
Definition: EcalPyUtils.cc:27
std::vector< int > hashedIndexToEtaPhi(int hashedindex)
Definition: EcalPyUtils.cc:18
def unhashEBIndex(idx)
Definition: EcalPyUtils.py:9