Note that the algorithm to extract the TTree info into RoODataSet is significantly poor. The problem lies in the definition of all the allowed ranges for the observables before perform the Import. Instead, it could be declared 'infinite' ranges for all the obsevables and then define the ranges when the RooDatSet::reduce method is used (to obtain different 1-dimensional datasets)
Note that the algorithm to extract the TTree info into RoODataSet is significantly poor. The problem lies in the definition of all the allowed ranges for the observables before perform the Import. Instead, it could be declared 'infinite' ranges for all the obsevables and then define the ranges when the RooDatSet::reduce method is used (to obtain different 1-dimensional datasets)