/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Functions | Variables
python::XmlDetDescChecks::coordsysdump Namespace Reference

Functions

def volumes
def vec2str
def v2v
def d2d

Variables

string site_de_pat = '/dd/Structure/DayaBay/%(site)s-rock'
string det_de_pat = '/dd/Structure/%(det)s/%(site)s-%(vol)s'
tuple zero = gbl.ROOT.Math.XYZPoint(0,0,0)
tuple xaxis = gbl.ROOT.Math.XYZPoint(1,0,0)
tuple yaxis = gbl.ROOT.Math.XYZPoint(0,1,0)
tuple zaxis = gbl.ROOT.Math.XYZPoint(0,0,1)
 last_site = None
 site_name = site_de_pat%d
 det_name = det_de_pat%d
tuple site_de = gaudiutil.deify(site_name)
tuple det_de = gaudiutil.deify(det_name)
tuple site_short_name = os.path.split(site_name)
tuple det_short_name = os.path.split(det_name)
tuple lorig = v2v(zero,det_de,site_de)
tuple lxaxis = d2d(zero,xaxis,det_de,site_de)
tuple lyaxis = d2d(zero,yaxis,det_de,site_de)
tuple lzaxis = d2d(zero,zaxis,det_de,site_de)

Function Documentation

def python::XmlDetDescChecks::coordsysdump::volumes ( )
Iterate over possible volumes. 

for v in volumes(): ...

Definition at line 19 of file coordsysdump.py.

00020              :
00021     '''
00022     Iterate over possible volumes. 
00023 
00024     for v in volumes(): ...
00025     '''
00026     for site in ['db', 'la', 'far']:
00027         det = 'Pool'
00028         for vol in ['iws','ows']:
00029             yield locals()
00030             continue            # vol
00031 
00032         numads = 2
00033         if site is 'far': numads = 4
00034         det = 'AD'
00035         for adnum in range(numads):
00036             adnum += 1
00037             for vol in ['%s%d'%(x,adnum) for x in ['ade','sst','oil','lso','gds']]:
00038                 yield locals()
00039                 continue        # vol
00040             continue            # adnum
00041 
00042         continue                # site
00043     raise StopIteration
    
def python::XmlDetDescChecks::coordsysdump::vec2str (   vec,
  unit_conv = 1 
)

Definition at line 44 of file coordsysdump.py.

00045                                :
00046     'Return string representation of given thing with .x()/.y()/.z()'
00047     return '[%.3f, %.3f, %.3f]' % (vec.x()/unit_conv, vec.y()/unit_conv, vec.z()/unit_conv)

def python::XmlDetDescChecks::coordsysdump::v2v (   vec,
  de1,
  de2 
)

Definition at line 48 of file coordsysdump.py.

00049                     :
00050     'Transform vec from de1 to global and global to de2'
00051     gvec = de1.geometry().toGlobal(vec)
00052     return de2.geometry().toLocal(gvec)

def python::XmlDetDescChecks::coordsysdump::d2d (   vec1,
  vec2,
  de1,
  de2 
)

Definition at line 53 of file coordsysdump.py.

00054                           :
00055     'Return the vector from vec1 to vec2 local to de1 expressed in de2 coordinates'
00056     lv1 = v2v(vec1,de1,de2)
00057     lv2 = v2v(vec2,de1,de2)
00058     lv1.SetXYZ(lv2.x()-lv1.x(),lv2.y()-lv1.y(),lv2.z()-lv1.z())
00059     return lv1
00060 
#css = gaudiutil.coordSvc()

Variable Documentation

string python::XmlDetDescChecks::coordsysdump::site_de_pat = '/dd/Structure/DayaBay/%(site)s-rock'

Definition at line 15 of file coordsysdump.py.

string python::XmlDetDescChecks::coordsysdump::det_de_pat = '/dd/Structure/%(det)s/%(site)s-%(vol)s'

Definition at line 16 of file coordsysdump.py.

tuple python::XmlDetDescChecks::coordsysdump::zero = gbl.ROOT.Math.XYZPoint(0,0,0)

Definition at line 61 of file coordsysdump.py.

tuple python::XmlDetDescChecks::coordsysdump::xaxis = gbl.ROOT.Math.XYZPoint(1,0,0)

Definition at line 62 of file coordsysdump.py.

tuple python::XmlDetDescChecks::coordsysdump::yaxis = gbl.ROOT.Math.XYZPoint(0,1,0)

Definition at line 63 of file coordsysdump.py.

tuple python::XmlDetDescChecks::coordsysdump::zaxis = gbl.ROOT.Math.XYZPoint(0,0,1)

Definition at line 64 of file coordsysdump.py.

Definition at line 69 of file coordsysdump.py.

Definition at line 71 of file coordsysdump.py.

Definition at line 72 of file coordsysdump.py.

Definition at line 73 of file coordsysdump.py.

Definition at line 74 of file coordsysdump.py.

Definition at line 76 of file coordsysdump.py.

Definition at line 77 of file coordsysdump.py.

Definition at line 84 of file coordsysdump.py.

Definition at line 85 of file coordsysdump.py.

Definition at line 86 of file coordsysdump.py.

Definition at line 87 of file coordsysdump.py.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:34 for XmlDetDescChecks by doxygen 1.7.4