/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
UserTagging::Models::Tag Class Reference

List of all members.

Public Member Functions

def __init__
def tagIt
def addData
def getData
def setBaseHeader
def setInputHeaders
def addInputHeader

Public Attributes

 path
 header
 baseHeader
 isTagged
 nTagged
 dataSet

Detailed Description

Model for UserTag

Definition at line 114 of file Models.py.


Constructor & Destructor Documentation

def UserTagging::Models::Tag::__init__ (   self,
  path = '' 
)

Definition at line 117 of file Models.py.

00118                                :
00119         # the path where the tagHeader saved to, e.g. '/Event/Tag/Detector/AD'
00120         # path can be empty string, in which case only the data will be saved
00121         self.path = path
00122         
00123         # the 'tagHeader' is saved as a generic HeaderObject
00124         # this is instantiated at every execution cycle
00125         self.header = gbl.DayaBay.HeaderObject()
00126         ROOT.SetOwnership(self.header, False)
00127         
00128         # the context, execNumber, earliest, latest properties
00129         # of the tagHeader will be set the same as the 'baseHeader' HeaderObject
00130         self.baseHeader = '/Event/Readout/ReadoutHeader'    # default
00131         
00132         # at the end of each exec cycle, the algorithm checks 'isTagged'
00133         # flag, and decide whether of not to save the tag and the user data
00134         self.isTagged = False
00135         
00136         # automatically increased by one for each tagged event
00137         self.nTagged = 0
00138         
00139         # you can save a set of Data's together with the tag        
00140         self.dataSet = DataSet()
        

Member Function Documentation

def UserTagging::Models::Tag::tagIt (   self)

Definition at line 142 of file Models.py.

00143                    :
00144         self.isTagged = True

def UserTagging::Models::Tag::addData (   self,
  name,
  path 
)
Add one UserTag

Definition at line 146 of file Models.py.

00147                                  :
00148         """Add one UserTag"""
00149         return self.dataSet.addData(name, path)

def UserTagging::Models::Tag::getData (   self,
  name 
)
Get the UserTagHeader

Definition at line 151 of file Models.py.

00152                            :
00153         """Get the UserTagHeader"""
00154         return self.dataSet.getData(name)

def UserTagging::Models::Tag::setBaseHeader (   self,
  baseHeader 
)

Definition at line 156 of file Models.py.

00157                                        :
00158         self.baseHeader = baseHeader
00159         return self
        
def UserTagging::Models::Tag::setInputHeaders (   self,
  inputHeaders 
)
a workaround on PyROOT's poor verctor support 
on the original HeaderObject.setInputHeaders() 

inputHeaders: a python list of HeaderObject's

Definition at line 161 of file Models.py.

00162                                            :
00163         '''
00164         a workaround on PyROOT's poor verctor support 
00165         on the original HeaderObject.setInputHeaders() 
00166         
00167         inputHeaders: a python list of HeaderObject's
00168         '''
00169         self.header.inputHeaders().clear()
00170         for hdr in inputHeaders:
00171             self.header.addInputHeader(hdr)
00172         return self

def UserTagging::Models::Tag::addInputHeader (   self,
  hdr 
)

Definition at line 174 of file Models.py.

00175                                  :
00176         self.header.addInputHeader(hdr)
00177         return self
00178 
00179 
# =========================================== 

Member Data Documentation

Definition at line 117 of file Models.py.

Definition at line 117 of file Models.py.

Definition at line 117 of file Models.py.

Definition at line 117 of file Models.py.

Definition at line 117 of file Models.py.

Definition at line 117 of file Models.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:02:01 for UserTagging by doxygen 1.7.4