| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
Test.PhysAnalAlg Class Reference
Inheritance diagram for Test.PhysAnalAlg:
[legend]
Collaboration diagram for Test.PhysAnalAlg:
[legend]

## Public Member Functions
def | initialize
def | execute
def | finalize

## Public Attributes
| evt
| his
| h1
| h2

## Detailed Description

Definition at line 50 of file Test.py.

## Member Function Documentation

def Test.PhysAnalAlg.execute | ( |  | self | ) |

Definition at line 59 of file Test.py.

59
60 def execute(self):
61 tks = self.evt.object('MyTracks')
62 print 'MyTracks collection contains ' + `len(tks)` + ' Tracks'
63 for t in tks :
64 self.h1.fill( math.sqrt(t.px*t.px + t.py*t.py + t.pz*t.pz), 1)
65 self.h2.fill( t.px, t.py )
return 1

def Test.PhysAnalAlg.finalize | ( |  | self | ) |

Definition at line 66 of file Test.py.

66
67 def finalize(self):
68 print 'Finalizing User Analysis...'
69 print self.h1
70 print self.h1.entries()
71 print self.h2
72 print '....User Analysis Finalized'
73 return 1

def Test.PhysAnalAlg.initialize | ( |  | self | ) |

Definition at line 51 of file Test.py.

51
52 def initialize(self):
53 self.evt = gaudi.DataSvc(g.service('EventDataSvc'))
54 self.his = gaudi.HistoSvc(g.service('HistogramDataSvc'))
55 print 'Initializing User Analysis...'
56 self.h1 = self.his.book('myhisto1', 'Histogram 1D for tests', 20, 0., 40.)
57 self.h2 = self.his.book('myhisto2', 'Histogram 2D for test2', 20, 0., 40., 20, 0., 10.)
58 print '....User Analysis Initialized'
return 1

## Member Data Documentation

Test.PhysAnalAlg.evt

Definition at line 52 of file Test.py.

Test.PhysAnalAlg.h1

Definition at line 55 of file Test.py.

Test.PhysAnalAlg.h2

Definition at line 56 of file Test.py.

Test.PhysAnalAlg.his

Definition at line 53 of file Test.py.

The documentation for this class was generated from the following file:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiPython/home/Test.py