Skip to content

Commit 88e5e55

Browse files
committed
Support dump option for RNTuple
1 parent b3ca940 commit 88e5e55

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/draw/RNTuple.mjs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { isStr } from '../core.mjs';
12
import { treeDrawProgress } from './TTree.mjs';
23
import { rntupleDraw } from '../rntuple.mjs';
34

@@ -12,6 +13,10 @@ async function drawRNTuple(dom, obj, opt) {
1213
// case of fictional ROOT::RNTupleField
1314
tuple = obj.$tuple;
1415
args.expr = obj._name;
16+
if (isStr(opt) && opt.indexOf('dump') === 0)
17+
args.expr += '>>' + opt;
18+
else if (opt)
19+
args.expr += opt;
1520
}
1621

1722
if (!tuple)

0 commit comments

Comments
 (0)