ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 * @(#)root/roofitcore:$Id$
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/

//////////////////////////////////////////////////////////////////////////////
// 
// BEGIN_HTML
// RooConstVar represent a constant real-valued object
// END_HTML
//


#include "RooFit.h"

#include "Riostream.h"
#include "RooConstVar.h"

using namespace std;

ClassImp(RooConstVar)
  ;



//_____________________________________________________________________________
RooConstVar::RooConstVar(const char *name, const char *title, Double_t value) : 
  RooAbsReal(name,title), _value(value)
{  
  // Constructor with value
  //_fast = kTRUE ;
  setAttribute("Constant",kTRUE) ;
}



//_____________________________________________________________________________
RooConstVar::RooConstVar(const RooConstVar& other, const char* name) : 
  RooAbsReal(other, name), _value(other._value)
{
  // Copy constructor
  //_fast = kTRUE ;
}



//_____________________________________________________________________________
RooConstVar::~RooConstVar() 
{
  // Destructor
}



//_____________________________________________________________________________
Double_t RooConstVar::getValV(const RooArgSet*) const 
{ 
  // Return value
  return _value ; 
}



//_____________________________________________________________________________
void RooConstVar::writeToStream(ostream& os, Bool_t /*compact*/) const
{
  // Write object contents to stream
  os << _value ;
}

 RooConstVar.cxx:1
 RooConstVar.cxx:2
 RooConstVar.cxx:3
 RooConstVar.cxx:4
 RooConstVar.cxx:5
 RooConstVar.cxx:6
 RooConstVar.cxx:7
 RooConstVar.cxx:8
 RooConstVar.cxx:9
 RooConstVar.cxx:10
 RooConstVar.cxx:11
 RooConstVar.cxx:12
 RooConstVar.cxx:13
 RooConstVar.cxx:14
 RooConstVar.cxx:15
 RooConstVar.cxx:16
 RooConstVar.cxx:17
 RooConstVar.cxx:18
 RooConstVar.cxx:19
 RooConstVar.cxx:20
 RooConstVar.cxx:21
 RooConstVar.cxx:22
 RooConstVar.cxx:23
 RooConstVar.cxx:24
 RooConstVar.cxx:25
 RooConstVar.cxx:26
 RooConstVar.cxx:27
 RooConstVar.cxx:28
 RooConstVar.cxx:29
 RooConstVar.cxx:30
 RooConstVar.cxx:31
 RooConstVar.cxx:32
 RooConstVar.cxx:33
 RooConstVar.cxx:34
 RooConstVar.cxx:35
 RooConstVar.cxx:36
 RooConstVar.cxx:37
 RooConstVar.cxx:38
 RooConstVar.cxx:39
 RooConstVar.cxx:40
 RooConstVar.cxx:41
 RooConstVar.cxx:42
 RooConstVar.cxx:43
 RooConstVar.cxx:44
 RooConstVar.cxx:45
 RooConstVar.cxx:46
 RooConstVar.cxx:47
 RooConstVar.cxx:48
 RooConstVar.cxx:49
 RooConstVar.cxx:50
 RooConstVar.cxx:51
 RooConstVar.cxx:52
 RooConstVar.cxx:53
 RooConstVar.cxx:54
 RooConstVar.cxx:55
 RooConstVar.cxx:56
 RooConstVar.cxx:57
 RooConstVar.cxx:58
 RooConstVar.cxx:59
 RooConstVar.cxx:60
 RooConstVar.cxx:61
 RooConstVar.cxx:62
 RooConstVar.cxx:63
 RooConstVar.cxx:64
 RooConstVar.cxx:65
 RooConstVar.cxx:66
 RooConstVar.cxx:67
 RooConstVar.cxx:68
 RooConstVar.cxx:69
 RooConstVar.cxx:70
 RooConstVar.cxx:71
 RooConstVar.cxx:72
 RooConstVar.cxx:73
 RooConstVar.cxx:74
 RooConstVar.cxx:75
 RooConstVar.cxx:76
 RooConstVar.cxx:77
 RooConstVar.cxx:78
 RooConstVar.cxx:79
 RooConstVar.cxx:80
 RooConstVar.cxx:81