71 _binning(variable.getBinning(),slope.getVal(),offs.getVal()),
72 _var("var","variable",this,variable,
kTRUE,kTRUE),
73 _slope("slope","slope",this,(
RooAbsReal&)slope),
74 _offset("offset","offset",this,(
RooAbsReal&)offs)
77 if (slope.dependsOnValue(variable) || offs.dependsOnValue(variable)) {
79 <<
"): ERROR, slope(" << slope.GetName() <<
") and offset(" 80 << offs.GetName() <<
") may not depend on variable(" 81 << variable.GetName() <<
")" << endl ;
99 _binning(other._binning),
100 _var(
"var",this,other._var),
101 _slope(
"slope",this,other._slope),
102 _offset(
"offset",this,other._offset)
138 coutE(
Eval) <<
"RooLinearVar::setVal(" <<
GetName() <<
"): ERROR: slope is zero, cannot invert relation" << endl ;
242 return *transBinning ;
260 std::list<std::string> binningNames(1,
"");
264 while((binning = iter.
next())) {
266 binningNames.push_back(name);
virtual const char * GetName() const
Returns name of object.
std::string GetName(const std::string &scope_name)
virtual ~RooLinearVar()
Destructor.
TIterator * createIterator(Bool_t dir=kIterForward) const
TObject * FindObject(const char *name) const
Return pointer to obejct with given name.
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.
virtual Double_t evaluate() const
Calculate current value of this object.
Double_t getVal(const RooArgSet *set=0) const
virtual Bool_t readFromStream(std::istream &is, Bool_t compact, Bool_t verbose=kFALSE)
Read object contents from stream.
RooFIter fwdIterator() const
virtual Bool_t isJacobianOK(const RooArgSet &depList) const
Returns true if Jacobian term associated with current expression tree is indeed constant.
Iterator abstract base class.
virtual void writeToStream(std::ostream &os, Bool_t compact) const
Write object contents to stream.
RooRealVar represents a fundamental (non-derived) real valued object.
RooLinkedList _altBinning
virtual void Add(TObject *arg)
virtual const RooAbsBinning & getBinning(const char *name=0, Bool_t verbose=kTRUE, Bool_t createOnTheFly=kFALSE) const
Const version of getBinning()
RooLinTransBinning is a special binning implementation for RooLinearVar that transforms the binning o...
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
virtual void setVal(Double_t value)
Assign given value to linear transformation: sets input variable to (value-offset)/slope If slope is ...
virtual Double_t jacobian() const
Return value of Jacobian associated with the transformation.
virtual Bool_t hasRange(const char *) const
RooAbsBinning is the abstract base class for RooRealVar binning definitions This class defines the in...
void Delete(Option_t *o=0)
Remove all elements in collection and delete all elements NB: Collection does not own elements...
RooLinTransBinning _binning
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Bool_t dependsOnValue(const RooAbsCollection &serverList, const RooAbsArg *ignoreArg=0) const
virtual std::list< std::string > getBinningNames() const
Get a list of all binning names.
RooAbsRealLValue is the common abstract base class for objects that represent a real value that may a...
virtual TObject * Next()=0
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
const RooAbsReal & arg() const
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...