RooAbsProxy.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * Project: RooFit                                                           *
00003  * Package: RooFitCore                                                       *
00004  *    File: $Id: RooAbsProxy.h,v 1.15 2007/07/12 20:30:28 wouter Exp $
00005  * Authors:                                                                  *
00006  *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
00007  *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
00008  *                                                                           *
00009  * Copyright (c) 2000-2005, Regents of the University of California          *
00010  *                          and Stanford University. All rights reserved.    *
00011  *                                                                           *
00012  * Redistribution and use in source and binary forms,                        *
00013  * with or without modification, are permitted according to the terms        *
00014  * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
00015  *****************************************************************************/
00016 #ifndef ROO_ABS_PROXY
00017 #define ROO_ABS_PROXY
00018 
00019 #include "TObject.h"
00020 #include "RooAbsArg.h"
00021 #include "Riosfwd.h"
00022 
00023 #ifdef _WIN32
00024 // Turn off 'warning C4355: 'this' : used in base member initializer list'
00025 // 
00026 // This message will pop up for any class that initializes member proxy objects
00027 // Including the pragma here will automatically disable that warning message
00028 // for all such cases
00029 #pragma warning ( disable:4355 )
00030 #endif
00031 
00032 class RooAbsProxy {
00033 public:
00034 
00035   // Constructors, assignment etc.
00036   RooAbsProxy() ;
00037   RooAbsProxy(const char* name, const RooAbsProxy& other) ;
00038   virtual ~RooAbsProxy() {
00039     // Destructor
00040   } ;
00041 
00042   virtual const char* name() const { 
00043     // Return name of proxy
00044     return "dummy" ; 
00045   } ;  
00046 
00047   inline const RooArgSet* nset() const { 
00048     // Return normalization set to be used for evaluation of contents
00049     return _nset ; 
00050   }
00051   virtual void print(ostream& os, Bool_t addContents=kFALSE) const ;
00052 
00053 protected:
00054 
00055   RooArgSet* _nset ; //! Normalization set to be used for evaluation of RooAbsPdf contents
00056 
00057   friend class RooAbsArg ;
00058   friend class RooObjectFactory ;
00059   virtual Bool_t changePointer(const RooAbsCollection& newServerSet, Bool_t nameChange=kFALSE, Bool_t factoryInitMode=kFALSE) = 0 ;
00060 
00061   friend class RooAbsPdf ;
00062   virtual void changeNormSet(const RooArgSet* newNormSet) ;
00063 
00064   ClassDef(RooAbsProxy,1) // Abstract proxy interface
00065 } ;
00066 
00067 #endif
00068 

Generated on Tue Jul 5 14:26:00 2011 for ROOT_528-00b_version by  doxygen 1.5.1