Hello, I’m trying to retrieve at TVectorD from a TList
But when I add the TVectorD to the TList, I do not know how to retrieve it as the TVectorD doesn’t have a title. I’m doing this essentially because I need be able to add doubles to a TList and TVector is a TObject which can be added to a TList.
You can ask the retrieved object for its type, either using regular C++ dynamic_cast or using ROOT’s TClass IsA and checking whether the object’s type is indeed TVectorD.
I need be able to add doubles to a TList and TVector is a TObject which can be added to a TList.
For singular double, you can also use TParameter.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.