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

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Public Attributes

 count
 detmask
 expected

Detailed Description

Definition at line 17 of file TestAbortEventAlg.py.


Constructor & Destructor Documentation

def DybAlg::TestAbortEventAlg::Chirp::__init__ (   self,
  detmask,
  expected,
  name = "Chirp" 
)

Definition at line 18 of file TestAbortEventAlg.py.

00019                                                          :
00020         DybPythonAlg.__init__(self,name)
00021         self.count = 0
00022         self.detmask = detmask
00023         self.expected = expected
00024         return 


Member Function Documentation

def DybAlg::TestAbortEventAlg::Chirp::initialize (   self)

Definition at line 25 of file TestAbortEventAlg.py.

00026                         :
00027         sc = DybPythonAlg.initialize(self)
00028         if sc.isFailure(): return sc
00029         self.info('Will expect %d occurances of detmask 0x%x' %(self.expected, self.detmask))
00030         return sc

def DybAlg::TestAbortEventAlg::Chirp::execute (   self)

Definition at line 31 of file TestAbortEventAlg.py.

00032                      :
00033         self.count += 1 
00034 
00035         self.info('counted %d for detmask 0x%x' % (self.count, self.detmask))
00036 
00037         evt = self.evtSvc()
00038         roh = evt['/Event/Readout/ReadoutHeader']
00039         detid = roh.context().GetDetId()
00040         detid = 1<<detid
00041         assert detid & self.detmask, 'Was able to see a ReadoutHeader with a detid (0x%x) not matching my detmask (0x%x)' % (detid, self.detmask)
00042         return SUCCESS

def DybAlg::TestAbortEventAlg::Chirp::finalize (   self)

Definition at line 43 of file TestAbortEventAlg.py.

00044                       :
00045         if self.count != self.expected:
00046             self.error('Counted unexpected number %d != %d' %(self.count,self.expected))
00047             return FAILURE
00048         self.info('Counted expected number %d' %self.expected)
        return SUCCESS

Member Data Documentation

Definition at line 18 of file TestAbortEventAlg.py.

Definition at line 18 of file TestAbortEventAlg.py.

Definition at line 18 of file TestAbortEventAlg.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