Hi Malcolm,
Currently, you cannot correlate variables from different Trees
in the TTree::Draw function. This possibility will be included
in the next Root release scheduled for June.
A new class (let's call it TJoinTree) will be available, eg:
TJoinTree jt("jt");
TTree *t1, *t2, *t3;
jt.Add(t1);
jt.Add(t2);
jt.Add(t3);
jt.Draw("var1:var2:var3")
where var1, var2, var3 could be in any of t1,t2,t3.
TJoinTree deriving from TTree will have the TTree functions available.
Rene Brun
On Wed, 4 Apr 2001, Malcolm Davidson wrote:
> Hello,
>
> What would be the recommended way for drawing a variable in one tree vs. a
> variable in another tree (assuming that the number of entries is the same
> for each branch) ?
>
> For instance I have the following file with trees "IEM_EXP_Valid_Tree"
> located in both subdirectory "inc20" and "inc40". I would like issue a
> command similar to Draw("t1.rms":"t2.rms") where t1 is tree
> "inc20/IEM_EXP_Valid_Tree" and t2 is tree "inc40/IEM_EXP_Valid_Tree".
> --------------file listing
> -------------------------------------------------------------------------
> TFile** IEM2.root
> TFile* IEM2.root
> TDirectory* inc20 inc20
> OBJ: TTree IEM_EXP_Valid_Tree Validity Domain - Exponential IEM : 0
> KEY: TTree IEM_EXP_Valid_Tree;1 Validity Domain - Exponential IEM
> TDirectory* inc40 inc40
> OBJ: TTree IEM_EXP_Valid_Tree Validity Domain - Exponential IEM : 0
> KEY: TTree IEM_EXP_Valid_Tree;1 Validity Domain - Exponential IEM
>
> Thanks in advance for any help.
>
> Malcolm
>
>
> <>------------------------------------------------<>
> Malcolm W. J. Davidson
> CESBIO - UMR 5639 CNES-CNRS-UPS
> 18 Avenue Edouard Belin
> BP 2801
> F-31401 Toulouse Cedex 4 France
> e-mail : davidson@cesbio.cnes.fr
> phone (33)(0)5.61.55.85.84
> fax (33)(0)5.61.55.85.00
> <>------------------------------------------------<>
>
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:41 MET