RE: Use new methods in Draw()

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Mon, 22 Jan 2007 17:07:15 -0600


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 - 00:08:42 CET

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