#include "RooFit.h"
#include "RooNumber.h"
#include "RooNumber.h"
#include "Riostream.h"
#include "RooRangeBinning.h"
ClassImp(RooRangeBinning)
;
RooRangeBinning::RooRangeBinning(const char* name) :
RooAbsBinning(name)
{
_range[0] = -RooNumber::infinity ;
_range[1] = +RooNumber::infinity ;
}
RooRangeBinning::RooRangeBinning(Double_t xmin, Double_t xmax, const char* name) :
RooAbsBinning(name)
{
_range[0] = xmin ;
_range[1] = xmax ;
}
RooRangeBinning::RooRangeBinning(const RooRangeBinning& other, const char* name) :
RooAbsBinning(name)
{
_range[0] = other._range[0] ;
_range[1] = other._range[1] ;
}
RooRangeBinning::~RooRangeBinning()
{
}
void RooRangeBinning::setRange(Double_t xlo, Double_t xhi)
{
if (xlo>xhi) {
cout << "RooRangeBinning::setRange: ERROR low bound > high bound" << endl ;
return ;
}
_range[0] = xlo ;
_range[1] = xhi ;
}
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.