added macro to get flat trees from bavanti ntuples