/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
DybAlg::TestRandom::EatRandom Class Reference
Inheritance diagram for DybAlg::TestRandom::EatRandom:
Inheritance graph
[legend]
Collaboration diagram for DybAlg::TestRandom::EatRandom:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Public Attributes

 clhep
 root
 maximum
 nrans

Detailed Description

Definition at line 87 of file TestRandom.py.


Constructor & Destructor Documentation

def DybAlg::TestRandom::EatRandom::__init__ (   self,
  name = 'EatRandom',
  nrans = 100 
)

Definition at line 89 of file TestRandom.py.

00090                                                        :
00091         '''
00092         '''
00093         DybPythonAlg.__init__(self,name)
00094         self.clhep = None
00095         self.root = None
00096         self.maximum = 100.0
00097         self.nrans = nrans
00098         return


Member Function Documentation

def DybAlg::TestRandom::EatRandom::initialize (   self)

Definition at line 99 of file TestRandom.py.

00100                         :
00101         sc = DybPythonAlg.initialize(self)
00102         if sc.isFailure(): return sc
00103         
00104         rndmsvc = self.svc('IRndmGenSvc','RndmGenSvc')
00105         assert rndmsvc.engine(), 'Good not get random engine from random svc'
00106         self.clhep = RandomEater(self.nrans,ClhepRandom(self.maximum,rndmsvc))
00107     
00108         self.root = RandomEater(self.nrans,RootRandom(self.maximum))
00109 
00110         return sc

def DybAlg::TestRandom::EatRandom::execute (   self)

Definition at line 111 of file TestRandom.py.

00112                      :
00113         for n in range(self.nrans):
00114             self.clhep()
00115             self.root()
00116             continue
00117 
00118         self.clhep.clear()
00119         self.root.clear()
00120     
00121         return SUCCESS

def DybAlg::TestRandom::EatRandom::finalize (   self)

Definition at line 122 of file TestRandom.py.

00123                       :
00124         assert 0 == self.root.check(),'ERROR, got bad ROOT randoms'
00125         assert 0 == self.clhep.check(),'ERROR, Got bad CLHEP randoms'
00126 
00127         return SUCCESS
00128 
        

Member Data Documentation

Definition at line 90 of file TestRandom.py.

Definition at line 90 of file TestRandom.py.

Definition at line 90 of file TestRandom.py.

Definition at line 90 of file TestRandom.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 10:09:44 for DybAlg by doxygen 1.7.4