59 _realVar(
"realVar",this,other._realVar)
128 if (!createOnTheFly) {
134 coutI(Contents) <<
"RooErrorVar::getBinning(" <<
GetName() <<
") new range named '"
135 <<
name <<
"' created with default bounds" << endl ;
148 std::list<std::string> binningNames(1,
"");
151 const char*
name = binning->GetName();
152 binningNames.push_back(
name);
218 coutW(InputArguments) <<
"RooErrorVar::setMin(" <<
GetName()
219 <<
"): Proposed new fit min. larger than max., setting min. to max." << endl ;
248 coutW(InputArguments) <<
"RooErrorVar::setMax(" <<
GetName()
249 <<
"): Proposed new fit max. smaller than min., setting max. to min." << endl ;
284 coutW(InputArguments) <<
"RooErrorVar::setRange(" <<
GetName()
285 <<
"): Proposed new fit max. smaller than min., setting max. to min." << endl ;
292 coutI(InputArguments) <<
"RooErrorVar::setRange(" <<
GetName()
293 <<
") new range named '" <<
name <<
"' created with bounds ["
294 << min <<
"," << max <<
"]" << endl ;
307 TString token,errorPrefix(
"RooErrorVar::readFromStream(") ;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void input
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
void setShapeDirty()
Notify that a shape-like property (e.g. binning) has changed.
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
virtual void setRange(double xlo, double xhi)=0
virtual void setMin(double xlo)
Change lower bound to xlo.
virtual void setMax(double xhi)
Change upper bound to xhi.
virtual RooAbsBinning * clone(const char *name=nullptr) const =0
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
bool isValidReal(double value, bool printError=false) const override
Check if given value is valid.
virtual double getMax(const char *name=nullptr) const
Get maximum of currently defined range.
virtual double getMin(const char *name=nullptr) const
Get minimum of currently defined range.
bool inRange(const char *name) const override
Check if current value is inside range with given name.
Abstract base class for objects that represent a real value and implements functionality common to al...
double getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
double _value
Cache for current value of object.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Auxiliary class that represents the error of a RooRealVar as a separate object.
bool hasBinning(const char *name) const override
Return true if we have binning with given name.
void removeMin(const char *name=nullptr)
Remove lower bound from named binning, or default binning if name is null.
void setBinning(const RooAbsBinning &binning, const char *name=nullptr)
Store given binning with this variable under the given name.
~RooErrorVar() override
Destructor.
void removeRange(const char *name=nullptr)
Remove both upper and lower bounds from named binning, or default binning if name is null.
void setMax(double value)
Set upper bound of default range to value.
std::list< std::string > getBinningNames() const override
Get a list of all binning names.
RooLinkedList _altBinning
! Optional alternative ranges and binnings
void setRange(double min, double max)
Set default ranges to [min,max].
void setVal(double value) override
Set the current value of the object. Needs to be overridden by implementations.
double getValV(const RooArgSet *set=nullptr) const override
Return value, i.e. error on input variable.
RooErrorVar()
Default constructor.
void setMin(double value)
Set lower bound of default range to value.
void syncCache(const RooArgSet *set=nullptr) override
Force the internal value cache to be up to date.
void writeToStream(std::ostream &os, bool compact) const override
Write value to stream.
RooAbsBinning * _binning
! Pointer to default binning definition
void removeMax(const char *name=nullptr)
Remove upper bound from named binning, or default binning if name is null.
const RooAbsBinning & getBinning(const char *name=nullptr, bool verbose=true, bool createOnTheFly=false) const override
Return binning with given name.
double evaluate() const override
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
bool readFromStream(std::istream &is, bool compact, bool verbose=false) override
Read object contents from given stream.
void setBins(Int_t nBins)
Set default binning to nBins uniform bins.
virtual void Add(TObject *arg)
TObject * FindObject(const char *name) const override
Return pointer to object with given name.
virtual bool Remove(TObject *arg)
Remove object from collection.
static constexpr double infinity()
Return internal infinity representation.
RooRangeBinning is binning/range definition that only defines a range but no binning.
RooRealVar represents a variable that can be changed from the outside.
bool readDouble(double &value, bool zapOnError=false)
Read the next token and convert it to a double.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
const char * GetName() const override
Returns name of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
TString & Append(const char *cs)