// RooRealProxy is the concrete proxy for RooAbsReal objects
// A RooRealProxy is the general mechanism to store references
// to RooAbsReals inside a RooAbsArg
//
// RooRealProxy provides a cast operator to Double_t, allowing
// the proxy to functions a Double_t on the right hand side of expressions.
// END_HTML
#include "RooFit.h"
#include "Riostream.h"
#include "TClass.h"
#include "RooRealProxy.h"
#include "RooRealVar.h"
ClassImp(RooRealProxy)
;
RooRealProxy::RooRealProxy(const char* inName, const char* desc, RooAbsArg* owner, RooAbsReal& ref,
Bool_t valueServer, Bool_t shapeServer, Bool_t ownArg) :
RooArgProxy(inName, desc, owner,ref, valueServer, shapeServer, ownArg)
{
}
RooRealProxy::RooRealProxy(const char* inName, RooAbsArg* owner, const RooRealProxy& other) :
RooArgProxy(inName, owner, other)
{
}
RooRealProxy::~RooRealProxy()
{
}
RooAbsRealLValue* RooRealProxy::lvptr() const
{
RooAbsRealLValue* Lvptr = (RooAbsRealLValue*)dynamic_cast<const RooAbsRealLValue*>(_arg) ;
if (!Lvptr) {
cout << "RooRealProxy(" << name() << ")::INTERNAL error, expected " << _arg->GetName() << " to be an lvalue" << endl ;
assert(0) ;
}
return Lvptr ;
}
Last change: Wed Jun 25 08:34:01 2008
Last generated: 2008-06-25 08:34
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.