Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AUSA
Erik
nuchart
Commits
0a563bf9
Commit
0a563bf9
authored
Nov 03, 2020
by
Erik Asbjørn Mikkelsen Jensen
Browse files
updated to work with ROOT v6.22
parent
5f290776
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
0a563bf9
...
...
@@ -3,13 +3,16 @@ old
.idea
__pycache__
# graphics output
qec-all.pdf
qec-no-estimates.pdf
# ROOT output
*.root
# exectuable output
dataprinter
expand-nuchart-QBxn-QBxp-QBa
expand-nuchart-QEC
# ROOT output
nuchart.root
\ No newline at end of file
# graphics output
*.pdf
# data file output
*.dat
Makefile
View file @
0a563bf9
...
...
@@ -5,7 +5,7 @@ CXXFLAGS = -Wall $$(root-config --cflags)
LDLIBS
=
$$
(
root-config
--glibs
)
DATATABLES
=
ame16/mass16.txt ame16/rct1-16.txt ame16/rct2-16.txt nubase16/nubase2016.txt
EXAMPLE_FIGURES
=
qec.pdf
EXAMPLE_FIGURES
=
qec
-all.pdf qec-no-estimates
.pdf
EXAMPLE_DATAFILES
=
qec.dat qbn.dat
EXECUTABLES
=
dataprinter expand-nuchart-QEC expand-nuchart-QBxn-QBxp-QBa
...
...
@@ -22,7 +22,7 @@ nuchart.root: treemaker.py expand-nuchart-QEC expand-nuchart-QBxn-QBxp-QBa
./expand-nuchart-QEC
./expand-nuchart-QBxn-QBxp-QBa
qec.pdf
:
graph-example-qec.py
qec
-all.pdf qec-no-estimates
.pdf
:
graph-example-qec.py
python3
$<
graph-example-qec.py
:
qec.dat
...
...
treemaker.py
View file @
0a563bf9
import
re
from
datagetter
import
*
from
ROOT
import
TFile
,
TTree
,
gROOT
,
A
ddress
O
f
from
ROOT
import
TFile
,
TTree
,
gROOT
,
a
ddress
o
f
# OPEN DATA FILES AND NAVIGATE TO FIRST LINES OF INTEREST IN EACH FILE
file1
=
open
(
"ame16/mass16.txt"
,
"r"
)
...
...
@@ -47,18 +47,18 @@ iso = Isotope()
# CREATION OF ALL BRANCHES IN THE ROOT TREE
t
.
Branch
(
'element'
,
A
ddress
O
f
(
iso
,
'element'
),
'element/C'
)
t
.
Branch
(
'element'
,
a
ddress
o
f
(
iso
,
'element'
),
'element/C'
)
for
string
in
varbls
:
t
.
Branch
(
string
,
A
ddress
O
f
(
iso
,
string
),
string
+
'/i'
)
t
.
Branch
(
string
,
a
ddress
o
f
(
iso
,
string
),
string
+
'/i'
)
for
string
in
varbls_est
:
t
.
Branch
(
string
,
A
ddress
O
f
(
iso
,
string
),
string
+
'/D:'
+
string
+
'_est/O'
)
t
.
Branch
(
string
,
a
ddress
o
f
(
iso
,
string
),
string
+
'/D:'
+
string
+
'_est/O'
)
for
string
in
varbls_est_calc
:
t
.
Branch
(
string
,
A
ddress
O
f
(
iso
,
string
),
string
+
'/D:'
+
string
+
'_est/O:'
+
string
+
'_calc'
)
t
.
Branch
(
'half_life'
,
A
ddress
O
f
(
iso
,
'half_life'
),
'half_life/D:half_life_est/O:half_life_gORs:half_life_stbl'
)
t
.
Branch
(
'half_life_err'
,
A
ddress
O
f
(
iso
,
'half_life_err'
),
'half_life_err/D:half_life_err_est/O:half_life_err_gORs'
)
t
.
Branch
(
'spin'
,
A
ddress
O
f
(
iso
,
'spin'
),
'spin/D:spin_uncertain/O'
)
t
.
Branch
(
'parity'
,
A
ddress
O
f
(
iso
,
'parity'
),
'parity/I:parity_est/O:parity_uncertain'
)
t
.
Branch
(
'comment'
,
A
ddress
O
f
(
iso
,
'comment'
),
'comment/C'
)
t
.
Branch
(
string
,
a
ddress
o
f
(
iso
,
string
),
string
+
'/D:'
+
string
+
'_est/O:'
+
string
+
'_calc'
)
t
.
Branch
(
'half_life'
,
a
ddress
o
f
(
iso
,
'half_life'
),
'half_life/D:half_life_est/O:half_life_gORs:half_life_stbl'
)
t
.
Branch
(
'half_life_err'
,
a
ddress
o
f
(
iso
,
'half_life_err'
),
'half_life_err/D:half_life_err_est/O:half_life_err_gORs'
)
t
.
Branch
(
'spin'
,
a
ddress
o
f
(
iso
,
'spin'
),
'spin/D:spin_uncertain/O'
)
t
.
Branch
(
'parity'
,
a
ddress
o
f
(
iso
,
'parity'
),
'parity/I:parity_est/O:parity_uncertain'
)
t
.
Branch
(
'comment'
,
a
ddress
o
f
(
iso
,
'comment'
),
'comment/C'
)
# CREATION OF MANY GENERIC (PLUS SOME NONE-GENERIC) CODE LINES TO BE EXECUTED BY 'exec(code_strings[i])' BELOW
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment