Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
31public:
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
51protected:
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
const Bool_t kFALSE
Definition RtypesCore.h:92
#define ClassDef(name, id)
Definition Rtypes.h:325
RooAbsArg is the common abstract base class for objects that represent a value and a "shape" in RooFi...
Definition RooAbsArg.h:72
RooAbsCollection is an abstract container object that can hold multiple RooAbsArg objects.
RooAbsProxy is the abstact interface for proxy classes.
Definition RooAbsProxy.h:30
friend class RooObjectFactory
Definition RooAbsProxy.h:56
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
const RooArgSet * nset() const
Definition RooAbsProxy.h:45
RooAbsProxy()
Constructor.
RooArgSet * _nset
Definition RooAbsProxy.h:53
virtual void print(std::ostream &os, Bool_t addContents=kFALSE) const
Print proxy name.
virtual const char * name() const
Definition RooAbsProxy.h:40
virtual ~RooAbsProxy()
Definition RooAbsProxy.h:36
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:29