| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Functions | Variables

# AnalysisTest Namespace Reference

## Functions
def | electron
def | initialize
def | execute
## Variables
list | sel = evt['Phys/PhysSel']

## Function Documentation

def AnalysisTest::electron | ( |  | c ) |

Definition at line 6 of file AnalysisTest.py.

    00007                :
    00008 #-------------------------------------------------------------
    00009         if c : return 1
    00010         return 0
    00011
    #-------------------------------------------------------------

def AnalysisTest::execute | ( | ) |

Definition at line 25 of file AnalysisTest.py.

    00025              :
    00026 #-------------------------------------------------------------
    00027   global cands
    00028         cands = evt['Anal/AxParticleCandidates']
    00029
    00030         electrons = select(cands,electron)
    00031         print 'MyTracks collection contains ' + `len(tks)` + ' tracks and ' + `len(electrons)` + ' electrons'
    00032
    00033
    00034 #-------End of declarative part-----------------------------------------------------
    00035
    00036 #g.run(10)
    00037 #excel.plot(h1)
    00038
    00039 g.run(1)

def AnalysisTest::initialize | ( | ) |

Definition at line 12 of file AnalysisTest.py.

    00013                 :
    00014 #-------------------------------------------------------------
    00015         global h0, h1, h2
    00016         try:
    00017                 h0 = his.histo('h0')
    00018                 h1 = his.histo('h1')
    00019                 h2 = his.histo('h2')
    00020         except:
    00021                 h0 = his.book('h0', 'Histogram 1D for random tests', 35, -10., 10.)
    00022                 h1 = his.book('h1', 'Histogram 1D for tests', 20, 0., 40.)
    00023                 h2 = his.book('h2', 'Histogram 2D for test2', 20, 0., 40., 20, 0., 10.)
    00024
    #-------------------------------------------------------------

## Variable Documentation

list AnalysisTest::sel = evt['Phys/PhysSel']

Definition at line 40 of file AnalysisTest.py.

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