|
| def | __init__ (self, queues, events, params, subworkers) |
| |
| def | processConfiguration (self) |
| |
| def | DumpEvent (self) |
| |
| def | DoFirstEvent (self) |
| |
| def | Engine (self) |
| |
| def | __init__ (self, nodeType, nodeID, queues, events, params, subworkers) |
| |
| def | Start (self) |
| |
| def | SetupGaudiPython (self) |
| |
| def | StartGaudiPython (self) |
| |
| def | LoadTES (self, tbufferfile) |
| |
| def | getEventNumber (self) |
| |
| def | IdentifyWriters (self) |
| |
| def | dumpHistograms (self) |
| |
| def | Initialize (self) |
| |
| def | Finalize (self) |
| |
| def | Report (self) |
| |
Definition at line 701 of file GMPBase.py.
◆ __init__()
| def GaudiMP.GMPBase.Reader.__init__ |
( |
|
self, |
|
|
|
queues, |
|
|
|
events, |
|
|
|
params, |
|
|
|
subworkers |
|
) |
| |
Definition at line 702 of file GMPBase.py.
702 def __init__(self, queues, events, params, subworkers):
703 GMPComponent.__init__(self,
"Reader", -1, queues, events, params, subworkers)
◆ DoFirstEvent()
| def GaudiMP.GMPBase.Reader.DoFirstEvent |
( |
|
self | ) |
|
Definition at line 724 of file GMPBase.py.
724 def DoFirstEvent(self):
727 startFirst = time.time()
728 self.log.info(
"Reader : First Event")
729 if self.nOut == self.evtMax:
730 self.log.info(
"evtMax( %i ) reached" % (self.evtMax))
736 if not bool(self.evt[
"/Event"]):
737 self.log.warning(
"No More Events! (So Far : %i)" % (self.nOut))
742 if self.app ==
"Gauss":
743 lst = self.evt.getHistoNames()
746 lst = self.evt.getList()
747 if self.app ==
"DaVinci":
748 daqnode = self.evt.retrieveObject(
"/Event/DAQ").
registry()
750 self.evt.getList(daqnode, lst, daqnode.address().
par())
752 self.log.critical(
"Reader could not acquire TES List!")
755 self.log.info(
"Reader : TES List : %i items" % (len(lst)))
758 self.currentEvent = self.getEventNumber()
760 self.log.info(
"First Event Sent")
761 self.evcom.send((self.currentEvent, tb))
763 self.eventLoopSyncer.set()
764 self.evt.clearStore()
765 self.firstEvTime = time.time() - startFirst
◆ DumpEvent()
| def GaudiMP.GMPBase.Reader.DumpEvent |
( |
|
self | ) |
|
Definition at line 717 of file GMPBase.py.
718 tb = TBufferFile(TBuffer.kWrite)
720 self.ts.dumpBuffer(tb)
◆ Engine()
| def GaudiMP.GMPBase.Reader.Engine |
( |
|
self | ) |
|
Reimplemented from GaudiMP.GMPBase.GMPComponent.
Definition at line 768 of file GMPBase.py.
773 libc = ctypes.CDLL(
"libc.so.6")
774 name = str(self.nodeType) + str(self.nodeID) +
"\0"
775 libc.prctl(15, name, 0, 0, 0)
777 startEngine = time.time()
778 self.log.name =
"Reader"
779 self.log.info(
"Reader Process starting")
784 self.a.addAlgorithm(CollectHistograms(self))
786 self.log.info(
"Reader Beginning Distribution")
787 sc = self.DoFirstEvent()
789 self.log.info(
"Reader First Event OK")
791 self.log.critical(
"Reader Failed on First Event")
797 if self.nOut == self.evtMax:
798 self.log.info(
"evtMax( %i ) reached" % (self.evtMax))
801 if not self.stat.isSuccess():
802 self.log.critical(
"Reader is Damaged!")
807 self.rTime += time.time() - t
808 if not bool(self.evt[
"/Event"]):
809 self.log.warning(
"No More Events! (So Far : %i)" % (self.nOut))
811 self.currentEvent = self.getEventNumber()
813 self.evcom.send((self.currentEvent, tb))
816 self.eventLoopSyncer.set()
817 self.evt.clearStore()
818 self.log.info(
"Setting <Last> Event")
822 self.log.info(
"Reader : Event Distribution complete.")
823 self.evcom.finalize()
825 self.tTime = time.time() - startEngine
◆ processConfiguration()
| def GaudiMP.GMPBase.Reader.processConfiguration |
( |
|
self | ) |
|
Reimplemented from GaudiMP.GMPBase.GMPComponent.
Definition at line 705 of file GMPBase.py.
705 def processConfiguration(self):
710 self.config[
"ApplicationMgr"].TopAlg = []
711 self.config[
"ApplicationMgr"].OutStream = []
712 if "HistogramPersistencySvc" in self.config.
keys():
713 self.config[
"HistogramPersistencySvc"].OutputFile =
""
714 self.config[
"MessageSvc"].Format =
"%-13s " %
"[Reader]" + self.msgFormat
715 self.evtMax = self.config[
"ApplicationMgr"].EvtMax
◆ app
| GaudiMP.GMPBase.Reader.app |
◆ currentEvent
| GaudiMP.GMPBase.Reader.currentEvent |
◆ evtMax
| GaudiMP.GMPBase.Reader.evtMax |
◆ firstEvTime
| GaudiMP.GMPBase.Reader.firstEvTime |
◆ nOut
| GaudiMP.GMPBase.Reader.nOut |
◆ stat
| GaudiMP.GMPBase.Reader.stat |
◆ tTime
| GaudiMP.GMPBase.Reader.tTime |
The documentation for this class was generated from the following file: