Definition at line 359 of file GMPBase.py.
◆ __init__()
def GaudiMP.GMPBase.TESSerializer.__init__ |
( |
|
self, |
|
|
|
gaudiTESSerializer, |
|
|
|
evtDataSvc, |
|
|
|
nodeType, |
|
|
|
nodeID, |
|
|
|
log |
|
) |
| |
Definition at line 360 of file GMPBase.py.
360 def __init__(self, gaudiTESSerializer, evtDataSvc, nodeType, nodeID, log):
361 self.T = gaudiTESSerializer
362 self.evt = evtDataSvc
370 self.nodeType = nodeType
◆ Dump()
def GaudiMP.GMPBase.TESSerializer.Dump |
( |
|
self | ) |
|
Definition at line 384 of file GMPBase.py.
386 tb = TBufferFile(TBuffer.kWrite)
387 self.T.dumpBuffer(tb)
388 self.tDump += time.time() - t
390 self.buffersOut.append(tb.Length())
◆ Load()
def GaudiMP.GMPBase.TESSerializer.Load |
( |
|
self, |
|
|
|
tbuf |
|
) |
| |
Definition at line 374 of file GMPBase.py.
374 def Load(self, tbuf):
375 root = gbl.DataObject()
377 self.evt.setRoot(
"/Event", root)
379 self.T.loadBuffer(tbuf)
380 self.tLoad += time.time() - t
382 self.buffersIn.append(tbuf.Length())
◆ Report()
def GaudiMP.GMPBase.TESSerializer.Report |
( |
|
self | ) |
|
Definition at line 393 of file GMPBase.py.
394 evIn =
"Events Loaded : %i" % (self.nIn)
395 evOut =
"Events Dumped : %i" % (self.nOut)
396 din = sum(self.buffersIn)
397 dataIn =
"Data Loaded : %i" % (din)
398 dataInMb =
"Data Loaded (MB) : %5.2f Mb" % (din / MB)
400 avgIn =
"Avg Buf Loaded : %5.2f Mb" % (din / (self.nIn * MB))
401 maxIn =
"Max Buf Loaded : %5.2f Mb" % (
max(self.buffersIn) / MB)
403 avgIn =
"Avg Buf Loaded : N/A"
404 maxIn =
"Max Buf Loaded : N/A"
405 dout = sum(self.buffersOut)
406 dataOut =
"Data Dumped : %i" % (dout)
407 dataOutMb =
"Data Dumped (MB) : %5.2f Mb" % (dout / MB)
409 avgOut =
"Avg Buf Dumped : %5.2f Mb" % (din / (self.nOut * MB))
410 maxOut =
"Max Buf Dumped : %5.2f Mb" % (
max(self.buffersOut) / MB)
412 avgOut =
"Avg Buf Dumped : N/A"
413 maxOut =
"Max Buf Dumped : N/A"
414 dumpTime =
"Total Dump Time : %5.2f" % (self.tDump)
415 loadTime =
"Total Load Time : %5.2f" % (self.tLoad)
431 self.log.name =
"%s-%i TESSerializer" % (self.nodeType, self.nodeID)
434 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: