Re: How to use CompileVariables on root v2.23/12

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Mar 04 2000 - 16:21:08 MET


Hello,
The function CompileVariables exists only in TTreePlayer,
not in TVirtualTreePlayer (I will add it).
I have modified your code to make it running.
See below.

Rene Brun


On Fri, 3 Mar 2000, Yongzhao Zhou wrote:

> Hi, Rooters,
> I have the statements on root v2.20 on AIX v4.3 as
> 
>    Int_t Nevent = (Int_t)tr->GetEntries();
>    Float_t *x = new Float_t[Nevent];
>    Float_t *y = new Float_t[Nevent];
>    tr->CompileVariables(varexp, "");
> 
> and try to convert into root v2.23 as follows:
> 
>    Int_t Nevent = (Int_t)tr->GetEntries();
>    Float_t *x = new Float_t[Nevent];
>    Float_t *y = new Float_t[Nevent];
>    //tr->CompileVariables(varexp, "");
> 
>    TTreePlayer *zzz =  (TTreePlayer*)tr-> GetPlayer();
//<===============
>    zzz->CompileVariables(varexp, ""); //<====================
>     
> It is passed by compiling and linking but always gotten a message when the 
> program touches the statement of zhoutry->CompileVariables(varexp, ""):
> 
>    *** Break *** segmentation violation
> 
> How can I use the class TTreePlayer to get function CompileVariables?
> Thanks for any help.
> Best,
> ZYZ
>  
> ------
> Yongzhao Zhou, KLOE, LNF, INFN, Italy
> Tel:39-06-94032696 Fax:39-06-94032427
> 



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:20 MET