Corey Reed
2014-09-09 07:15:33 UTC
Hi,
I've been searching for this feature, but .. does it exist? If not, I
could I request it?
The feature in question would be a group of special variables (à la
Entry$), e.g. 1$, 2$, 3$, that would evaluate to the formulae being
plotted on the x-, y- or z-axis, respectively. Effectively acting like
"GetV1" but inside the Draw loop rather than after it.
Such a feature would be especially useful in restricting the drawing
range of a complicated variable -- to do something like the following:
tree->Draw("TMath::ACos(alpha+(beta/2)):TMath::Log10(energy)","1$>0 &&
2$<8");
or
tree->Scan("TMath::ACos(coszenith)*180/3.14:spaceAngle*180/3.14","1$>0
&& abs(1$ - 2$)<10")
Is there any way to do this currently, without setting aliases
beforehand? (The feature is most desirable when exploring data, calling
SetAlias before every Draw is more work than copy/paste, so...)
Thanks!
- Corey
I've been searching for this feature, but .. does it exist? If not, I
could I request it?
The feature in question would be a group of special variables (à la
Entry$), e.g. 1$, 2$, 3$, that would evaluate to the formulae being
plotted on the x-, y- or z-axis, respectively. Effectively acting like
"GetV1" but inside the Draw loop rather than after it.
Such a feature would be especially useful in restricting the drawing
range of a complicated variable -- to do something like the following:
tree->Draw("TMath::ACos(alpha+(beta/2)):TMath::Log10(energy)","1$>0 &&
2$<8");
or
tree->Scan("TMath::ACos(coszenith)*180/3.14:spaceAngle*180/3.14","1$>0
&& abs(1$ - 2$)<10")
Is there any way to do this currently, without setting aliases
beforehand? (The feature is most desirable when exploring data, calling
SetAlias before every Draw is more work than copy/paste, so...)
Thanks!
- Corey