Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
29RooAbsProxy is the abstact interface for proxy classes.
30Proxy classes hold pointers to other Roofit objects
31and process serverRedirect changes so that the proxied
32pointers are updated accordingly on a clone or copy of
33of the owning class
34**/
35
36
37using namespace std;
38
40;
41
42
43////////////////////////////////////////////////////////////////////////////////
44/// Constructor
45
47{
48}
49
50
51
52////////////////////////////////////////////////////////////////////////////////
53/// Copy constructor
54
55RooAbsProxy::RooAbsProxy(const char* /*name*/, const RooAbsProxy& other) :
56 _nset(other._nset)
57{
58}
59
60
61////////////////////////////////////////////////////////////////////////////////
62/// Destructor
63
64void RooAbsProxy::changeNormSet(const RooArgSet* newNormSet)
65{
66 _nset = (RooArgSet*) newNormSet ;
67}
68
69
70
71////////////////////////////////////////////////////////////////////////////////
72/// Print proxy name
73
74void RooAbsProxy::print(ostream& os, Bool_t /*addContents*/) const
75{
76 os << name() << endl ;
77}
#define ClassImp(name)
Definition Rtypes.h:364
RooAbsProxy is the abstact interface for proxy classes.
Definition RooAbsProxy.h:30
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
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
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:29