/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
DataSvc::TestCableSvc::TestAlg Class Reference
Inheritance diagram for DataSvc::TestCableSvc::TestAlg:
Inheritance graph
[legend]
Collaboration diagram for DataSvc::TestCableSvc::TestAlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Public Attributes

 cableSvc

Detailed Description

Definition at line 8 of file TestCableSvc.py.


Constructor & Destructor Documentation

def DataSvc::TestCableSvc::TestAlg::__init__ (   self,
  name 
)

Definition at line 9 of file TestCableSvc.py.

00010                            :
00011         DybPythonAlg.__init__(self,name)
00012         print "Making TestAlg",name


Member Function Documentation

def DataSvc::TestCableSvc::TestAlg::initialize (   self)

Definition at line 13 of file TestCableSvc.py.

00014                         :
00015         status = DybPythonAlg.initialize(self)
00016         print "Init TestAlg",self.name()
00017         if status.isFailure(): return status
00018         self.cableSvc = self.svc('ICableSvc','CableSvc')
00019         print "===========================================================\n\n"
00020 
00021         svcMode = service_mode()
00022         adPmtSensors = get_sensors(self.cableSvc,svcMode)
00023 
00024         print "  number of sensors =",adPmtSensors.size()
00025         print "  Detector \t Ring \t Colmn \t HrdwType  PmtHrdwId \t DAQChannel \t ElecHrdwType \t FEEHrdwId FEEHrdwConnector"
00026         for sens in adPmtSensors:
00027             pmtHrdw = self.cableSvc.pmtHardwareId(sens, svcMode)
00028             chan = self.cableSvc.feeChannelId(sens, svcMode)
00029             feeHrdw = self.cableSvc.feeHardwareId(chan, svcMode)
00030 
00031             #assert 1 <= pmtHrdw.type() <= 2, \
00032             #    'Got non PMT hardware type in context: %s, sens: %s, hrdw: %s ' % \
00033             #    (svcMode.context().AsString(),sens.asString(),hex(pmtHrdw.fullPackedData()))
00034 
00035             daqIndex = "%2d %2d" % (chan.board(), chan.connector())
00036             pmtHrdwId = "%4d" % pmtHrdw.id()
00037             print " ",sens.detName(),"\t ",sens.ring(),"\t ",sens.column(),"\t",\
00038                 hw_string(pmtHrdw.type()),"(",pmtHrdw.type(),")",\
00039                 " ",pmtHrdwId,"\t ",daqIndex,"\t ",hw_string(feeHrdw.type()),\
00040                 "\t\t ",feeHrdw.boardId(),"\t  ",feeHrdw.connector()
00041             
00042         print "\n\n==========================================================="
00043         return SUCCESS

def DataSvc::TestCableSvc::TestAlg::execute (   self)

Definition at line 44 of file TestCableSvc.py.

00045                      :
00046         print "Executing TestAlg",self.name()
00047         return SUCCESS

def DataSvc::TestCableSvc::TestAlg::finalize (   self)

Definition at line 48 of file TestCableSvc.py.

00049                       :
00050         print "Finalizing TestAlg",self.name()
00051         status = DybPythonAlg.finalize(self)
00052         return status


Member Data Documentation

Definition at line 13 of file TestCableSvc.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:24 for DataSvc by doxygen 1.7.4