/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
RootIOTest::TestHeaderObjects::PythonHeaderObject Class Reference

List of all members.

Public Member Functions

def __init__
def __cmp__
def __str__

Public Attributes

 defloc
 site
 flag
 detid
 seconds
 nanosec
 execNumber
 randomState
 inputHeaders

Detailed Description

A purely Python header object

Definition at line 26 of file TestHeaderObjects.py.


Constructor & Destructor Documentation

def RootIOTest::TestHeaderObjects::PythonHeaderObject::__init__ (   self,
  ho 
)

Definition at line 31 of file TestHeaderObjects.py.

00032                          :
00033         self.defloc = ho.defLoc()
00034 
00035 
00036         ctx = ho.context()
00037         self.site = ctx.GetSite()
00038         self.flag = ctx.GetSimFlag()
00039         self.detid = ctx.GetDetId()
00040 
00041         #print 'Getting timestamp'
00042         ts = ctx.GetTimeStamp()
00043         self.seconds = ts.GetSec()
00044         self.nanosec = ts.GetNanoSec()
00045 
00046         self.execNumber = ho.execNumber()
00047         self.randomState = []
00048 
00049         # print 'Getting random state'
00050         # rs = ho.randomState()
00051         # for rn in irange(rs.begin(), rs.end()):
00052         #     print rn
00053         #     self.randomState.append(rn)
00054         #     continue
00055 
00056         self.inputHeaders = []
00057         ihs = ho.inputHeaders()
00058         siz = ihs.size()
00059         #print 'Recursing on %d input headers'%siz
00060         for ind in range(siz):
00061             ih = ihs[ind]
00062             self.inputHeaders.append(PythonHeaderObject(ih))
00063             continue
00064         return


Member Function Documentation

def RootIOTest::TestHeaderObjects::PythonHeaderObject::__cmp__ (   self,
  other 
)

Definition at line 65 of file TestHeaderObjects.py.

00066                            :
00067         return cmp(self.__dict__,other.__dict__)

def RootIOTest::TestHeaderObjects::PythonHeaderObject::__str__ (   self)

Definition at line 68 of file TestHeaderObjects.py.

00069                      :
00070         s = '%s exec=%d sec.ns=%d.%09d site=%d mcflag=%d detid=%d with %d inputHeaders:'%\
00071             (self.defloc,
00072              self.execNumber, self.seconds, self.nanosec,
00073              self.site, self.flag, self.detid, 
00074              len(self.inputHeaders))
00075         if self.inputHeaders:
00076             l = []
00077             for ih in self.inputHeaders:
00078                 l.append('\t%s'%ih)
00079             s += '\n' + '\n'.join(l)
00080 
00081         return s
00082         


Member Data Documentation

Definition at line 31 of file TestHeaderObjects.py.

Definition at line 31 of file TestHeaderObjects.py.

Definition at line 31 of file TestHeaderObjects.py.

Definition at line 31 of file TestHeaderObjects.py.

Definition at line 31 of file TestHeaderObjects.py.

Definition at line 31 of file TestHeaderObjects.py.

Definition at line 31 of file TestHeaderObjects.py.

Definition at line 31 of file TestHeaderObjects.py.

Definition at line 31 of file TestHeaderObjects.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:20:12 for RootIOTest by doxygen 1.7.4