/search.css" rel="stylesheet" type="text/css"/> /search.js">
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

Public Member Functions | Public Attributes
DybEventMgr::InputHeaderDump::ShowInputHeaders Class Reference
Inheritance diagram for DybEventMgr::InputHeaderDump::ShowInputHeaders:
Inheritance graph
[legend]
Collaboration diagram for DybEventMgr::InputHeaderDump::ShowInputHeaders:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def do_time
def dump_tes
def dump_ho

Public Attributes

 execNum
 lastTimes
 hos

Detailed Description

Definition at line 21 of file InputHeaderDump.py.


Constructor & Destructor Documentation

def DybEventMgr::InputHeaderDump::ShowInputHeaders::__init__ (   self,
  name = 'ShowInputHeaders' 
)

Definition at line 22 of file InputHeaderDump.py.

00023                                                 :
00024         DybPythonAlg.__init__(self,name)
00025         self.execNum = 0
00026         self.lastTimes = {}
00027         return


Member Function Documentation

def DybEventMgr::InputHeaderDump::ShowInputHeaders::initialize (   self)

Definition at line 28 of file InputHeaderDump.py.

00029                         :
00030         return DybPythonAlg.initialize(self)

def DybEventMgr::InputHeaderDump::ShowInputHeaders::execute (   self)

Definition at line 31 of file InputHeaderDump.py.

00032                      :
00033         self.execNum += 1
00034         print '\nEvent Number %d:\n' % self.execNum
00035         tes = self.evtSvc()
00036         root = tes['/Event']
00037         self.hos = []
00038         self.dump_tes(root.registry())
00039         for ho in self.hos:
00040             self.dump_ho(ho)
00041         return SUCCESS

def DybEventMgr::InputHeaderDump::ShowInputHeaders::do_time (   self,
  ho,
  loc 
)

Definition at line 42 of file InputHeaderDump.py.

00043                             :
00044         try:
00045             lt = self.lastTimes[loc]
00046         except KeyError:
00047             self.lastTimes[loc] = ho.timeStamp().GetSeconds()
00048             return
00049         tt = ho.timeStamp().GetSeconds()
00050         self.lastTimes[loc] = tt
00051         dt = tt-lt
00052         if dt < 0:
00053             print 'Negative delta-T for "%s": %f - %f = %f' %(loc,tt,lt,dt)
00054         return

def DybEventMgr::InputHeaderDump::ShowInputHeaders::dump_tes (   self,
  reg,
  tab = 0 
)

Definition at line 55 of file InputHeaderDump.py.

00056                                 :
00057         tes = self.evtSvc()
00058         print '[%02d]  %s%s' % (tab,'  '*tab,reg.identifier())
00059         obj = reg.object()
00060         if hasattr(obj,'inputHeaders'):
00061             self.hos.append(obj)
00062             self.do_time(obj,reg.identifier())
00063         for leaf in tes.leaves(obj):
00064             if leaf == reg:
00065                 print 'I am my own leaf, wtf: "%s"' % reg.identifier()
00066                 continue
00067             self.dump_tes(leaf,tab+1)
00068             continue
00069         return

def DybEventMgr::InputHeaderDump::ShowInputHeaders::dump_ho (   self,
  ho,
  tab = 0 
)

Definition at line 70 of file InputHeaderDump.py.

00071                               :
00072         print '[%02d]  +%s>%s' % (tab,'--'*tab,hoprint(ho))
00073         ihs = ho.inputHeaders()
00074         nihs = ihs.size()
00075         for ind in range(nihs):
00076             ih = ihs[ind]
00077             self.dump_ho(ih,tab+1)
00078             continue
00079         return


Member Data Documentation

Definition at line 22 of file InputHeaderDump.py.

Definition at line 22 of file InputHeaderDump.py.

Definition at line 31 of file InputHeaderDump.py.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Fri May 16 2014 10:09:08 for DybEventMgr by doxygen 1.7.4