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

In This Package:

Example_GenEvent::ExampleAlg Class Reference

List of all members.

Public Member Functions

def __init__
def initialize
def execute
def finalize

Detailed Description

Definition at line 17 of file Example_GenEvent.py.


Member Function Documentation

def Example_GenEvent::ExampleAlg::__init__ (   self,
  name 
)

Definition at line 19 of file Example_GenEvent.py.

00019                            :
00020         GaudiAlgo.__init__(self,name)
00021         return
00022 
    def initialize(self):

def Example_GenEvent::ExampleAlg::initialize (   self  ) 

Definition at line 23 of file Example_GenEvent.py.

00023                         :
00024         status = GaudiAlgo.initialize(self)
00025         print "Init ExampleAlg",self.name()
00026         if status.isFailure(): return status
00027         return SUCCESS
00028 
    def execute(self):

def Example_GenEvent::ExampleAlg::execute (   self  ) 

Definition at line 29 of file Example_GenEvent.py.

00029                      :
00030         print "Executing ExampleAlg",self.name()
00031         evt = self.evtSvc()
00032         hdr = evt["/Event/Gen/GenHeader"]
00033         event = hdr.event()
00034         for vertex in irange(event.vertices_begin(),
00035                              event.vertices_end()):
00036             pos = vertex.position()
00037             print "vertex position = ", pos.x(), pos.y(), pos.z() 
00038             for particle in irange(vertex.particles_out_const_begin(),
00039                                    vertex.particles_out_const_end()):
00040                 mom = particle.momentum()
00041                 print "4 momentum = ", mom.px(), mom.py(), mom.pz(), mom.e()
00042         return SUCCESS
00043         
    def finalize(self):        

def Example_GenEvent::ExampleAlg::finalize (   self  ) 

Definition at line 44 of file Example_GenEvent.py.

00044                       :        
00045         print "Finalizing ExampleAlg",self.name()
00046         status = GaudiAlgo.finalize(self)
00047         return status
00048 


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 20:05:58 2011 for DivingIn by doxygen 1.4.7