copy of the CMS StatisticalTools/RooStatsRoutines as of June 2013