class ROOT::Fit::DataRange


   class describing the range in the coordinates
   it supports  multiple range in a coordinate.
   The rnage dimension is the dimension of the coordinate, its size is
   the number of interval for each coordinate.
   Default range is -inf, inf
   Range can be modified with the add range method

   @ingroup FitData

Function Members (Methods)

public:
~DataRange()
voidAddRange(double xmin, double xmax, unsigned int icoord = 0)
voidClear(unsigned int icoord = 0)
ROOT::Fit::DataRangeDataRange(unsigned int dim = 1)
ROOT::Fit::DataRangeDataRange(const ROOT::Fit::DataRange&)
ROOT::Fit::DataRangeDataRange(double xmin, double xmax)
ROOT::Fit::DataRangeDataRange(double xmin, double xmax, double ymin, double ymax)
ROOT::Fit::DataRangeDataRange(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
voidGetRange(unsigned int icoord, double& xmin, double& xmax) const
boolIsInside(double x, unsigned int icoord = 0) const
unsigned intNDim() const
pair<double,double>operator()(unsigned int icoord) const
ROOT::Fit::DataRange&operator=(const ROOT::Fit::DataRange&)
const ROOT::Fit::DataRange::RangeSet&Ranges(unsigned int icoord) const
unsigned intSize(unsigned int icoord) const
protected:
voidCleanRangeSet(unsigned int icoord, double xmin, double xmax)

Data Members

private:
ROOT::Fit::DataRange::RangeIntervalsfRangeslist of all ranges

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

explicit DataRange(unsigned int dim = 1)
      Default constructor (infinite range)

{}
DataRange(double xmin, double xmax)
      construct a range for [xmin, xmax]

DataRange(double xmin, double xmax, double ymin, double ymax)
      construct a range for [xmin, xmax] , [ymin, ymax]

DataRange(double xmin, double xmax, double ymin, double ymax, double zmin, double zmax)
      get range dimension

unsigned int NDim()
{ return fRanges.size(); }
unsigned int Size(unsigned int icoord) const
      return range size for coordinate icoord (starts from zero)
      Size == 0 indicates no range is present [-inf, + inf]

const RangeSet & Ranges(unsigned int icoord) const
       return the vector of ranges for the coordinate icoord

std::pair<double, double> operator()(unsigned int icoord) const
       return the first range for the coordinate icoord.
       Useful method when only one range is present for the given coordinate

void GetRange(unsigned int icoord, double& xmin, double& xmax) const
      get the first range for given coordinate

~DataRange()
      Destructor (no operations)

{}
void AddRange(double xmin, double xmax, unsigned int icoord = 0)
      add a range [xmin,xmax] for the new coordinate icoord

void Clear(unsigned int icoord = 0)
      clear all ranges in one coordinate (is now -inf, +inf)

bool IsInside(double x, unsigned int icoord = 0) const
      check if a point is inside the range for the given coordinate

void CleanRangeSet(unsigned int icoord, double xmin, double xmax)
       internal function to remove all the existing ranges between xmin and xmax
       called when a new range is inserted


Author: L. Moneta Wed Aug 30 11:05:02 2006
Last change: root/mathcore:$Id: DataRange.h 22868 2008-03-27 16:38:59Z rdm $
Last generated: 2008-06-25 08:29
Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT *

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.