/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
XmlDetDesc::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.


Constructor & Destructor Documentation

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

Definition at line 21 of file __init__.py.

00022                                    :
00023 
00024         if not xmlfile:
00025             import sys, os
00026             loc = os.getenv("XMLDETDESCROOT")
00027             if not loc:
00028                 print "Warning: no XMLDETDESCROOT variable, no detector description"
00029                 sys.exit(1)
00030             else:
00031                 loc += "/DDDB/dayabay.xml"
00032                 pass
00033             xmlfile = loc
00034             pass
00035 
00036 
00037         from XmlTools.XmlToolsConf import XmlCnvSvc, XmlParserSvc
00038         xmlcnv = XmlCnvSvc()
00039         xmlcnv.AllowGenericConversion = True
00040         xmlparser = XmlParserSvc()
00041     
00042         from Gaudi.Configuration import ApplicationMgr, DetectorPersistencySvc, DetectorDataSvc
00043 
00044         app = ApplicationMgr()
00045         app.ExtSvc += [ xmlcnv , xmlparser ] 
00046     
00047         detper = DetectorPersistencySvc()
00048         detper.CnvServices.append(xmlcnv)
00049     
00050         detdat = DetectorDataSvc()
00051         detdat.UsePersistency = True
00052         detdat.DetDbRootName  = "dd"
00053         detdat.DetStorageType = 7
00054         detdat.DetDbLocation  = xmlfile

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