/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 | Public Attributes
DbiDataSvc::TestDbiDataSvc::TestAlg Class Reference
Inheritance diagram for DbiDataSvc::TestDbiDataSvc::TestAlg:
Inheritance graph
[legend]
Collaboration diagram for DbiDataSvc::TestDbiDataSvc::TestAlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __repr__
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
def initializeHeader
def finalizeHeader

Public Attributes

 cableSvcName
 calibDataSvcName
 timeString
 cableSvc
 pmtCalibSvc
 timeStamp
 msgSvc
 archiveSvc
 stats
 defaultInputLocation
 execNumber
 currentJobId

Detailed Description

Definition at line 36 of file TestDbiDataSvc.py.


Constructor & Destructor Documentation

def DbiDataSvc::TestDbiDataSvc::TestAlg::__init__ (   self,
  name 
)

Definition at line 37 of file TestDbiDataSvc.py.

00038                            :
00039         DybPythonAlg.__init__(self,name)
00040         self.cableSvcName = 'DbiCableSvc'
00041         self.calibDataSvcName = 'DbiCalibDataSvc'
00042         self.timeString = timeString 
00043         print "Making TestAlg",name


Member Function Documentation

def DbiDataSvc::TestDbiDataSvc::TestAlg::__repr__ (   self)

Definition at line 44 of file TestDbiDataSvc.py.

00045                       :
00046         return "TestAlg  cableSvcName %s calibDataSvcName %s timeString %s " % ( self.cableSvcName, self.calibDataSvcName, self.timeString )

def DbiDataSvc::TestDbiDataSvc::TestAlg::initialize (   self)

Definition at line 47 of file TestDbiDataSvc.py.

00048                         :
00049         status = DybPythonAlg.initialize(self)
00050         print "Init TestAlg",self.name()
00051         if status.isFailure(): return status
00052         self.cableSvc = self.svc('ICableSvc',self.cableSvcName)
00053         self.pmtCalibSvc = self.svc('ICalibDataSvc',self.calibDataSvcName)
00054         self.timeStamp = str2ts( self.timeString )
00055         print "==========================================================="
00056         print self
00057         print "===========================================================\n\n"
00058         # Select all sites
00059         context = Context()
00060         context.SetSite(Site.kSAB)
00061         context.SetDetId(DetectorId.kAD1)
00062         context.SetSimFlag(SimFlag.kData)
00063         context.SetTimeStamp(self.timeStamp);
00064         print context.AsString()
00065         svcMode = ServiceMode(context,0)
00066         adPmtSensors = self.cableSvc.adPmtSensors(svcMode)
00067         hrdwTypes = ["kUnknown","kPmt8inch","kPmt2inch","kRpc","kFee","kFec","kRot","kRom","kHighVoltage"]
00068         print "  number of sensors =",adPmtSensors.size()
00069         print "  Detector \t Ring \t Colmn \t HrdwType  PmtHrdwId \t DAQChannel \t ElecHrdwType \t FEEHrdwId FEEHrdwConnector"
00070         for sens in adPmtSensors:
00071             pmtHrdw = self.cableSvc.pmtHardwareId(sens, svcMode)
00072             chan = self.cableSvc.feeChannelId(sens, svcMode)
00073             feeHrdw = self.cableSvc.feeHardwareId(chan, svcMode)
00074 
00075             daqIndex = "%2d %2d" % (chan.board(), chan.connector())
00076             pmtHrdwId = "%4d" % pmtHrdw.id()
00077             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()
00078             
00079         print "\n\n==========================================================="
00080 
00081         print "  Sensor Status SpeHigh sigmaSpe SpeLow Toff Tspr Eff PreP AfterP Dark"
00082         for sens in adPmtSensors:
00083             pmtData = self.pmtCalibSvc.pmtCalibData(sens, svcMode)
00084             print ' '.join([ str(elem) for elem in [pmtData.m_pmtId.fullPackedData(),
00085                                                     pmtData.m_status,
00086                                                     pmtData.m_speHigh,
00087                                                     pmtData.m_sigmaSpeHigh,
00088                                                     pmtData.m_speLow,
00089                                                     pmtData.m_timeOffset,
00090                                                     pmtData.m_timeSpread,
00091                                                     pmtData.m_efficiency,
00092                                                     pmtData.m_prePulseProb,
00093                                                     pmtData.m_afterPulseProb,
00094                                                     pmtData.m_darkRate] ])
00095         print "\n\n==========================================================="
00096         return SUCCESS

def DbiDataSvc::TestDbiDataSvc::TestAlg::execute (   self)

Definition at line 97 of file TestDbiDataSvc.py.

00098                      :
00099         print "Executing TestAlg",self.name()
00100         return SUCCESS

def DbiDataSvc::TestDbiDataSvc::TestAlg::finalize (   self)

Definition at line 101 of file TestDbiDataSvc.py.

00102                       :
00103         print "Finalizing TestAlg",self.name()
00104         status = DybPythonAlg.finalize(self)
00105         return status


Member Data Documentation

Definition at line 37 of file TestDbiDataSvc.py.

Definition at line 37 of file TestDbiDataSvc.py.

Definition at line 37 of file TestDbiDataSvc.py.

Definition at line 47 of file TestDbiDataSvc.py.

Definition at line 47 of file TestDbiDataSvc.py.

Definition at line 47 of file TestDbiDataSvc.py.


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:59:43 for DbiDataSvc by doxygen 1.7.4