| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

- Namespace List
- Namespace Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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.

6
7 def electron(c):
8 #-------------------------------------------------------------
9 if c : return 1
10 return 0
11
#-------------------------------------------------------------

def AnalysisTest.execute | ( |  | ) |

Definition at line 25 of file AnalysisTest.py.

25
26 def execute():
27 #-------------------------------------------------------------
28 global cands
29 cands = evt['Anal/AxParticleCandidates']
30
31 electrons = select(cands,electron)
32 print 'MyTracks collection contains ' + `len(tks)` + ' tracks and ' + `len(electrons)` + ' electrons'
33
34
35 #-------End of declarative part-----------------------------------------------------
36
37 #g.run(10)
38 #excel.plot(h1)
39
g.run(1)

def AnalysisTest.initialize | ( |  | ) |

Definition at line 12 of file AnalysisTest.py.

12
13 def initialize():
14 #-------------------------------------------------------------
15 global h0, h1, h2
16 try:
17 h0 = his.histo('h0')
18 h1 = his.histo('h1')
19 h2 = his.histo('h2')
20 except:
21 h0 = his.book('h0', 'Histogram 1D for random tests', 35, -10., 10.)
22 h1 = his.book('h1', 'Histogram 1D for tests', 20, 0., 40.)
23 h2 = his.book('h2', 'Histogram 2D for test2', 20, 0., 40., 20, 0., 10.)
24
#-------------------------------------------------------------

## Variable Documentation

list AnalysisTest.sel evt['Phys/PhysSel']

Definition at line 40 of file AnalysisTest.py.