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

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.


Constructor & Destructor Documentation

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

Definition at line 19 of file Example_GenEvent.py.

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


Member Function Documentation

def Example_GenEvent::ExampleAlg::initialize (   self)

Definition at line 23 of file Example_GenEvent.py.

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

def Example_GenEvent::ExampleAlg::execute (   self)

Definition at line 29 of file Example_GenEvent.py.

00030                      :
00031         print "Executing ExampleAlg",self.name()
00032         evt = self.evtSvc()
00033         hdr = evt["/Event/Gen/GenHeader"]
00034         event = hdr.event()
00035         for vertex in irange(event.vertices_begin(),
00036                              event.vertices_end()):
00037             pos = vertex.position()
00038             print "vertex position = ", pos.x(), pos.y(), pos.z() 
00039             for particle in irange(vertex.particles_out_const_begin(),
00040                                    vertex.particles_out_const_end()):
00041                 mom = particle.momentum()
00042                 print "4 momentum = ", mom.px(), mom.py(), mom.pz(), mom.e()
00043         return SUCCESS
        
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 Fri May 16 2014 09:49:50 for DivingIn by doxygen 1.7.4