Public Member Functions | |
def | __init__ |
def | applyArgs |
def | setCableSvc |
def | setSimDataSvc |
def | setCalibDataSvc |
def | setFeeCableMap |
def | setPmtSimData |
def | setFeeSimData |
def | setPmtCalibData |
def | setFeeCalibData |
Public Attributes | |
cableSvc | |
simDataSvc | |
calibDataSvc |
Setup configuration for DataSvc.
Definition at line 7 of file __init__.py.
def DataSvc::__init__::DataSvcConfigure::__init__ | ( | self | ) |
Setup default configuration of DataSvc.
Definition at line 11 of file __init__.py.
00013 : 00014 ''' 00015 Setup default configuration of DataSvc. 00016 ''' 00017 cableSvcName = "StaticCableSvc" 00018 simDataSvcName = "StaticSimDataSvc" 00019 calibDataSvcName = "StaticCalibDataSvc" 00020 #feeCableMapPath = '$DATASVCROOT/share/feeCableMap.txt' 00021 feeCableMapPath = '' 00022 pmtSimDataPath = '$DATASVCROOT/share/pmtDataTable.txt' 00023 feeSimDataPath = '$DATASVCROOT/share/feeDataTable.txt' 00024 pmtCalibDataPath = '$DATASVCROOT/share/pmtCalibTable.txt' 00025 feeCalibDataPath = '$DATASVCROOT/share/feeCalibTable.txt' 00026 00027 self.setCableSvc( cableSvcName ) 00028 self.setFeeCableMap( feeCableMapPath ) 00029 00030 self.setSimDataSvc( simDataSvcName ) 00031 self.setPmtSimData( pmtSimDataPath ) 00032 self.setFeeSimData( feeSimDataPath ) 00033 00034 self.setCalibDataSvc( calibDataSvcName ) 00035 self.setPmtCalibData( pmtCalibDataPath ) 00036 self.setFeeCalibData( feeCalibDataPath ) return
def DataSvc::__init__::DataSvcConfigure::applyArgs | ( | self, | ||
args, | ||||
kwd | ||||
) |
Generic function for setting members based on arguments
Definition at line 37 of file __init__.py.
00039 : 00040 ''' Generic function for setting members based on arguments ''' 00041 memberNames = kwd.keys() 00042 # I could use some python tricks to shorten this, but then no 00043 # one would understand it. 00044 for member in memberNames: 00045 value = kwd[member] 00046 if member == "cableSvc": 00047 self.setCableSvc( value ) 00048 elif member == "simDataSvc": 00049 self.setSimDataSvc( value ) 00050 elif member == "calibDataSvc": 00051 self.setCalibDataSvc( value ) 00052 elif member == "feeCableMapPath": 00053 self.setFeeCableMap( value ) 00054 elif member == "pmtSimDataPath": 00055 self.setPmtSimData( value ) 00056 elif member == "feeSimDataPath": 00057 self.setFeeSimData( value ) 00058 elif member == "pmtCalibDataPath": 00059 self.setPmtCalibData( value ) 00060 elif member == "feeCalibDataPath": 00061 self.setFeeCalibData( value ) 00062 else: print "Error: DataSvc: Unknown option \"%s\"" % (member)
def DataSvc::__init__::DataSvcConfigure::setCableSvc | ( | self, | ||
cableSvcName | ||||
) |
Definition at line 63 of file __init__.py.
00063 : DataSvc: Unknown option \"%s\"" % (member) 00064 00065 def setCableSvc(self, cableSvcName): 00066 if cableSvcName == "StaticCableSvc": 00067 from DataSvc.DataSvcConf import StaticCableSvc 00068 self.cableSvc = StaticCableSvc() 00069 elif cableSvcName == "DbiCableSvc": 00070 from DbiDataSvc.DbiDataSvcConf import DbiCableSvc 00071 self.cableSvc = DbiCableSvc() 00072 else: 00073 print "Error: DataSvc: Unknown cable service \"%s\"" % (
def DataSvc::__init__::DataSvcConfigure::setSimDataSvc | ( | self, | ||
simDataSvcName | ||||
) |
Definition at line 74 of file __init__.py.
00076 : 00077 if simDataSvcName == "StaticSimDataSvc": 00078 from DataSvc.DataSvcConf import StaticSimDataSvc 00079 self.simDataSvc = StaticSimDataSvc() 00080 elif simDataSvcName == "DbiSimDataSvc": 00081 from DbiDataSvc.DbiDataSvcConf import DbiSimDataSvc 00082 self.simDataSvc = DbiSimDataSvc() 00083 else: 00084 print "Error: DataSvc: Unknown sim data service \"%s\"" % ( simDataSvcName)
def DataSvc::__init__::DataSvcConfigure::setCalibDataSvc | ( | self, | ||
calibDataSvcName | ||||
) |
Definition at line 85 of file __init__.py.
00087 : 00088 if calibDataSvcName == "StaticCalibDataSvc": 00089 from DataSvc.DataSvcConf import StaticCalibDataSvc 00090 self.calibDataSvc = StaticCalibDataSvc() 00091 elif calibDataSvcName == "DbiCalibDataSvc": 00092 from DbiDataSvc.DbiDataSvcConf import DbiCalibDataSvc 00093 self.calibDataSvc = DbiCalibDataSvc() 00094 else: 00095 print "Error: DataSvc: Unknown calib data service \"%s\"" % ( calibDataSvcName)
def DataSvc::__init__::DataSvcConfigure::setFeeCableMap | ( | self, | ||
feeCableMapPath | ||||
) |
Set the FEE/PMT/Hardware cable connections data file
Definition at line 96 of file __init__.py.
00098 : 00099 ''' Set the FEE/PMT/Hardware cable connections data file''' 00100 #self.cableSvc.FeeCableMap = realpath( feeCableMapPath ) 00101 self.cableSvc.FeeCableMap = feeCableMapPath return
def DataSvc::__init__::DataSvcConfigure::setPmtSimData | ( | self, | ||
pmtSimDataPath | ||||
) |
Set the simulation input parameter data file
Definition at line 102 of file __init__.py.
00104 : 00105 ''' Set the simulation input parameter data file''' 00106 self.simDataSvc.PmtDataFile = realpath( pmtSimDataPath ) return
def DataSvc::__init__::DataSvcConfigure::setFeeSimData | ( | self, | ||
feeSimDataPath | ||||
) |
Set the simulation input parameter data file
Definition at line 107 of file __init__.py.
00109 : 00110 ''' Set the simulation input parameter data file''' 00111 self.simDataSvc.FeeDataFile = realpath( feeSimDataPath ) return
def DataSvc::__init__::DataSvcConfigure::setPmtCalibData | ( | self, | ||
pmtCalibDataPath | ||||
) |
Set the calibration input parameter data file
Definition at line 112 of file __init__.py.
00114 : 00115 ''' Set the calibration input parameter data file''' 00116 self.calibDataSvc.PmtDataFile = realpath( pmtCalibDataPath ) return
def DataSvc::__init__::DataSvcConfigure::setFeeCalibData | ( | self, | ||
feeCalibDataPath | ||||
) |
Set the calibration input parameter data file
Definition at line 117 of file __init__.py.
00119 : 00120 ''' Set the calibration input parameter data file''' 00121 self.calibDataSvc.FeeDataFile = realpath( feeCalibDataPath ) return
Definition at line 66 of file __init__.py.
Definition at line 77 of file __init__.py.
Definition at line 88 of file __init__.py.