[Root_list] problem compiling
Carlos Ayerbe
gayoso at jlab.org
Wed May 4 14:19:03 EDT 2016
Thank you all, indeed the problem was dimension the address of the array.
Lorenzo, I guess the method you suggested is for Root 6, isn't it?
Thanks againa
Carlos
----- Original Message -----
From: "Jixie Zhang" <jixie at jlab.org>
To: "gayoso" <gayoso at jlab.org>
Cc: "root list" <root_list at jlab.org>
Sent: Wednesday, May 4, 2016 9:56:08 AM
Subject: Re: [Root_list] problem compiling
Carlos,
This line seems not right.
"RTPCTree ->SetBranchAddress("X", &X[ndim]);"
On Wed, May 4, 2016 at 8:09 AM, Beni Zihlmann <zihlmann at jlab.org> wrote:
> I just realized:
>
> RTPCTree ->SetBranchAddress("X", &X[ndim]);
>
> try
>
> RTPCTree->SetBranchAddress("X", X);
>
> X is defined as array in the header file so X is already the pointer to
> the first
> element in the array.
>
> cheers,
> Beni
>
More information about the Root_list
mailing list