Public Member Functions | |
def | __init__ |
def | initialize |
def | execute |
def | finalize |
def | __init__ |
def | initialize |
def | execute |
def | finalize |
def | verbose |
def | debug |
def | info |
def | warning |
def | error |
def | fatal |
def | getAES |
Public Attributes | |
cableSvcName | |
calibDataSvcName | |
cableSvc | |
pmtCalibSvc | |
msgSvc | |
archiveSvc | |
stats |
Definition at line 19 of file TestDbiDataSvc.py.
def DbiDataSvc::TestDbiDataSvc::TestAlg::__init__ | ( | self, | ||
name | ||||
) |
Definition at line 20 of file TestDbiDataSvc.py.
00020 : 00021 DybPythonAlg.__init__(self,name) 00022 self.cableSvcName = 'DbiCableSvc' 00023 self.calibDataSvcName = 'DbiCalibDataSvc' 00024 print "Making TestAlg",name 00025 def initialize(self):
def DbiDataSvc::TestDbiDataSvc::TestAlg::initialize | ( | self | ) |
Definition at line 26 of file TestDbiDataSvc.py.
00026 : 00027 status = DybPythonAlg.initialize(self) 00028 print "Init TestAlg",self.name() 00029 if status.isFailure(): return status 00030 self.cableSvc = self.svc('ICableSvc',self.cableSvcName) 00031 self.pmtCalibSvc = self.svc('ICalibDataSvc',self.calibDataSvcName) 00032 print "===========================================================\n\n" 00033 # Select all sites 00034 context = Context() 00035 context.SetSite(Site.kSAB) 00036 context.SetDetId(DetectorId.kAD1) 00037 context.SetSimFlag(SimFlag.kData) 00038 timeStamp = TimeStamp(2010,8,1,0,0,0) 00039 context.SetTimeStamp(timeStamp); 00040 print context.AsString() 00041 svcMode = ServiceMode(context,0) 00042 adPmtSensors = self.cableSvc.adPmtSensors(svcMode) 00043 hrdwTypes = ["kUnknown","kPmt8inch","kPmt2inch","kRpc","kFee","kFec","kRot","kRom","kHighVoltage"] 00044 print " number of sensors =",adPmtSensors.size() 00045 print " Detector \t Ring \t Colmn \t HrdwType PmtHrdwId \t DAQChannel \t ElecHrdwType \t FEEHrdwId FEEHrdwConnector" 00046 for sens in adPmtSensors: 00047 pmtHrdw = self.cableSvc.pmtHardwareId(sens, svcMode) 00048 chan = self.cableSvc.feeChannelId(sens, svcMode) 00049 feeHrdw = self.cableSvc.feeHardwareId(chan, svcMode) 00050 00051 daqIndex = "%2d %2d" % (chan.board(), chan.connector()) 00052 pmtHrdwId = "%4d" % pmtHrdw.id() 00053 print " ",sens.detName(),"\t ",sens.ring(),"\t ",sens.column(),"\t",hrdwTypes[pmtHrdw.type()]," ",pmtHrdwId,"\t ",daqIndex,"\t ",hrdwTypes[feeHrdw.type()],"\t\t ",feeHrdw.boardId(),"\t ",feeHrdw.connector() 00054 00055 print "\n\n===========================================================" 00056 00057 print " Sensor Status SpeHigh sigmaSpe SpeLow Toff Tspr Eff PreP AfterP Dark" 00058 for sens in adPmtSensors: 00059 pmtData = self.pmtCalibSvc.pmtCalibData(sens, svcMode) 00060 print ' '.join([ str(elem) for elem in [pmtData.m_pmtId.fullPackedData(), 00061 pmtData.m_status, 00062 pmtData.m_speHigh, 00063 pmtData.m_sigmaSpeHigh, 00064 pmtData.m_speLow, 00065 pmtData.m_timeOffset, 00066 pmtData.m_timeSpread, 00067 pmtData.m_efficiency, 00068 pmtData.m_prePulseProb, 00069 pmtData.m_afterPulseProb, 00070 pmtData.m_darkRate] ]) 00071 print "\n\n===========================================================" 00072 return SUCCESS 00073 def execute(self):
def DbiDataSvc::TestDbiDataSvc::TestAlg::execute | ( | self | ) |
def DbiDataSvc::TestDbiDataSvc::TestAlg::finalize | ( | self | ) |
Definition at line 78 of file TestDbiDataSvc.py.
00078 : 00079 print "Finalizing TestAlg",self.name() 00080 status = DybPythonAlg.finalize(self) 00081 return status 00082 cableSvcName = "DbiCableSvc"
Definition at line 22 of file TestDbiDataSvc.py.
Definition at line 23 of file TestDbiDataSvc.py.
Definition at line 30 of file TestDbiDataSvc.py.
Definition at line 31 of file TestDbiDataSvc.py.