Jpp
19.0.0
the software that should make you happy
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
externals
km3net-dataformat
tests
test_head.py
Go to the documentation of this file.
1
from
os.path
import
join, dirname
2
import
ROOT
3
4
ROOT.gSystem.Load(
"libKM3NeTROOT"
)
5
6
def
test_multi_tag
():
7
h = ROOT.Head()
8
9
h.set_line(
"seed"
,
"42"
)
10
h.set_line(
"detector"
,
"aaa bbb"
)
11
h.set_line(
"detector"
,
"ccc ddd"
)
12
h.set_line(
"detector"
,
"ccc ddd eee"
)
13
14
ROOT.write(h, ROOT.std.cout)
15
16
keys = h.matching_keys(
"detector"
)
17
print
(
"keys = "
, keys)
18
19
v = h.get_lines(
"detector"
)
20
lines = list( v )
# okay, but keep v alive
21
print
(lines)
22
23
assert
lines == [
'aaa bbb'
,
'ccc ddd'
,
'ccc ddd eee'
]
24
25
test_multi_tag
()
print
print
Definition:
JConvertDusj.sh:44
test_head.test_multi_tag
def test_multi_tag
Definition:
test_head.py:6
Generated by
1.8.5