Public Member Functions | |
def | __init__ |
def | execute |
Public Attributes | |
count | |
cache |
Place a UserDataHeader into the data stream
Definition at line 24 of file TestUserData.py.
def RootIOTest::TestUserData::SomeUserData::__init__ | ( | self, | ||
name = 'SomeUserData' | ||||
) |
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
Definition at line 28 of file TestUserData.py.
Definition at line 29 of file TestUserData.py.