48 _realVar(
"realVar",
"RooRealVar with error",this,(
RooAbsReal&)input)
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,
"");
150 for(
auto * binning : static_range_cast<RooAbsArg*>(
_altBinning)) {
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(") ;
void setShapeDirty()
Notify that a shape-like property (e.g. binning) has changed.
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
virtual RooAbsBinning * clone(const char *name=0) const =0
virtual void setMin(Double_t xlo)
Change lower bound to xlo.
virtual void setMax(Double_t xhi)
Change upper bound to xhi.
virtual void setRange(Double_t xlo, Double_t xhi)=0
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
virtual Double_t getMax(const char *name=0) const
Get maximum of currently defined range.
virtual Bool_t isValidReal(Double_t value, Bool_t printError=kFALSE) const
Check if given value is valid.
virtual Bool_t inRange(const char *name) const
Check if current value is inside range with given name.
virtual Double_t getMin(const char *name=0) const
Get miniminum of currently defined range.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooErrorVar is an auxilary class that represents the error of a RooRealVar as a seperate object.
void setBinning(const RooAbsBinning &binning, const char *name=0)
Store given binning with this variable under the given name.
void setRange(Double_t min, Double_t max)
void removeRange(const char *name=0)
Remove both upper and lower bounds from named binning, or default binning if name is null.
void syncCache(const RooArgSet *set=0)
Optional alternative ranges and binnings.
void setMin(Double_t value)
void setMax(Double_t value)
virtual Double_t getValV(const RooArgSet *set=0) const
Return value, i.e. error on input variable.
virtual Double_t evaluate() const
Evaluate this PDF / function / constant. Needs to be overridden by all derived classes.
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from given stream.
RooLinkedList _altBinning
Bool_t hasBinning(const char *name) const
Return true if we have binning with given name.
virtual void setVal(Double_t value)
Set the current value of the object. Needs to be overridden by implementations.
virtual ~RooErrorVar()
Destructor.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write value to stream.
std::list< std::string > getBinningNames() const
Get a list of all binning names.
void removeMin(const char *name=0)
Remove lower bound from named binning, or default binning if name is null.
void removeMax(const char *name=0)
Remove upper bound from named binning, or default binning if name is null.
void setBins(Int_t nBins)
Set default binning to nBins uniform bins.
const RooAbsBinning & getBinning(const char *name=0, Bool_t verbose=kTRUE, Bool_t createOnTheFly=kFALSE) const
Return binning with given name.
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
virtual void Add(TObject *arg)
virtual Bool_t Remove(TObject *arg)
Remove object from collection.
static Double_t 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_t readDouble(Double_t &value, Bool_t zapOnError=kFALSE)
Read the next token and convert it to a Double_t.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
virtual void SetName(const char *name)
Set the name of the TNamed.
virtual const char * GetName() const
Returns name of object.
TString & Append(const char *cs)