| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Public Attributes

# Test::PhysAnalAlg Class Reference

List of all members.

## 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.

    00060                    :
    00061     tks = self.evt.object('MyTracks')
    00062     print 'MyTracks collection contains '  + `len(tks)` + ' Tracks'
    00063     for t in tks :
    00064       self.h1.fill( math.sqrt(t.px*t.px + t.py*t.py + t.pz*t.pz), 1)
    00065       self.h2.fill( t.px, t.py )
        return 1

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

Definition at line 66 of file Test.py.

    00067                     :
    00068     print 'Finalizing User Analysis...'
    00069     print self.h1
    00070     print self.h1.entries()
    00071     print self.h2
    00072     print '....User Analysis Finalized'
    00073     return 1

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

Definition at line 51 of file Test.py.

    00052                       :
    00053     self.evt = gaudi.DataSvc(g.service('EventDataSvc'))
    00054     self.his = gaudi.HistoSvc(g.service('HistogramDataSvc'))
    00055     print 'Initializing User Analysis...'
    00056     self.h1 = self.his.book('myhisto1', 'Histogram 1D for tests', 20, 0., 40.)
    00057     self.h2 = self.his.book('myhisto2', 'Histogram 2D for test2', 20, 0., 40., 20, 0., 10.)
    00058     print '....User Analysis Initialized'
        return 1

## Member Data Documentation

Test::PhysAnalAlg::evt

Definition at line 51 of file Test.py.

Test::PhysAnalAlg::h1

Definition at line 51 of file Test.py.

Test::PhysAnalAlg::h2

Definition at line 51 of file Test.py.

Test::PhysAnalAlg::his

Definition at line 51 of file Test.py.

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines