Root for ntuple generators of different types