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

List of all members.

Public Member Functions

def initTagList
def check
def config

Public Attributes

 tag
 data

Detailed Description

Definition at line 13 of file TestUserTagging.py.


Member Function Documentation

def RootIOTest::TestUserTagging::MissingLink::initTagList (   self)

Definition at line 15 of file TestUserTagging.py.

00016                          :
00017         'Init UserTag and UserData'
00018         tag = self.addTag('TUT', '/Event/UserTag/Testing/TUT')
00019         data = tag.addData('TestUserTagging', '/Event/UserData/TUT/TestUserTagging')
00020         data.addInt('count','anInt')
00021         data.addFloat('aFloat')
00022 
00023         # note: caching this is not the Tao Te Chao, you can instead
00024         # look them up by name.
00025         self.tag = tag
00026         self.data = data
00027         return
    
def RootIOTest::TestUserTagging::MissingLink::check (   self,
  evt 
)

Definition at line 28 of file TestUserTagging.py.

00029                        :
00030         'Check the current state of affairs and maybe record some values'
00031 
00032         if self.execNumber%3 == 1:
00033             self.tag.isTagged = False
00034             return
00035 
00036         # you can also use self.tagIt('TUT')
00037         self.tag.isTagged = True
00038         print 'Tagged exec #%d as %s'%(self.execNumber,self.tag.isTagged)
00039 
00040         self.data.set('count',self.execNumber)
00041         self.data.set('anInt',self.execNumber*self.execNumber)
00042         self.data.set('aFloat',6.9*self.execNumber)
00043         return

def RootIOTest::TestUserTagging::MissingLink::config (   self,
  evt 
)

Definition at line 44 of file TestUserTagging.py.

00045                         :
00046         'Override base class to avoid needing a baseHeader'
00047         if not self.tag.isTagged: return
00048 
00049         
00050         self.tag.header.setExecNumber(self.execNumber)
00051         self.data.header.setExecNumber(self.execNumber)
00052 
00053         now = gbl.TimeStamp(self.execNumber*3600,self.execNumber)
00054         self.tag.header.setTimeStamp(now)
00055         self.data.header.setTimeStamp(now)
00056 
00057         now = gbl.TimeStamp(self.execNumber*3600,self.execNumber+1)
00058         self.tag.header.setEarliest(now)
00059         self.data.header.setEarliest(now)
00060 
00061         now = gbl.TimeStamp(self.execNumber*3600,self.execNumber+2)
00062         self.tag.header.setLatest(now)
00063         self.data.header.setLatest(now)
00064 
00065         return


Member Data Documentation

Definition at line 15 of file TestUserTagging.py.

Definition at line 15 of file TestUserTagging.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