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 "Riostream.h"
18#include "RooAbsProxy.h"
19#include "RooArgSet.h"
20
21/**
22\file RooAbsProxy.cxx
23\class RooAbsProxy
24\ingroup Roofitcore
25
26RooAbsProxy is the abstact interface for proxy classes.
27Proxy classes hold pointers to other Roofit objects
28and process serverRedirect changes so that the proxied
29pointers are updated accordingly on a clone or copy of
30of the owning class
31**/
32
33
34using namespace std;
35
37;
38
39
40////////////////////////////////////////////////////////////////////////////////
41/// Constructor
42
44{
45}
46
47
48
49////////////////////////////////////////////////////////////////////////////////
50/// Copy constructor
51
52RooAbsProxy::RooAbsProxy(const char* /*name*/, const RooAbsProxy& other) :
53 _nset(other._nset)
54{
55}
56
57
58////////////////////////////////////////////////////////////////////////////////
59/// Destructor
60
62{
63 _nset = const_cast<RooArgSet*>(newNormSet) ;
64}
65
66
67
68////////////////////////////////////////////////////////////////////////////////
69/// Print proxy name
70
71void RooAbsProxy::print(ostream& os, bool /*addContents*/) const
72{
73 os << name() << endl ;
74}
#define ClassImp(name)
Definition: Rtypes.h:375
RooAbsProxy is the abstact interface for proxy classes.
Definition: RooAbsProxy.h:33
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
Definition: RooAbsProxy.cxx:61
RooAbsProxy()
Constructor.
Definition: RooAbsProxy.cxx:43
RooArgSet * _nset
! Normalization set to be used for evaluation of RooAbsPdf contents
Definition: RooAbsProxy.h:56
virtual void print(std::ostream &os, bool addContents=false) const
Print proxy name.
Definition: RooAbsProxy.cxx:71
virtual const char * name() const
Definition: RooAbsProxy.h:43
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition: RooArgSet.h:56