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

In This Package:

Public Member Functions | Public Attributes | Static Public Attributes
XmlDetDescGen::AdReflectorStructure::gen::AdReflectors Class Reference

List of all members.

Public Member Functions

def __init__
def write

Public Attributes

 site
 siteid
 adcount

Static Public Attributes

string lvtopname = "/dd/Geometry/AdDetails/lvTopESR"
string lvbotname = "/dd/Geometry/AdDetails/lvBotESR"
list siteids = [0x01,0x02,0x04]
list adcounts = [ 2, 2, 4]

Detailed Description

Definition at line 52 of file gen.py.


Constructor & Destructor Documentation

def XmlDetDescGen::AdReflectorStructure::gen::AdReflectors::__init__ (   self,
  site,
  siteid,
  adcount 
)

Definition at line 60 of file gen.py.

00061                                           :
00062         self.site = site
00063         self.siteid = siteid
00064         self.adcount = adcount
00065         pass


Member Function Documentation

def XmlDetDescGen::AdReflectorStructure::gen::AdReflectors::write (   self,
  outdir 
)

Definition at line 66 of file gen.py.

00067                           :
00068 
00069         from XmlDetDescGen.util import XmlFile, Comment
00070         from XmlDetDescGen.structure import DetElem,UserParameter
00071 
00072         for adn in range(0,self.adcount):
00073             adn += 1
00074 
00075             reflectors = []
00076 
00077             data = {
00078                    'site':self.site,
00079                    'siteid':self.siteid,
00080                    'adnum':adn,
00081                    }
00082                     
00083             de = DetElem('%(site)s-ad%(adnum)d-topesr'%data,
00084                         self.lvtopname,
00085                         npath="pvTopReflector/pvTopRefGap/pvTopESR",
00086                         support="/dd/Structure/AD/%(site)s-oil%(adnum)d"%data)
00087             reflectors.append(de)
00088                     
00089             de = DetElem('%(site)s-ad%(adnum)d-botesr'%data,
00090                         self.lvbotname,
00091                         npath="pvBotReflector/pvBotRefGap/pvBotESR",
00092                         support="/dd/Structure/AD/%(site)s-oil%(adnum)d"%data)
00093             reflectors.append(de)
00094 
00095             file = XmlFile()
00096             file.objects = reflectors
00097             file.write(outdir+"/%s%d.xml"%(self.site,adn))
00098             continue
          

Member Data Documentation

string XmlDetDescGen::AdReflectorStructure::gen::AdReflectors::lvtopname = "/dd/Geometry/AdDetails/lvTopESR" [static]

Definition at line 54 of file gen.py.

string XmlDetDescGen::AdReflectorStructure::gen::AdReflectors::lvbotname = "/dd/Geometry/AdDetails/lvBotESR" [static]

Definition at line 55 of file gen.py.

Definition at line 56 of file gen.py.

Definition at line 57 of file gen.py.

Definition at line 60 of file gen.py.

Definition at line 60 of file gen.py.

Definition at line 60 of file gen.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 09:56:07 for XmlDetDesc by doxygen 1.7.4