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