Re: Unsigned values in TArray's

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Fri, 17 Apr 2009 15:33:49 -0500


Hi Alberto,

There is indeed no version of TArray for unsigned value. (At your own risk :)), you can try to create a TArrayI from a UInt * by using: new TArrayI( n, (Int_t*)myarr );

Cheers,
Philippe.

Alberto Pulvirenti wrote:
> Dear all,
>
> when I try to adopt an UInt_t array into a TArrayI, for example, it
> raises an error, since there is neither constructor nor an "Adopt"
> which manages UInt_t.
> If I want to create a TArray of UInt_t or ULong_t, do I have to put
> the values by hand, one by one, or there is some automatic method? I
> didn't fing a TArray of unsigned, at least I didn't find it in the web
> reference guide.
>
> Thanks
>
> Cheers
>
> Alberto
>
>
Received on Fri Apr 17 2009 - 22:34:34 CEST

This archive was generated by hypermail 2.2.0 : Tue Apr 21 2009 - 05:50:02 CEST