RE: Use new methods in Draw()

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Tue, 23 Jan 2007 10:04:29 -0600


Hi Hengtong,

There should be no problem at all. It is very important to us that any newer version of ROOT is able to read files produced by older versions.

Cheers,
Philippe.

-----Original Message-----
From: Hengtong Ding [mailto:dinght_at_iopp.ccnu.edu.cn] Sent: Monday, January 22, 2007 7:36 PM
To: Philippe Canal
Cc: 'Rene Brun'; 'Nico De Simone'; roottalk_at_pcroot.cern.ch Subject: RE: [ROOT] Use new methods in Draw()

Hi Philippe,
  Thanks. But all my simulation data are produced by v5-11-06,  If I use ROOT 5.13/04c to process these data, will there be some unexpected incompatible problem ?

Cheer,

Hengtong

On Mon, 22 Jan 2007, Philippe Canal wrote:

> Hi,
>
> I was able to reproduce the problem with ROOT 5.11/06
>
> I also confirm that this is fixed in (at least) ROOT 5.13/04c
>
> So please use the latest Production release 5.14/00b
>
> Cheers,
> Philippe
>
> -----Original Message-----
> From: Hengtong Ding [mailto:dinght_at_iopp.ccnu.edu.cn]
> Sent: Friday, January 19, 2007 9:53 PM
> To: Philippe Canal
> Cc: 'Rene Brun'; 'Nico De Simone'; roottalk_at_pcroot.cern.ch
> Subject: RE: [ROOT] Use new methods in Draw()
>
> Hi Philippe,
>
> Actually, it works when using tree->Draw("variable") as I mentioned in
> the last two eamils. Anyhow, I'll send you a simple rootfile as an
> attachment.
>
> get.C is :
> {
> TFile *f1 = new TFile("example.root","read");
> TTree *tree = f1 -> Get("tree") ;
> Double_t y[3];
> tree->SetBranchAddress("by",y) ;
>
> tree->Draw("sum.C");
>
> // Two Lines below works !!!
> // tree->Draw("y[0]");
> // tree->Draw("y[0]","y[2]*(y[0]>5)");
> }
>
> sum.C is
>
> double sum() {
> // double y[2];
> return y[0];
> }
>
> Best regards,
>
> Hengtong
>
>

-- 
************************************************
 *             Hengtong Ding                    *                    
 *                                              *
 *  Address:  Institute of Particle Physics,    *
 *            Central China Normal University   * 
 *            Wuhan, 430079,  P. R. China       *
 *  Tel:      0086 27 6786 7946 (lab)           *
 *            0086 27 8715 0351 (dormitory)     *
 *  Fax:      0086 27 6786 3213                 *
 *  Email:    dinght_at_iopp.ccnu.edu.cn           *
 *	      dinghengtong_at_hotmail.com          *
 ************************************************
Received on Tue Jan 23 2007 - 17:05:51 CET

This archive was generated by hypermail 2.2.0 : Tue Jan 23 2007 - 23:50:01 CET