TList from Integer

Hello,

I’d like to create a linked list of Integers in Root. TList seems to be the right choice, but I do not find an elegant solution to make a TObject from an Int_t - I found a solution for Double_t with TVector in this forum, but this would involve a cast in both directions: Does anyone know of a more elegant solution?

Thanks!

Hi,

Use TParameter.

Cheers,
Philippe.

PS. You can also use std::list