I'd like to replace:
RooAbsData *sdata =
data->reduce(CutRange("signalRegion"),SelectVars(*st));
RooDataHist
pData("pData","projData",RooArgSet(*st),*sdata) ;
with somthing like
RooAbsData *pData =
data->reduce(CutRange("signalRegion"),SelectVars(*st),Binned());
Also, it would be nice if
RooDataHist* RooDataSet::binnedClone(const char*
newName=0, const char* newTitle=0) const ;
would allow some named args such as 'CutRange',
'SelectVars',...
but that would then be identical to 'reduce' with the
right options,
so maybe 'reduce' and 'binnedClone' are not really the
best names
for this, as it/they would have become more generic...