Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooRangeBinning.cxx
Go to the documentation of this file.
1/*****************************************************************************
2 * Project: RooFit *
3 * Package: RooFitCore *
4 * @(#)root/roofitcore:$Id$
5 * Authors: *
6 * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7 * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8 * *
9 * Copyright (c) 2000-2005, Regents of the University of California *
10 * and Stanford University. All rights reserved. *
11 * *
12 * Redistribution and use in source and binary forms, *
13 * with or without modification, are permitted according to the terms *
14 * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15 *****************************************************************************/
16
17/**
18\file RooRangeBinning.cxx
19\class RooRangeBinning
20\ingroup Roofitcore
21
22RooRangeBinning is binning/range definition that only defines a range
23but no binning. It it used to store named ranges created by
24the RooRealVar::setRange() method
25**/
26
27#include "RooFit.h"
28
29#include "RooNumber.h"
30#include "RooMsgService.h"
31#include "Riostream.h"
32
33#include "RooRangeBinning.h"
34
35using namespace std;
36
38;
39
40
41
42////////////////////////////////////////////////////////////////////////////////
43/// Default constructor
44
47{
50
51}
52
53
54////////////////////////////////////////////////////////////////////////////////
55/// Construct binning with range [xmin,xmax] with no binning substructure
56
59{
60 _range[0] = xmin ;
61 _range[1] = xmax ;
62}
63
64
65
66////////////////////////////////////////////////////////////////////////////////
67/// Copy constructor
68
71{
72 _range[0] = other._range[0] ;
73 _range[1] = other._range[1] ;
74}
75
76
77
78////////////////////////////////////////////////////////////////////////////////
79/// Destructor
80
82{
83}
84
85
86
87////////////////////////////////////////////////////////////////////////////////
88/// Change limits of the binning to [xlo,xhi]
89
91{
92 if (xlo>xhi) {
93 oocoutE((TObject*)0,InputArguments) << "RooRangeBinning::setRange: ERROR low bound > high bound" << endl ;
94 return ;
95 }
96
97 _range[0] = xlo ;
98 _range[1] = xhi ;
99}
#define oocoutE(o, a)
#define ClassImp(name)
Definition Rtypes.h:364
char name[80]
Definition TGX11.cxx:110
float xmin
float xmax
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
static Double_t infinity()
Return internal infinity representation.
Definition RooNumber.cxx:49
RooRangeBinning is binning/range definition that only defines a range but no binning.
Double_t _range[2]
virtual void setRange(Double_t xlo, Double_t xhi)
Change limits of the binning to [xlo,xhi].
RooRangeBinning(const char *name=0)
Default constructor.
virtual ~RooRangeBinning()
Destructor.
Mother of all ROOT objects.
Definition TObject.h:37