|
ROOT 6.14/05 Reference Guide |
Illustrates how to retrieve TTree variables in arrays.
This example:
Draw method with goff option,GetVal,The option goff in TTree::Draw behaves like any other drawing option except that, at the end, no graphics is produced ( goff= graphics off). This allows to generate as many TTree variables as needed. All the graphics options (except para and candle) are limited to four variables only. And para and candle need at least two variables.
Note that by default TTree::Draw creates the arrays obtained with GetVal with a length corresponding to the parameter fEstimate. By default fEstimate=1000000 and can be modified via TTree::SetEstimate. To keep in memory all the results use:
SetEstimate should be called if the expected number of selected rows is greater than 1000000.
Definition in file treegetval.C.