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

In This Package:

XmlDetDesc::__init__::Configure Class Reference

List of all members.

Public Member Functions

def __init__

Detailed Description

Configure XmlDetDesc package.

Use like:

from XmlDetDesc import Config as xmldetdesc
xmldetdesc()

or

xmldetdesc("/Path/to/dayabay.xml")

With no file name given it is assumed you have set up your
environment for the XmlDetDesc package.

Definition at line 3 of file __init__.py.


Member Function Documentation

def XmlDetDesc::__init__::Configure::__init__ (   self,
  xmlfile = None 
)

Definition at line 7 of file __init__.py.

00008             :
00009 
00010     from XmlDetDesc import Config as xmldetdesc
00011     xmldetdesc()
00012 
00013     or
00014 
00015     xmldetdesc("/Path/to/dayabay.xml")
00016 
00017     With no file name given it is assumed you have set up your
00018     environment for the XmlDetDesc package.
00019     """
00020 
00021     def __init__(self,xmlfile=None):
00022 
00023         if not xmlfile:
00024             import sys, os
00025             loc = os.getenv("XMLDETDESCROOT")
00026             if not loc:
00027                 print "Warning: no XMLDETDESCROOT variable, no detector description"
00028                 sys.exit(1)
00029             else:
00030                 loc += "/DDDB/dayabay.xml"
00031                 pass
00032             xmlfile = loc
00033             pass
00034 
00035 
00036         from XmlTools.XmlToolsConf import XmlCnvSvc, XmlParserSvc
00037         xmlcnv = XmlCnvSvc()
00038         xmlcnv.AllowGenericConversion = True
00039         xmlparser = XmlParserSvc()
00040     
00041         from Gaudi.Configuration import ApplicationMgr, DetectorPersistencySvc, DetectorDataSvc


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

Generated on Mon Apr 11 20:14:02 2011 for XmlDetDesc by doxygen 1.4.7