|
ROOT
Reference Guide |
|
Go to the documentation of this file.
65 _binning(variable.getBinning(),slope.getVal(),offs.getVal()),
66 _var(
"var",
"variable",this,variable,
kTRUE,
kTRUE),
67 _slope(
"slope",
"slope",this,(
RooAbsReal&)slope),
68 _offset(
"offset",
"offset",this,(
RooAbsReal&)offs)
73 <<
"): ERROR, slope(" << slope.
GetName() <<
") and offset("
74 << offs.
GetName() <<
") may not depend on variable("
75 << variable.
GetName() <<
")" << endl ;
93 _binning(other._binning),
94 _var(
"var",this,other._var),
95 _slope(
"slope",this,other._slope),
96 _offset(
"offset",this,other._offset)
132 coutE(
Eval) <<
"RooLinearVar::setVal(" <<
GetName() <<
"): ERROR: slope is zero, cannot invert relation" << endl ;
236 return *transBinning ;
254 std::list<std::string> binningNames(1,
"");
258 while((binning = iter.
next())) {
260 binningNames.push_back(
name);
virtual Bool_t isJacobianOK(const RooArgSet &depList) const
Returns true if Jacobian term associated with current expression tree is indeed constant.
const T & arg() const
Return reference to object held in proxy.
Bool_t dependsOnValue(const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=0) const
Check whether this object depends on values from an element in the serverList.
virtual Double_t jacobian() const
Return value of Jacobian associated with the transformation.
Double_t getVal(const RooArgSet *normalisationSet=nullptr) const
Evaluate object.
virtual void setVal(Double_t value)=0
Set the current value of the object. Needs to be overridden by implementations.
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
RooFIter fwdIterator() const
Create a one-time-use forward iterator for this list.
virtual std::list< std::string > getBinningNames() const
Get a list of all binning names.
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual Bool_t hasBinning(const char *name) const
Returns true if binning with given name exists.If a given binning exists on the input variable,...
Iterator abstract base class.
RooLinearVar is the most general form of a derived real-valued object that can be used by RooRealInte...
RooLinTransBinning is a special binning implementation for RooLinearVar that transforms the binning o...
A one-time forward iterator working on RooLinkedList or RooAbsCollection.
virtual Bool_t hasRange(const char *) const
RooLinTransBinning _binning
TIterator * createIterator(Bool_t dir=kIterForward) const
TIterator-style iteration over contained elements.
RooAbsBinning is the abstract base class for RooRealVar binning definitions.
void updateInput(const RooAbsBinning &input, Double_t slope=1.0, Double_t offset=0.0)
Update the slope and offset parameters and the pointer to the input binning.
RooAbsArg * next()
Return next element or nullptr if at end.
virtual void Add(TObject *arg)
virtual Double_t evaluate() const
Calculate current value of this object
virtual TObject * Next()=0
RooLinkedList _altBinning
virtual const RooAbsBinning & getBinning(const char *name=0, Bool_t verbose=kTRUE, Bool_t createOnTheFly=kFALSE) const
Const version of getBinning()
virtual ~RooLinearVar()
Destructor.
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to stream.
virtual const char * GetName() const
Returns name of object.
RooRealVar represents a variable that can be changed from the outside.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
void Delete(Option_t *o=0)
Remove all elements in collection and delete all elements NB: Collection does not own elements,...
RooArgSet is a container object that can hold multiple RooAbsArg objects.
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from stream.