Is there a generic way to know components of the TTreeFormula?

Did you try to search the forum? I found several possible related questions, like:

Otherwise @pcanal might give some hints