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

In This Package:

TupleEx::TupleEx Class Reference

Simple algorithm which books&fills three histograms. More...

Inheritance diagram for TupleEx::TupleEx:

[legend]
Collaboration diagram for TupleEx::TupleEx:
[legend]
List of all members.

Public Member Functions

def __init__
 standard constructor
def execute
 the main execution method

Detailed Description

Simple algorithm which books&fills three histograms.

Simple algorithm which implicitely book&fill N-Tuples

Definition at line 39 of file TupleEx.py.


Member Function Documentation

def TupleEx::TupleEx::__init__ (   self,
  name = 'TupleEx' 
)

standard constructor

Constructor 

Definition at line 42 of file TupleEx.py.

00044                                              :
00045         """ Constructor """
        TupleAlgo.__init__( self , name )

def TupleEx::TupleEx::execute (   self  ) 

the main execution method

The major method 'execute', it is invoked for each event

Definition at line 47 of file TupleEx.py.

00049                         :
00050         """
00051         The major method 'execute', it is invoked for each event
00052         """
00053 
00054         gauss = Rndm.Numbers( self.randSvc() , Rndm.Gauss( 0.0 , 1.0 ) )
00055 
00056         tup = self.nTuple('My trivial N-tuple')
00057         for i in range(0,100) :
00058             tup.column( 'a' , math.sin(i) )
00059             tup.column( 'b' , math.cos(i) )
00060             tup.column( 'c' , math.tan(i) )
00061             tup.column( 'g' , gauss()     )
00062             tup.write()
00063 
00064         return SUCCESS
00065                 
                


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 19:59:39 2011 for GaudiExamples by doxygen 1.4.7