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

In This Package:

HistoEx1::HistoEx1 Class Reference

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

Public Member Functions

def __init__
def initialize
def execute

Detailed Description

Simple algorithm which explicitely book&fill three histograms 

Definition at line 28 of file HistoEx1.py.


Member Function Documentation

def HistoEx1::HistoEx1::__init__ (   self,
  name 
)

Constructor 

Definition at line 30 of file HistoEx1.py.

00030                                  :
00031         """ Constructor """
00032         HistoAlgo.__init__( self , name )
00033 
    def initialize ( self ) :

def HistoEx1::HistoEx1::initialize (   self  ) 

Initialization, initialize the base class and book histograms 

Definition at line 34 of file HistoEx1.py.

00034                             :
00035         """ Initialization, initialize the base class and book histograms """ 
00036         status = HistoAlgo.initialize( self )
00037         if status.isFailure() : return status
00038         
00039         self.h1 = self.book1D ( ' 1D histo '
00040                                 , 0 , 20 , 20 )
00041         self.h2 = self.book2D ( ' 2D histo '
00042                                 , 0 , 20 , 20 
00043                                 , 0 , 20 , 20 )
00044         self.h3 = self.book3D ( ' 3D histo '
00045                                 , 0 , 20 , 20 
00046                                 , 0 , 20 , 20 
00047                                 , 0 , 20 , 20 )
00048 
00049         return SUCCESS
00050     
    def execute( self ) :

def HistoEx1::HistoEx1::execute (   self  ) 

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

Definition at line 51 of file HistoEx1.py.

00051                         :
00052         """ The major method 'execute', it is invoked for each event """
00053 
00054         for i in range(0,10) :
00055             self.h1.fill( i , 0.166 )
00056             for j in range(0,10) :
00057                 self.h2.fill( i   , j )
00058                 for k in range(0,10) : 
00059                     self.h3.fill( i , j , k )
00060                     
00061         
00062         return SUCCESS
00063     
00064 
00065 # =============================================================================
00066 # job configuration 
00067 # =============================================================================
def configure( gaudi = None  ) :


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