ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
advanced
air_shower
amsEcal
brachytherapy
ChargeExchangeMC
composite_calorimeter
doiPET
eRosita
gammaknife
gammaray_telescope
include
src
GammaRayTel.cc
gammaraytel.py
hadrontherapy
human_phantom
iort_therapy
lAr_calorimeter
medical_linac
microbeam
microelectronics
nanobeam
purging_magnet
radioprotection
STCyclotron
underground_physics
xray_fluorescence
xray_telescope
basic
extended
source
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
gammaraytel.py
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file gammaraytel.py
1
2
# Creating a memory-mapped tree
3
4
tree=tf.create()
5
6
# Creating a histogram factory mapped to the tree
7
8
hf=af.createHistogramFactory( tree )
9
10
# Open an existing HBook file
11
12
treeHBook=tf.create(
"gammaraytel.hbook"
,
"hbook"
, 1, 0 )
13
14
# Mounting the hbook tree under the master memory tree.
15
16
tree.mkdir(
"hbook"
)
17
tree.mount(
"/hbook"
, treeHBook,
"/"
)
18
19
# Retrieve histograms and load them into memory:
20
21
# Fetching the histograms from hbook
22
23
hE=tree.findH1D(
"/hbook/10"
)
24
hPl=tree.findH1D(
"/hbook/20"
)
25
hXZ=tree.findH2D(
"/hbook/30"
)
26
hYZ=tree.findH2D(
"/hbook/40"
)
27
28
# set plotter to 2*2 zones
29
#pl.createRegions(2,2)
30
#>>> NOTE! ONLY SINGLE REGION IN THIS VERSION!
31
32
# plot the histograms
33
34
pr = pl.currentRegion()
35
pr.plot(hE,
""
)
36
pl.refresh()
37
38
wait()
39
40
pr.clear()
41
pr.plot(hPl,
""
)
42
pl.refresh()
43
44
wait()
45
46
del hf
47
del tree
48
del treeHBook
49
exit
()
50
51
52
53
54
55
56
57
geant4
tree
geant4-10.6-release
examples
advanced
gammaray_telescope
gammaraytel.py
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:24:58
using
1.8.2 with
ECCE GitHub integration