#include "RooFit.h"
#include "RooConstVar.h"
#include "RooConstVar.h"
ClassImp(RooConstVar)
  ;
RooConstVar::RooConstVar(const char *name, const char *title, Double_t value) : 
  RooAbsReal(name,title), _value(value)
{  
  setAttribute("Constant",kTRUE) ;
}
RooConstVar::RooConstVar(const RooConstVar& other, const char* name) : 
  RooAbsReal(other, name), _value(other._value)
{
  
}
RooConstVar::~RooConstVar() 
{
}
Double_t RooConstVar::getVal(const RooArgSet*) const 
{ 
  return _value ; 
}
void RooConstVar::writeToStream(ostream& os, Bool_t ) const
{
  
  os << _value ;
}
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.