Definition at line 9 of file readDataHeader.py.
◆ __init__()
def readDataHeader.ReadDataHeaderAlg.__init__ |
( |
|
self, |
|
|
|
name = 'ReadDataHeaderAlg' , |
|
|
|
totalEvents = 0 |
|
) |
| |
Definition at line 11 of file readDataHeader.py.
11 def __init__(self,name='ReadDataHeaderAlg', totalEvents=0):
12 super(ReadDataHeaderAlg,self).
__init__(name=name)
13 self.totalEvents = totalEvents
◆ execute()
def readDataHeader.ReadDataHeaderAlg.execute |
( |
|
self | ) |
|
Definition at line 21 of file readDataHeader.py.
22 if self.sg.
contains(
'DataHeader',
'EventSelector'):
23 dh = self.sg.
retrieve(
'DataHeader',
'EventSelector')
26 if self.nevt % 100 == 0:
27 logging.info(f
'DataHeader Size {sz} in event #{self.nevt}')
31 logging.debug(f
' >> Key {it.getKey()} : Token {it.getToken().toString()}')
34 logging.debug(
' >> Successfully read through the DataHeader')
36 logging.error(f
' >> Negative DataHeader size ({sz})!')
37 return StatusCode.Failure
39 logging.error(
'Could NOT find the DataHeader!')
40 return StatusCode.Failure
42 return StatusCode.Success
◆ finalize()
def readDataHeader.ReadDataHeaderAlg.finalize |
( |
|
self | ) |
|
Definition at line 44 of file readDataHeader.py.
48 if self.nevt != self.totalEvents:
49 logging.error(f
'Expected {self.totalEvents} events but processed {self.nevt}!')
50 logging.error(
'This most likely means we could not process some events successfully!')
51 return StatusCode.Failure
53 return StatusCode.Success
◆ initialize()
def readDataHeader.ReadDataHeaderAlg.initialize |
( |
|
self | ) |
|
◆ nevt
readDataHeader.ReadDataHeaderAlg.nevt |
◆ sg
readDataHeader.ReadDataHeaderAlg.sg |
◆ totalEvents
readDataHeader.ReadDataHeaderAlg.totalEvents |
The documentation for this class was generated from the following file: