ROOT logo
/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooAbsProxy.h,v 1.15 2007/07/12 20:30:28 wouter Exp $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_ABS_PROXY
#define ROO_ABS_PROXY

#include "TObject.h"
#include "RooAbsArg.h"
#include "Riosfwd.h"

#ifdef _WIN32
// Turn off 'warning C4355: 'this' : used in base member initializer list'
// 
// This message will pop up for any class that initializes member proxy objects
// Including the pragma here will automatically disable that warning message
// for all such cases
#pragma warning ( disable:4355 )
#endif

class RooAbsProxy {
public:

  // Constructors, assignment etc.
  RooAbsProxy() ;
  RooAbsProxy(const char* name, const RooAbsProxy& other) ;
  virtual ~RooAbsProxy() {
    // Destructor
  } ;

  virtual const char* name() const { 
    // Return name of proxy
    return "dummy" ; 
  } ;  

  inline const RooArgSet* nset() const { 
    // Return normalization set to be used for evaluation of contents
    return _nset ; 
  }
  virtual void print(std::ostream& os, Bool_t addContents=kFALSE) const ;

protected:

  RooArgSet* _nset ; //! Normalization set to be used for evaluation of RooAbsPdf contents

  friend class RooAbsArg ;
  friend class RooObjectFactory ;
  virtual Bool_t changePointer(const RooAbsCollection& newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE) = 0 ;

  friend class RooAbsPdf ;
  virtual void changeNormSet(const RooArgSet* newNormSet) ;

  ClassDef(RooAbsProxy,1) // Abstract proxy interface
} ;

#endif

 RooAbsProxy.h:1
 RooAbsProxy.h:2
 RooAbsProxy.h:3
 RooAbsProxy.h:4
 RooAbsProxy.h:5
 RooAbsProxy.h:6
 RooAbsProxy.h:7
 RooAbsProxy.h:8
 RooAbsProxy.h:9
 RooAbsProxy.h:10
 RooAbsProxy.h:11
 RooAbsProxy.h:12
 RooAbsProxy.h:13
 RooAbsProxy.h:14
 RooAbsProxy.h:15
 RooAbsProxy.h:16
 RooAbsProxy.h:17
 RooAbsProxy.h:18
 RooAbsProxy.h:19
 RooAbsProxy.h:20
 RooAbsProxy.h:21
 RooAbsProxy.h:22
 RooAbsProxy.h:23
 RooAbsProxy.h:24
 RooAbsProxy.h:25
 RooAbsProxy.h:26
 RooAbsProxy.h:27
 RooAbsProxy.h:28
 RooAbsProxy.h:29
 RooAbsProxy.h:30
 RooAbsProxy.h:31
 RooAbsProxy.h:32
 RooAbsProxy.h:33
 RooAbsProxy.h:34
 RooAbsProxy.h:35
 RooAbsProxy.h:36
 RooAbsProxy.h:37
 RooAbsProxy.h:38
 RooAbsProxy.h:39
 RooAbsProxy.h:40
 RooAbsProxy.h:41
 RooAbsProxy.h:42
 RooAbsProxy.h:43
 RooAbsProxy.h:44
 RooAbsProxy.h:45
 RooAbsProxy.h:46
 RooAbsProxy.h:47
 RooAbsProxy.h:48
 RooAbsProxy.h:49
 RooAbsProxy.h:50
 RooAbsProxy.h:51
 RooAbsProxy.h:52
 RooAbsProxy.h:53
 RooAbsProxy.h:54
 RooAbsProxy.h:55
 RooAbsProxy.h:56
 RooAbsProxy.h:57
 RooAbsProxy.h:58
 RooAbsProxy.h:59
 RooAbsProxy.h:60
 RooAbsProxy.h:61
 RooAbsProxy.h:62
 RooAbsProxy.h:63
 RooAbsProxy.h:64
 RooAbsProxy.h:65
 RooAbsProxy.h:66
 RooAbsProxy.h:67
 RooAbsProxy.h:68