Re: How to SCAN [Fwd: BOUNCE roottalk@root.cern.ch:

Rene Brun (Rene.Brun@cern.ch)
Thu, 26 Jun 1997 14:56:50 +0200


>
> This was mailed to roottalk but majordomo did not forward it
> to the list because message is too long.
>
> Dear Roottalk,
>
> I would like to know the way to scan the data from attached log.root
> file .
> I execute that
>
> root[1] TFile temp("log.root")
> root[2] SCNX.Scan()
>
> and it showed the numbers just like in the attached root.tmp file.
> Now, reading the data in the columnwise direction was easy (using
> SCNX.Draw("1x1"), for instance). However, I cannot imagine how to
> read the data in rowise direction (=scanning all the items in a given
> event) for each row. Could you please tell me how to read the data
> in rowise direcction ?

............long list cut...........

By default TTree:Scan() shows the first 8 variables of the Tree.
You can give the list of variables to be scanned, eg:
SCNX.Scan("var1:var2:var3:var4:sqrt(var5):var8-var9")

It is our intention to introduce one day a matrix browser with scrolling
in both x and y.

Rene Brun