Tab complete a user defined variable

Hi,

I’m created a script that loads several datasets into their respective and unique TChain’s. Since the name of the TChains are dependent on the dataset loaded, I want to be able to view loaded TChains names similar to the “.ls” command for TFiles. This might be asking too much. I will settle for tab completion of the names similar to the global ‘g’ classes in the command terminal.

Thanks,
Surge

Hi Surge,

You can keep track of your TChain object in a TList (or a TObjArray):TList chains; chains.Add(chain1); chains.Add(chain2);and then dochains.ls();

Cheers,
Philippe.