Logo ROOT   6.10/09
Reference Guide
RooRealConstant.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooRealConstant.h,v 1.13 2007/05/11 09:11:30 verkerke Exp $
5  * Authors: *
6  * WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
7  * DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
8  * *
9  * Copyright (c) 2000-2005, Regents of the University of California *
10  * and Stanford University. All rights reserved. *
11  * *
12  * Redistribution and use in source and binary forms, *
13  * with or without modification, are permitted according to the terms *
14  * listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
15  *****************************************************************************/
16 #ifndef ROO_REAL_CONSTANT
17 #define ROO_REAL_CONSTANT
18 
19 #include "Rtypes.h"
20 
21 class RooAbsReal ;
22 class RooArgList ;
23 class TIterator ;
24 #include "RooConstVar.h"
25 
27 public:
28 
29  inline RooRealConstant() {} ;
30  virtual ~RooRealConstant() {} ;
31  static RooConstVar& value(Double_t value) ;
32 
33  static void cleanup() ;
34 
35  static RooConstVar& removalDummy() ;
36 
37 protected:
38 
39  static void init() ;
40 
41  static RooArgList* _constDB ; // List of already instantiated constants
42  static TIterator* _constDBIter ; // Iterator over constants list
43 
44  ClassDef(RooRealConstant,0) // RooRealVar constants factory
45 };
46 
47 
48 #endif
49 
static TIterator * _constDBIter
RooRealConstant provides static functions to create and keep track of RooRealVar constants.
Iterator abstract base class.
Definition: TIterator.h:30
#define ClassDef(name, id)
Definition: Rtypes.h:297
RooConstVar represent a constant real-valued object.
Definition: RooConstVar.h:25
virtual ~RooRealConstant()
double Double_t
Definition: RtypesCore.h:55
RooAbsReal is the common abstract base class for objects that represent a real value and implements f...
Definition: RooAbsReal.h:53
static RooArgList * _constDB
static RooConstVar & removalDummy()
Create a dummy node used in node-removal operations.
static RooConstVar & value(Double_t value)
Return a constant value object with given value.
static void cleanup()
Cleanup function register with RooSentinel for cleanup in atexit()
static void init()
One-time initialization of constants database.