Skip to content

Commit b218ded

Browse files
committed
Fix - propblem with online TTree::Draw and ROOT6
1 parent 3f04da4 commit b218ded

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scripts/JSRootPainter.jquery.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,12 +1356,10 @@
13561356

13571357
url += '&prototype="const char*,const char*,Option_t*,Long64_t,Long64_t"&varexp="' + expr + '"&selection="' + cut + '"';
13581358

1359-
// if any of optional arguments specified, specify all of them
1360-
if ((option!="") || (nentries!="") || (firstentry!="")) {
1361-
if (nentries=="") nentries = (this.root_version >= 394499) ? "TTree::kMaxEntries": "1000000000"; // kMaxEntries available since ROOT 6.05/03
1362-
if (firstentry=="") firstentry = "0";
1363-
url += '&option="' + option + '"&nentries=' + nentries + '&firstentry=' + firstentry;
1364-
}
1359+
// provide all optional arguments - default value kMaxEntries not works properly in ROOT6
1360+
if (nentries=="") nentries = (this.root_version >= 394499) ? "TTree::kMaxEntries": "1000000000"; // kMaxEntries available since ROOT 6.05/03
1361+
if (firstentry=="") firstentry = "0";
1362+
url += '&option="' + option + '"&nentries=' + nentries + '&firstentry=' + firstentry;
13651363
} else {
13661364
url += '&prototype="Option_t*"&opt="' + expr + '"';
13671365
}

0 commit comments

Comments
 (0)