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

In This Package:

Classes | Functions | Variables
XmlDetDescGen::AdReflectorStructure::gen Namespace Reference

Classes

class  AdReflectorStructure
class  AdReflectors

Functions

def main

Variables

 Eight = True
string suffix = ''
string style = '2-2-4'

Function Documentation

def XmlDetDescGen::AdReflectorStructure::gen::main ( )

Definition at line 99 of file gen.py.

00099           : 
00100 
00101     import sys,os
00102 
00103     try:
00104         xddroot = sys.argv[1]
00105     except IndexError:
00106         xddroot = os.getenv("XMLDETDESCROOT")
00107 
00108     if not xddroot:
00109         print "No XMLDETDESCROOT directory given by environment or command line"
00110         print "Using current working directory"
00111         xddroot="."
00112 
00113     outdir=xddroot + "/DDDB/AdReflectorStructure" + suffix
00114     if not os.path.exists(outdir):
00115         print "Directory does not exist, please make first"
00116         print outdir
00117         sys.exit(1)
00118 
00119     
00120     print sys.argv[0],'Configuring for',style
00121 
00122     for site,siteid,adcount in zip(AdReflectorStructure.sites,AdReflectors.siteids,AdReflectors.adcounts):
00123 
00124         aps = AdReflectors(site,siteid,adcount)
00125         aps.write(outdir)
00126 
00127     aps = AdReflectorStructure()
00128     aps.write(outdir)
00129 
00130 

Variable Documentation

Definition at line 13 of file gen.py.

Definition at line 14 of file gen.py.

Definition at line 15 of file gen.py.

| 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