Definition at line 364 of file GMPBase.py.
◆ __init__()
| def GaudiMP.GMPBase.TESSerializer.__init__ |
( |
|
self, |
|
|
|
gaudiTESSerializer, |
|
|
|
evtDataSvc, |
|
|
|
nodeType, |
|
|
|
nodeID, |
|
|
|
log |
|
) |
| |
Definition at line 365 of file GMPBase.py.
365 def __init__(self, gaudiTESSerializer, evtDataSvc, nodeType, nodeID, log):
366 self.T = gaudiTESSerializer
367 self.evt = evtDataSvc
375 self.nodeType = nodeType
◆ Dump()
| def GaudiMP.GMPBase.TESSerializer.Dump |
( |
|
self | ) |
|
Definition at line 389 of file GMPBase.py.
391 tb = TBufferFile(TBuffer.kWrite)
392 self.T.dumpBuffer(tb)
393 self.tDump += time.time() - t
395 self.buffersOut.append(tb.Length())
◆ Load()
| def GaudiMP.GMPBase.TESSerializer.Load |
( |
|
self, |
|
|
|
tbuf |
|
) |
| |
Definition at line 379 of file GMPBase.py.
379 def Load(self, tbuf):
380 root = gbl.DataObject()
382 self.evt.setRoot(
"/Event", root)
384 self.T.loadBuffer(tbuf)
385 self.tLoad += time.time() - t
387 self.buffersIn.append(tbuf.Length())
◆ Report()
| def GaudiMP.GMPBase.TESSerializer.Report |
( |
|
self | ) |
|
Definition at line 398 of file GMPBase.py.
399 evIn =
"Events Loaded : %i" % (self.nIn)
400 evOut =
"Events Dumped : %i" % (self.nOut)
401 din = sum(self.buffersIn)
402 dataIn =
"Data Loaded : %i" % (din)
403 dataInMb =
"Data Loaded (MB) : %5.2f Mb" % (din / MB)
405 avgIn =
"Avg Buf Loaded : %5.2f Mb" % (din / (self.nIn * MB))
406 maxIn =
"Max Buf Loaded : %5.2f Mb" % (
max(self.buffersIn) / MB)
408 avgIn =
"Avg Buf Loaded : N/A"
409 maxIn =
"Max Buf Loaded : N/A"
410 dout = sum(self.buffersOut)
411 dataOut =
"Data Dumped : %i" % (dout)
412 dataOutMb =
"Data Dumped (MB) : %5.2f Mb" % (dout / MB)
414 avgOut =
"Avg Buf Dumped : %5.2f Mb" % (din / (self.nOut * MB))
415 maxOut =
"Max Buf Dumped : %5.2f Mb" % (
max(self.buffersOut) / MB)
417 avgOut =
"Avg Buf Dumped : N/A"
418 maxOut =
"Max Buf Dumped : N/A"
419 dumpTime =
"Total Dump Time : %5.2f" % (self.tDump)
420 loadTime =
"Total Load Time : %5.2f" % (self.tLoad)
436 self.log.name =
"%s-%i TESSerializer" % (self.nodeType, self.nodeID)
439 self.log.name =
"%s-%i" % (self.nodeType, self.nodeID)
◆ buffersIn
| GaudiMP.GMPBase.TESSerializer.buffersIn |
◆ buffersOut
| GaudiMP.GMPBase.TESSerializer.buffersOut |
◆ evt
| GaudiMP.GMPBase.TESSerializer.evt |
◆ log
| GaudiMP.GMPBase.TESSerializer.log |
◆ nIn
| GaudiMP.GMPBase.TESSerializer.nIn |
◆ nodeID
| GaudiMP.GMPBase.TESSerializer.nodeID |
◆ nodeType
| GaudiMP.GMPBase.TESSerializer.nodeType |
◆ nOut
| GaudiMP.GMPBase.TESSerializer.nOut |
| GaudiMP.GMPBase.TESSerializer.T |
◆ tDump
| GaudiMP.GMPBase.TESSerializer.tDump |
◆ tLoad
| GaudiMP.GMPBase.TESSerializer.tLoad |
The documentation for this class was generated from the following file: