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

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Public Attributes

 cableSvc
 pmtSimSvc

Detailed Description

Definition at line 11 of file TestSimDataSvc.py.


Constructor & Destructor Documentation

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

Definition at line 12 of file TestSimDataSvc.py.

00013                            :
00014         DybPythonAlg.__init__(self,name)
00015         print "Making TestAlg",name


Member Function Documentation

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

Definition at line 16 of file TestSimDataSvc.py.

00017                         :
00018         status = DybPythonAlg.initialize(self)
00019         print "Init TestAlg",self.name()
00020         if status.isFailure(): return status
00021         self.cableSvc = self.svc('ICableSvc','CableSvc')
00022         self.pmtSimSvc = self.svc('ISimDataSvc','SimDataSvc')
00023         print "===========================================================\n\n"
00024 
00025         svcMode = service_mode()
00026         adPmtSensors = get_sensors(self.cableSvc,svcMode)
00027 
00028         hrdwTypes = ["kUnknown","kPmt8inch","kPmt2inch","kRpc","kFee","kFec","kRot","kRom","kHighVoltage"]
00029         print "  number of sensors =",adPmtSensors.size()
00030         print "  Sensor  Gain FWHM Toff Tspr Eff PreP AfterP Dark"
00031         for sens in adPmtSensors:
00032             pmtData = self.pmtSimSvc.pmtSimData(sens, svcMode)
00033             if not pmtData:
00034                 print "No calibration data for PMT ring=%d,column=%d" % (sens.ring(),sens.column()) 
00035                 continue
00036             print ' '.join([ str(elem) for elem in [pmtData.m_pmtId.fullPackedData(),
00037                                                     pmtData.m_gain,
00038                                                     pmtData.m_sigmaGain,
00039                                                     pmtData.m_timeOffset/units.ns,
00040                                                     pmtData.m_timeSpread/units.ns,
00041                                                     pmtData.m_efficiency,
00042                                                     pmtData.m_prePulseProb,
00043                                                     pmtData.m_afterPulseProb,
00044                                                     pmtData.m_darkRate/units.hertz] ])
00045         print "\n\n==========================================================="
00046         return SUCCESS

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

Definition at line 47 of file TestSimDataSvc.py.

00048                      :
00049         print "Executing TestAlg",self.name()
00050         return SUCCESS

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

Definition at line 51 of file TestSimDataSvc.py.

00052                       :
00053         print "Finalizing TestAlg",self.name()
00054         status = DybPythonAlg.finalize(self)
00055         return status


Member Data Documentation

Definition at line 16 of file TestSimDataSvc.py.

Definition at line 16 of file TestSimDataSvc.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