Generic program to use random ROOT classes