The Gaudi Framework
v25r3
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
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
AnalysisTest.electron
def electron
Definition:
AnalysisTest.py:6
AnalysisTest.execute
def execute
Definition:
AnalysisTest.py:25
AnalysisInit.select
def select
Definition:
AnalysisInit.py:29
AnalysisTest.initialize
def initialize
Definition:
AnalysisTest.py:12
GaudiPython
home
AnalysisTest.py
Generated on Wed Jul 9 2014 09:54:15 for The Gaudi Framework by
1.8.7