| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

RootIOTest::TestUserData::SomeUserData Class Reference

Inheritance diagram for RootIOTest::TestUserData::SomeUserData:
[legend]
Collaboration diagram for RootIOTest::TestUserData::SomeUserData:
[legend]
List of all members.

Public Member Functions

def __init__
def execute

Public Attributes

 count
 cache

Detailed Description

Place a UserDataHeader into the data stream

Definition at line 24 of file TestUserData.py.


Member Function Documentation

def RootIOTest::TestUserData::SomeUserData::__init__ (   self,
  name = 'SomeUserData' 
)

Definition at line 26 of file TestUserData.py.

00028                                           :
00029         GaudiAlgo.__init__(self,name)
00030         self.count = 0;
00031         self.cache = None
00032         print 'SomeUserData: making some'
        return

def RootIOTest::TestUserData::SomeUserData::execute (   self  ) 

Definition at line 33 of file TestUserData.py.

00035                      :
00036         tes = self.evtSvc()
00037 
00038         self.count += 1
00039 
00040         print 'making UserDataHeader'
00041         udh = gbl.DayaBay.UserDataHeader()
00042         ROOT.SetOwnership(udh,False)
00043 
00044         print 'saving to TES'
00045         tes['/Event/UserData/SomeUserData'] = udh
00046 
00047         print 'setting basic values'
00048         udh.setExecNumber(self.count)
00049         now = gbl.TimeStamp(self.count*3600,self.count)
00050         udh.setEarliest(now)
00051         now = gbl.TimeStamp(self.count*3600,self.count+1)
00052         udh.setTimeStamp(now)
00053         now = gbl.TimeStamp(self.count*3600,self.count+2)
00054         udh.setLatest(now)
00055 
00056         print 'setting user data'
00057         udh.setInt("count",self.count)
00058         udh.setFloat("aFloat",6.9*self.count)
00059         udh.setInt("anInt",self.count*self.count)
00060 
00061         print 'SomeData: %s'%spew(udh)
00062 
00063         print 'Deleting Python-side UserDataHeader'
00064         del (udh)
00065 
00066         print 'bye bye'
        return SUCCESS


Member Data Documentation

RootIOTest::TestUserData::SomeUserData::count

Definition at line 28 of file TestUserData.py.

RootIOTest::TestUserData::SomeUserData::cache

Definition at line 29 of file TestUserData.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 Mon Apr 11 20:58:43 2011 for RootIOTest by doxygen 1.4.7