size of a variable

From: Marc Escalier <escalier_at_lal.in2p3.fr>
Date: Fri, 26 Feb 2010 10:57:20 +0100


Hello,

would somebody know how to the following functionnality : let's assume a TTree has a variable myvar with myvar[0], myvar[1], ..., myvar[N]
with N varying from event to events

Is there a way to draw the histogram of the size of the myvar *without* doing the stuff of SetBranchAddress, etc... to get the variable then doing myvar->size()
and so on

==>I mean, is that possible to do that in a very short way like :
mytree->Draw("myvariable.TheMethodToGetTheSize()") or
mytree->Project("myhisto","myvariable.TheMethodToGetTheSize()")

thank you Received on Fri Feb 26 2010 - 11:01:31 CET

This archive was generated by hypermail 2.2.0 : Fri Feb 26 2010 - 17:50:01 CET