/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::TestUserData::SomeUserData Class Reference
Inheritance diagram for RootIOTest::TestUserData::SomeUserData:
Inheritance graph
[legend]
Collaboration diagram for RootIOTest::TestUserData::SomeUserData:
Collaboration graph
[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.


Constructor & Destructor Documentation

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

Definition at line 28 of file TestUserData.py.

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


Member Function Documentation

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

Definition at line 35 of file TestUserData.py.

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


Member Data Documentation

Definition at line 28 of file TestUserData.py.

Definition at line 28 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 Fri May 16 2014 10:20:12 for RootIOTest by doxygen 1.7.4