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