#ifndef ROO_LINEAR_VAR
#define ROO_LINEAR_VAR
#include "Riosfwd.h"
#include <math.h>
#include <float.h>
#include "TString.h"
#include "RooAbsRealLValue.h"
#include "RooRealProxy.h"
#include "RooFormula.h"
#include "RooLinTransBinning.h"
class RooArgSet ;
class RooLinearVar : public RooAbsRealLValue {
public:
RooLinearVar(const char *name, const char *title, RooAbsRealLValue& variable, const RooAbsReal& slope, const RooAbsReal& offset, const char *unit= "") ;
RooLinearVar(const RooLinearVar& other, const char* name=0);
virtual TObject* clone(const char* newname) const { return new RooLinearVar(*this,newname); }
virtual ~RooLinearVar() ;
virtual void setVal(Double_t value) ;
virtual Bool_t hasBinning(const char* name) const ;
virtual const RooAbsBinning& getBinning(const char* name=0, Bool_t verbose=kTRUE, Bool_t createOnTheFly=kFALSE) const ;
virtual RooAbsBinning& getBinning(const char* name=0, Bool_t verbose=kTRUE, Bool_t createOnTheFly=kFALSE) ;
virtual Double_t jacobian() const ;
virtual Bool_t isJacobianOK(const RooArgSet& depList) const ;
virtual Bool_t readFromStream(istream& is, Bool_t compact, Bool_t verbose=kFALSE) ;
virtual void writeToStream(ostream& os, Bool_t compact) const ;
using RooAbsRealLValue::operator= ;
using RooAbsRealLValue::setVal ;
protected:
virtual Double_t evaluate() const ;
mutable RooLinTransBinning _binning ;
RooLinkedList _altBinning ;
RooRealProxy _var ;
RooRealProxy _slope ;
RooRealProxy _offset ;
ClassDef(RooLinearVar,1)
};
#endif