Logo ROOT  
Reference Guide
RooAbsProxy.cxx
Go to the documentation of this file.
1 /*****************************************************************************
2  * Project: RooFit *
3  * Package: RooFitCore *
4  * @(#)root/roofitcore:$Id$
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 
17 #include "RooFit.h"
18 
19 #include "Riostream.h"
20 #include "RooAbsProxy.h"
21 #include "RooArgSet.h"
22 #include "RooAbsArg.h"
23 
24 /**
25 \file RooAbsProxy.cxx
26 \class RooAbsProxy
27 \ingroup Roofitcore
28 
29 RooAbsProxy is the abstact interface for proxy classes.
30 Proxy classes hold pointers to other Roofit objects
31 and process serverRedirect changes so that the proxied
32 pointers are updated accordingly on a clone or copy of
33 of the owning class
34 **/
35 
36 
37 using namespace std;
38 
40 ;
41 
42 
43 ////////////////////////////////////////////////////////////////////////////////
44 /// Constructor
45 
47 {
48 }
49 
50 
51 
52 ////////////////////////////////////////////////////////////////////////////////
53 /// Copy constructor
54 
55 RooAbsProxy::RooAbsProxy(const char* /*name*/, const RooAbsProxy& other) :
56  _nset(other._nset)
57 {
58 }
59 
60 
61 ////////////////////////////////////////////////////////////////////////////////
62 /// Destructor
63 
64 void RooAbsProxy::changeNormSet(const RooArgSet* newNormSet)
65 {
66  _nset = (RooArgSet*) newNormSet ;
67 }
68 
69 
70 
71 ////////////////////////////////////////////////////////////////////////////////
72 /// Print proxy name
73 
74 void RooAbsProxy::print(ostream& os, Bool_t /*addContents*/) const
75 {
76  os << name() << endl ;
77 }
RooAbsProxy::print
virtual void print(std::ostream &os, Bool_t addContents=kFALSE) const
Print proxy name.
Definition: RooAbsProxy.cxx:74
RooFit.h
RooArgSet.h
ClassImp
#define ClassImp(name)
Definition: Rtypes.h:364
RooAbsProxy::name
virtual const char * name() const
Definition: RooAbsProxy.h:40
RooAbsArg.h
bool
RooAbsProxy.h
RooAbsProxy::_nset
RooArgSet * _nset
Definition: RooAbsProxy.h:53
RooAbsProxy::changeNormSet
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
Definition: RooAbsProxy.cxx:64
RooAbsProxy
RooAbsProxy is the abstact interface for proxy classes.
Definition: RooAbsProxy.h:30
Riostream.h
RooAbsProxy::RooAbsProxy
RooAbsProxy()
Constructor.
Definition: RooAbsProxy.cxx:46
RooArgSet
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:33