Filter the member list obtained from a TObject

Hi there,

this question is a kind of extension of this previous post from long time ago.

I am interested to get a list of members, but only those members that are actually stored/written to disk. I.e. those members that end with //< and discard those that end with //!.

Once I get the list, for example using

TList *list2 = run->IsA()->GetListOfDataMembers()

how can I filter this list to get only those members, which are registered when using the ->Write method?

Hi Javier,

I think you can achieve this with the TDataMember::IsPersistent() method:


Thanks that’s what I was looking for.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.