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

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Public Attributes

 cableSvc
 pmtCalibSvc

Detailed Description

Definition at line 8 of file TestCalibDataSvc.py.


Constructor & Destructor Documentation

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

Definition at line 9 of file TestCalibDataSvc.py.

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


Member Function Documentation

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

Definition at line 13 of file TestCalibDataSvc.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         self.pmtCalibSvc = self.svc('ICalibDataSvc','CalibDataSvc')
00020         print "===========================================================\n\n"
00021 
00022         svcMode = service_mode()
00023         adPmtSensors = get_sensors(self.cableSvc,svcMode)
00024 
00025         hrdwTypes = ["kUnknown","kPmt8inch","kPmt2inch","kRpc","kFee","kFec","kRot","kRom","kHighVoltage"]
00026         print "  number of sensors =",adPmtSensors.size()
00027         print "  Sensor Status SpeHigh sigmaSpe SpeLow Toff Tspr Eff PreP AfterP Dark"
00028         for sens in adPmtSensors:
00029             pmtData = self.pmtCalibSvc.pmtCalibData(sens, svcMode)
00030             assert pmtData, 'Got null pmtData for context %s' % svcMode.context().AsString()
00031             print ' '.join([ str(elem) for elem in [pmtData.m_pmtId.fullPackedData(),
00032                                                     pmtData.m_status,
00033                                                     pmtData.m_speHigh,
00034                                                     pmtData.m_sigmaSpeHigh,
00035                                                     pmtData.m_speLow,
00036                                                     pmtData.m_timeOffset,
00037                                                     pmtData.m_timeSpread,
00038                                                     pmtData.m_efficiency,
00039                                                     pmtData.m_prePulseProb,
00040                                                     pmtData.m_afterPulseProb,
00041                                                     pmtData.m_darkRate] ])
00042         print "\n\n==========================================================="
00043         return SUCCESS

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

Definition at line 44 of file TestCalibDataSvc.py.

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

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

Definition at line 48 of file TestCalibDataSvc.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 TestCalibDataSvc.py.

Definition at line 13 of file TestCalibDataSvc.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