Re: THnSparse projection

From: Lorenzo Moneta <Lorenzo.Moneta_at_cern.ch>
Date: Wed, 3 Feb 2010 21:38:18 +0100


Hi,

Which ROOT version are you using ? Have you tried with the latest one, 5.26 ? We would need also a code example to reproduce your problem,

Best Regards

Lorenzo
On Feb 3, 2010, at 6:25 PM, davidesgalaberna_at_libero.it wrote:

> Hi,
>
> i want to project a 5 dimensions THnSparse into a 3 dimensions THnSparse:
> The code i used is:
>
> THnSparseD *h_obs;
> THnSparseD *h_obs_proj;
>
> int ndim =3;
> int dim[3]; // i select the three axis i want to project
> dim[0]=0;
> dim[1]=1;
> dim[2]=4;
>
> h_obs_proj = (THnSparseD*) h_obs -> Projection(ndim, dim,"E");
>
>
>
> where h_obs is the 5D THnSparseD.
>
> This code does segmentation fault but i don't know why.
>
>
> Thanks,
> Davide
>
Received on Wed Feb 03 2010 - 21:38:22 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 03 2010 - 23:50:01 CET