ATLAS Offline Software
PhysicsAnalysis
PyAnalysis
PyAnalysisExamples
share
ParticleTest.py
Go to the documentation of this file.
1
9
10
# init application mgr
11
theApp.initialize()
12
13
# run 1 event
14
theApp.nextEvent()
15
16
# get ElectronContainer from AOD
17
econ = PyParticleTools.getElectrons(
"ElectronCollection"
)
18
print
(
"Electron"
)
19
print
(econ.size())
20
21
for
i
in
range
(econ.size()):
22
eobj = econ[i]
23
print
(
"Electron pt:%f"
% eobj.pt())
24
# get TrackParticle via ElementLink
25
tp = eobj.track()
26
print
(
"TrackParticle px:%f"
% tp.px())
27
# get egamma via Navigation
28
# this should be retrieved from ESD
29
eg = eobj.eg()
30
print
(
"egamma eta:%f"
% eg.eta())
plotBeamSpotVxVal.range
range
Definition:
plotBeamSpotVxVal.py:195
Generated on Thu Nov 7 2024 21:23:20 for ATLAS Offline Software by
1.8.18