Logo ROOT   6.08/07
Reference Guide
RooAbsProxy.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * File: $Id: RooAbsProxy.h,v 1.15 2007/07/12 20:30:28 wouter 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_ABS_PROXY
17 #define ROO_ABS_PROXY
18 
19 #include "TObject.h"
20 #include "RooAbsArg.h"
21 #include "Riosfwd.h"
22 
23 #ifdef _WIN32
24 // Turn off 'warning C4355: 'this' : used in base member initializer list'
25 //
26 // This message will pop up for any class that initializes member proxy objects
27 // Including the pragma here will automatically disable that warning message
28 // for all such cases
29 #pragma warning ( disable:4355 )
30 #endif
31 
32 class RooAbsProxy {
33 public:
34 
35  // Constructors, assignment etc.
36  RooAbsProxy() ;
37  RooAbsProxy(const char* name, const RooAbsProxy& other) ;
38  virtual ~RooAbsProxy() {
39  // Destructor
40  } ;
41 
42  virtual const char* name() const {
43  // Return name of proxy
44  return "dummy" ;
45  } ;
46 
47  inline const RooArgSet* nset() const {
48  // Return normalization set to be used for evaluation of contents
49  return _nset ;
50  }
51  virtual void print(std::ostream& os, Bool_t addContents=kFALSE) const ;
52 
53 protected:
54 
55  RooArgSet* _nset ; //! Normalization set to be used for evaluation of RooAbsPdf contents
56 
57  friend class RooAbsArg ;
58  friend class RooObjectFactory ;
59  virtual Bool_t changePointer(const RooAbsCollection& newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE) = 0 ;
60 
61  friend class RooAbsPdf ;
62  virtual void changeNormSet(const RooArgSet* newNormSet) ;
63 
64  ClassDef(RooAbsProxy,1) // Abstract proxy interface
65 } ;
66 
67 #endif
68 
virtual const char * name() const
Definition: RooAbsProxy.h:42
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
virtual ~RooAbsProxy()
Definition: RooAbsProxy.h:38
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual Bool_t changePointer(const RooAbsCollection &newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE)=0
const RooArgSet * nset() const
Definition: RooAbsProxy.h:47
RooArgSet * _nset
Definition: RooAbsProxy.h:55
RooAbsProxy is the abstact interface for proxy classes.
Definition: RooAbsProxy.h:32
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
Definition: RooAbsProxy.cxx:65
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects...
RooAbsPdf is the abstract interface for all probability density functions The class provides hybrid a...
Definition: RooAbsPdf.h:41
friend class RooObjectFactory
Definition: RooAbsProxy.h:58
RooAbsProxy()
Constructor.
Definition: RooAbsProxy.cxx:47
RooAbsArg is the common abstract base class for objects that represent a value (of arbitrary type) an...
Definition: RooAbsArg.h:66
virtual void print(std::ostream &os, Bool_t addContents=kFALSE) const
Print proxy name.
Definition: RooAbsProxy.cxx:75