GaudiMP.GMPBase.TESSerializer Class Reference
Inheritance diagram for GaudiMP.GMPBase.TESSerializer:
Collaboration diagram for GaudiMP.GMPBase.TESSerializer:

Public Member Functions

def __init__ (self, gaudiTESSerializer, evtDataSvc, nodeType, nodeID, log)
 
def Load (self, tbuf)
 
def Dump (self)
 
def Report (self)
 
def __init__ (self, gaudiTESSerializer, evtDataSvc, nodeType, nodeID, log)
 
def Load (self, tbuf)
 
def Dump (self)
 
def Report (self)
 

Public Attributes

 T
 
 evt
 
 buffersIn
 
 buffersOut
 
 nIn
 
 nOut
 
 tDump
 
 tLoad
 
 nodeType
 
 nodeID
 
 log
 

Detailed Description

Definition at line 314 of file GMPBase.py.

Constructor & Destructor Documentation

def GaudiMP.GMPBase.TESSerializer.__init__ (   self,
  gaudiTESSerializer,
  evtDataSvc,
  nodeType,
  nodeID,
  log 
)

Definition at line 316 of file GMPBase.py.

def GaudiMP.GMPBase.TESSerializer.__init__ (   self,
  gaudiTESSerializer,
  evtDataSvc,
  nodeType,
  nodeID,
  log 
)

Definition at line 316 of file GMPBase.py.

Member Function Documentation

def GaudiMP.GMPBase.TESSerializer.Dump (   self)

Definition at line 338 of file GMPBase.py.

338  def Dump( self ) :
339  t = time.time()
340  tb = TBufferFile( TBuffer.kWrite )
341  self.T.dumpBuffer(tb)
342  self.tDump += ( time.time()-t )
343  self.nOut += 1
344  self.buffersOut.append( tb.Length() )
345  return tb
def GaudiMP.GMPBase.TESSerializer.Dump (   self)

Definition at line 338 of file GMPBase.py.

338  def Dump( self ) :
339  t = time.time()
340  tb = TBufferFile( TBuffer.kWrite )
341  self.T.dumpBuffer(tb)
342  self.tDump += ( time.time()-t )
343  self.nOut += 1
344  self.buffersOut.append( tb.Length() )
345  return tb
def GaudiMP.GMPBase.TESSerializer.Load (   self,
  tbuf 
)

Definition at line 329 of file GMPBase.py.

329  def Load( self, tbuf ) :
330  root = gbl.DataObject()
331  setOwnership( root, False )
332  self.evt.setRoot( '/Event', root )
333  t = time.time()
334  self.T.loadBuffer( tbuf )
335  self.tLoad += (time.time() - t)
336  self.nIn += 1
337  self.buffersIn.append( tbuf.Length() )
def Load(self, tbuf)
Definition: GMPBase.py:329
def GaudiMP.GMPBase.TESSerializer.Load (   self,
  tbuf 
)

Definition at line 329 of file GMPBase.py.

329  def Load( self, tbuf ) :
330  root = gbl.DataObject()
331  setOwnership( root, False )
332  self.evt.setRoot( '/Event', root )
333  t = time.time()
334  self.T.loadBuffer( tbuf )
335  self.tLoad += (time.time() - t)
336  self.nIn += 1
337  self.buffersIn.append( tbuf.Length() )
def Load(self, tbuf)
Definition: GMPBase.py:329
def GaudiMP.GMPBase.TESSerializer.Report (   self)

Definition at line 346 of file GMPBase.py.

346  def Report( self ) :
347  evIn = "Events Loaded : %i"%( self.nIn )
348  evOut = "Events Dumped : %i"%( self.nOut )
349  din = sum( self.buffersIn )
350  dataIn = "Data Loaded : %i"%(din)
351  dataInMb = "Data Loaded (MB) : %5.2f Mb"%(din/MB)
352  if self.nIn :
353  avgIn = "Avg Buf Loaded : %5.2f Mb"\
354  %( din/(self.nIn*MB) )
355  maxIn = "Max Buf Loaded : %5.2f Mb"\
356  %( max(self.buffersIn)/MB )
357  else :
358  avgIn = "Avg Buf Loaded : N/A"
359  maxIn = "Max Buf Loaded : N/A"
360  dout = sum( self.buffersOut )
361  dataOut = "Data Dumped : %i"%(dout)
362  dataOutMb = "Data Dumped (MB) : %5.2f Mb"%(dout/MB)
363  if self.nOut :
364  avgOut = "Avg Buf Dumped : %5.2f Mb"\
365  %( din/(self.nOut*MB) )
366  maxOut = "Max Buf Dumped : %5.2f Mb"\
367  %( max(self.buffersOut)/MB )
368  else :
369  avgOut = "Avg Buf Dumped : N/A"
370  maxOut = "Max Buf Dumped : N/A"
371  dumpTime = "Total Dump Time : %5.2f"%( self.tDump )
372  loadTime = "Total Load Time : %5.2f"%( self.tLoad )
373 
374  lines = evIn ,\
375  evOut ,\
376  dataIn ,\
377  dataInMb ,\
378  avgIn ,\
379  maxIn ,\
380  dataOut ,\
381  dataOutMb,\
382  avgOut ,\
383  maxOut ,\
384  dumpTime ,\
385  loadTime
386  self.log.name = "%s-%i TESSerializer"%(self.nodeType, self.nodeID)
387  for line in lines :
388  self.log.info( line )
389  self.log.name = "%s-%i"%(self.nodeType, self.nodeID)
390 
391 # =============================================================================
392 
double sum(double x, double y, double z)
def GaudiMP.GMPBase.TESSerializer.Report (   self)

Definition at line 346 of file GMPBase.py.

346  def Report( self ) :
347  evIn = "Events Loaded : %i"%( self.nIn )
348  evOut = "Events Dumped : %i"%( self.nOut )
349  din = sum( self.buffersIn )
350  dataIn = "Data Loaded : %i"%(din)
351  dataInMb = "Data Loaded (MB) : %5.2f Mb"%(din/MB)
352  if self.nIn :
353  avgIn = "Avg Buf Loaded : %5.2f Mb"\
354  %( din/(self.nIn*MB) )
355  maxIn = "Max Buf Loaded : %5.2f Mb"\
356  %( max(self.buffersIn)/MB )
357  else :
358  avgIn = "Avg Buf Loaded : N/A"
359  maxIn = "Max Buf Loaded : N/A"
360  dout = sum( self.buffersOut )
361  dataOut = "Data Dumped : %i"%(dout)
362  dataOutMb = "Data Dumped (MB) : %5.2f Mb"%(dout/MB)
363  if self.nOut :
364  avgOut = "Avg Buf Dumped : %5.2f Mb"\
365  %( din/(self.nOut*MB) )
366  maxOut = "Max Buf Dumped : %5.2f Mb"\
367  %( max(self.buffersOut)/MB )
368  else :
369  avgOut = "Avg Buf Dumped : N/A"
370  maxOut = "Max Buf Dumped : N/A"
371  dumpTime = "Total Dump Time : %5.2f"%( self.tDump )
372  loadTime = "Total Load Time : %5.2f"%( self.tLoad )
373 
374  lines = evIn ,\
375  evOut ,\
376  dataIn ,\
377  dataInMb ,\
378  avgIn ,\
379  maxIn ,\
380  dataOut ,\
381  dataOutMb,\
382  avgOut ,\
383  maxOut ,\
384  dumpTime ,\
385  loadTime
386  self.log.name = "%s-%i TESSerializer"%(self.nodeType, self.nodeID)
387  for line in lines :
388  self.log.info( line )
389  self.log.name = "%s-%i"%(self.nodeType, self.nodeID)
390 
391 # =============================================================================
392 
double sum(double x, double y, double z)

Member Data Documentation

GaudiMP.GMPBase.TESSerializer.buffersIn

Definition at line 319 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.buffersOut

Definition at line 320 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.evt

Definition at line 318 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.log

Definition at line 328 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.nIn

Definition at line 321 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.nodeID

Definition at line 327 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.nodeType

Definition at line 326 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.nOut

Definition at line 322 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.T

Definition at line 317 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.tDump

Definition at line 323 of file GMPBase.py.

GaudiMP.GMPBase.TESSerializer.tLoad

Definition at line 324 of file GMPBase.py.


The documentation for this class was generated from the following file: