Gaudi Framework, version v25r2
Home
Generated: Wed Jun 4 2014
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
.cern.ch
sw
Gaudi
releases
GAUDI
GAUDI_v25r2
GaudiPython
home
AnalysisTest.py
Go to the documentation of this file.
1
#--Initialize ------------------------------------------------
2
execfile(
'../options/AnalysisInit.py'
)
3
#-------------------------------------------------------------
4
5
#-------------------------------------------------------------
6
def
electron
(c):
7
#-------------------------------------------------------------
8
if
c :
return
1
9
return
0
10
11
#-------------------------------------------------------------
12
def
initialize
():
13
#-------------------------------------------------------------
14
global
h0, h1, h2
15
try
:
16
h0 = his.histo(
'h0'
)
17
h1 = his.histo(
'h1'
)
18
h2 = his.histo(
'h2'
)
19
except
:
20
h0 = his.book(
'h0'
,
'Histogram 1D for random tests'
, 35, -10., 10.)
21
h1 = his.book(
'h1'
,
'Histogram 1D for tests'
, 20, 0., 40.)
22
h2 = his.book(
'h2'
,
'Histogram 2D for test2'
, 20, 0., 40., 20, 0., 10.)
23
24
#-------------------------------------------------------------
25
def
execute
():
26
#-------------------------------------------------------------
27
global
cands
28
cands = evt[
'Anal/AxParticleCandidates'
]
29
30
electrons =
select
(cands,electron)
31
print
'MyTracks collection contains '
+ `len(tks)` +
' tracks and '
+ `len(electrons)` +
' electrons'
32
33
34
#-------End of declarative part-----------------------------------------------------
35
36
#g.run(10)
37
#excel.plot(h1)
38
39
g.run(1)
40
sel = evt[
'Phys/PhysSel'
]
41
sel.decayIsInMCTree(
'B0PP'
)
42
43
44
45
46
Generated at Wed Jun 4 2014 14:48:58 for Gaudi Framework, version v25r2 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004