|
| def | __init__ (self, queues, events, params, subworkers) |
| |
| def | processConfiguration (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 1249 of file GMPBase.py.
◆ __init__()
| def GaudiMP.GMPBase.Writer.__init__ |
( |
|
self, |
|
|
|
queues, |
|
|
|
events, |
|
|
|
params, |
|
|
|
subworkers |
|
) |
| |
Definition at line 1250 of file GMPBase.py.
1250 def __init__(self, queues, events, params, subworkers):
1251 GMPComponent.__init__(self,
"Writer", -2, queues, events, params, subworkers)
1253 self.writerDict = self.IdentifyWriters()
1255 self.status = [
False] * self.nWorkers
1256 self.log.name =
"Writer--2"
◆ Engine()
| def GaudiMP.GMPBase.Writer.Engine |
( |
|
self | ) |
|
Reimplemented from GaudiMP.GMPBase.GMPComponent.
Definition at line 1267 of file GMPBase.py.
1272 libc = ctypes.CDLL(
"libc.so.6")
1273 name = str(self.nodeType) + str(self.nodeID) +
"\0"
1274 libc.prctl(15, name, 0, 0, 0)
1276 startEngine = time.time()
1278 self.histoAgent = HistoAgent(self)
1279 self.filerecordsAgent = FileRecordsAgent(self)
1284 stopCriteria = self.nWorkers
1286 current = (current + 1) % self.nWorkers
1287 packet = self.evcoms[current].receive(timeout=0.01)
1290 if packet ==
"FINISHED":
1291 self.log.info(
"Writer got FINISHED flag : Worker %i" % (current))
1293 self.status[current] =
True
1294 if all(self.status):
1295 self.log.info(
"FINISHED recd from all workers, break loop")
1300 evtNumber, tbin = packet
1304 self.rTime += time.time() - t
1305 self.currentEvent = self.getEventNumber()
1306 self.evt.clearStore()
1307 self.eventLoopSyncer.set()
1308 self.log.name =
"Writer--2"
1309 self.log.info(
"Setting <Last> Event")
1310 self.lastEvent.set()
1313 [e.finalize()
for e
in self.evcoms]
1315 sc = self.histoAgent.Receive()
1316 sc = self.histoAgent.RebuildHistoStore()
1318 self.log.info(
"Histo Store rebuilt ok")
1320 self.log.warning(
"Histo Store Error in Rebuild")
1323 sc = self.filerecordsAgent.Receive()
1324 self.filerecordsAgent.Rebuild()
◆ processConfiguration()
| def GaudiMP.GMPBase.Writer.processConfiguration |
( |
|
self | ) |
|
Reimplemented from GaudiMP.GMPBase.GMPComponent.
Definition at line 1258 of file GMPBase.py.
1258 def processConfiguration(self):
1262 self.config[
"ApplicationMgr"].TopAlg = []
1263 self.config[
"EventSelector"].Input = []
1265 self.config[
"MessageSvc"].Format =
"%-13s " %
"[Writer]" + self.msgFormat
◆ currentEvent
| GaudiMP.GMPBase.Writer.currentEvent |
◆ filerecordsAgent
| GaudiMP.GMPBase.Writer.filerecordsAgent |
◆ histoAgent
| GaudiMP.GMPBase.Writer.histoAgent |
◆ status
| GaudiMP.GMPBase.Writer.status |
◆ writerDict
| GaudiMP.GMPBase.Writer.writerDict |
The documentation for this class was generated from the following file: