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

In This Package:

__init__.py

Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 __all__ = ['Configure']
00004 
00005 def realPath(pathname):
00006     from os import path
00007     return path.normpath( path.realpath( path.expandvars(pathname) ) )
00008 
00009 class Configure:
00010     '''
00011     Create default configuration for DbiDataSvc.
00012 
00013     Changes to service properties from their defaults can be made in
00014     individual job option scripts by accessing them via DataSvcConf.
00015     '''
00016 
00017     def __init__(self,
00018                  feeCableMapPath = '$DATASVCROOT/share/feeCableMap.txt',
00019                  pmtSimDataPath = '$DATASVCROOT/share/pmtDataTable.txt',
00020                  feeSimDataPath = '$DATASVCROOT/share/feeDataTable.txt',
00021                  pmtCalibDataPath = '$DATASVCROOT/share/pmtCalibTable.txt',
00022                  feeCalibDataPath = '$DATASVCROOT/share/feeCalibTable.txt'):
00023         '''
00024         Configure DataSvc.
00025         '''
00026         self.setFeeCableMap(feeCableMapPath)
00027         self.setPmtSimData(pmtSimDataPath)
00028         self.setFeeSimData(feeSimDataPath)
00029         self.setPmtCalibData(pmtCalibDataPath)
00030         self.setFeeCalibData(feeCalibDataPath)
00031         return
00032 
00033     def setFeeCableMap(self, feeCableMapPath):
00034         ''' Set the FEE/PMT/Hardware cable connections data file''' 
00035         from DbiDataSvc.DbiDataSvcConf import DbiCableSvc
00036         cableSvc = DbiCableSvc()
00037         #cableSvc.FeeCableMap = realPath( feeCableMapPath )
00038         return
00039 
00040     def setPmtSimData(self, pmtSimDataPath):
00041         ''' Set the simulation input parameter data file''' 
00042         from DbiDataSvc.DbiDataSvcConf import DbiSimDataSvc
00043         simDataSvc = DbiSimDataSvc()
00044         #simDataSvc.PmtDataFile = realPath( pmtSimDataPath )
00045         return
00046 
00047     def setFeeSimData(self, feeSimDataPath):
00048         ''' Set the simulation input parameter data file''' 
00049         from DbiDataSvc.DbiDataSvcConf import DbiSimDataSvc
00050         simDataSvc = DbiSimDataSvc()
00051         #simDataSvc.FeeDataFile = realPath( feeSimDataPath )
00052         return
00053 
00054     def setPmtCalibData(self, pmtCalibDataPath):
00055         ''' Set the calibration input parameter data file''' 
00056         from DbiDataSvc.DbiDataSvcConf import DbiCalibDataSvc
00057         calibDataSvc = DbiCalibDataSvc()
00058         #calibDataSvc.PmtDataFile = realPath( pmtCalibDataPath )
00059         return
00060 
00061     def setFeeCalibData(self, feeCalibDataPath):
00062         ''' Set the calibration input parameter data file''' 
00063         from DbiDataSvc.DbiDataSvcConf import DbiCalibDataSvc
00064         calibDataSvc = DbiCalibDataSvc()
00065         #calibDataSvc.FeeDataFile = realPath( feeCalibDataPath )
00066         return
00067 
00068     
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:21:48 2011 for DbiDataSvc by doxygen 1.4.7