Skip to content

Commit 3cb59b2

Browse files
committed
Fix extraction of tracks in alice_esd.js demo
1 parent d673e63 commit 3cb59b2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

demo/alice_esd.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
async function extract_geo_tracks(tree, opt) {
77
// as first argument, tree should be provided
88

9-
console.log('CALL async extract_geo_tracks');
9+
console.log('CALL async function extract_geo_tracks');
1010

1111
let handle = await JSROOT.require('tree');
1212

@@ -48,7 +48,11 @@ async function extract_geo_tracks(tree, opt) {
4848
console.log('Read done num entries', numentry, 'tracks', numtracks);
4949
}
5050

51-
return handle.treeProcess(tree, selector);
51+
await handle.treeProcess(tree, selector);
52+
53+
console.log('FINISH extract_geo_tracks');
54+
55+
return lst;
5256
}
5357

5458
console.log('LOAD alice_esd.js with JSROOT', JSROOT.version);

0 commit comments

Comments
 (0)