Logo ROOT  
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 "RooAbsArg.h"
20 
21 #ifdef _WIN32
22 // Turn off 'warning C4355: 'this' : used in base member initializer list'
23 //
24 // This message will pop up for any class that initializes member proxy objects
25 // Including the pragma here will automatically disable that warning message
26 // for all such cases
27 #pragma warning ( disable:4355 )
28 #endif
29 
30 class RooAbsProxy {
31 public:
32 
33  // Constructors, assignment etc.
34  RooAbsProxy() ;
35  RooAbsProxy(const char* name, const RooAbsProxy& other) ;
36  virtual ~RooAbsProxy() {
37  // Destructor
38  } ;
39 
40  virtual const char* name() const {
41  // Return name of proxy
42  return "dummy" ;
43  } ;
44 
45  inline const RooArgSet* nset() const {
46  // Return normalization set to be used for evaluation of contents
47  return _nset ;
48  }
49  virtual void print(std::ostream& os, Bool_t addContents=kFALSE) const ;
50 
51 protected:
52 
53  RooArgSet* _nset ; //! Normalization set to be used for evaluation of RooAbsPdf contents
54 
55  friend class RooAbsArg ;
56  friend class RooObjectFactory ;
57  virtual Bool_t changePointer(const RooAbsCollection& newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE) = 0 ;
58 
59  friend class RooAbsPdf ;
60  virtual void changeNormSet(const RooArgSet* newNormSet) ;
61 
62  ClassDef(RooAbsProxy,1) // Abstract proxy interface
63 } ;
64 
65 #endif
66 
RooAbsProxy::print
virtual void print(std::ostream &os, Bool_t addContents=kFALSE) const
Print proxy name.
Definition: RooAbsProxy.cxx:74
RooAbsProxy::name
virtual const char * name() const
Definition: RooAbsProxy.h:40
RooAbsArg.h
RooAbsProxy::~RooAbsProxy
virtual ~RooAbsProxy()
Definition: RooAbsProxy.h:36
RooAbsProxy::changePointer
virtual Bool_t changePointer(const RooAbsCollection &newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE)=0
bool
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
RooAbsCollection
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
Definition: RooAbsCollection.h:31
RooAbsProxy::nset
const RooArgSet * nset() const
Definition: RooAbsProxy.h:45
RooAbsProxy::_nset
RooArgSet * _nset
Definition: RooAbsProxy.h:53
RooAbsProxy::changeNormSet
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
Definition: RooAbsProxy.cxx:64
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
RooAbsArg
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
Definition: RooAbsArg.h:72
RooAbsProxy
RooAbsProxy is the abstact interface for proxy classes.
Definition: RooAbsProxy.h:30
RooAbsPdf
Definition: RooAbsPdf.h:43
RooAbsProxy::RooObjectFactory
friend class RooObjectFactory
Definition: RooAbsProxy.h:56
RooAbsProxy::RooAbsProxy
RooAbsProxy()
Constructor.
Definition: RooAbsProxy.cxx:46
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:29