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 "Riostream.h"
18#include "RooAbsProxy.h"
19#include "RooArgSet.h"
20
21/**
22\file RooAbsProxy.cxx
23\class RooAbsProxy
24\ingroup Roofitcore
25
26Abstract 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
35
36RooAbsProxy::RooAbsProxy() = default;
37
38////////////////////////////////////////////////////////////////////////////////
39/// Copy constructor
40
41RooAbsProxy::RooAbsProxy(const char* /*name*/, const RooAbsProxy& other) :
42 _nset(other._nset)
43{
44}
45
46
47////////////////////////////////////////////////////////////////////////////////
48/// Destructor
49
51{
52 _nset = const_cast<RooArgSet*>(newNormSet) ;
53}
54
55
56
57////////////////////////////////////////////////////////////////////////////////
58/// Print proxy name
59
60void RooAbsProxy::print(std::ostream& os, bool /*addContents*/) const
61{
62 os << name() << std::endl;
63}
#define ClassImp(name)
Definition Rtypes.h:377
Abstract interface for proxy classes.
Definition RooAbsProxy.h:37
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
RooArgSet * _nset
! Normalization set to be used for evaluation of RooAbsPdf contents
Definition RooAbsProxy.h:60
virtual void print(std::ostream &os, bool addContents=false) const
Print proxy name.
virtual const char * name() const
Definition RooAbsProxy.h:47
RooArgSet is a container object that can hold multiple RooAbsArg objects.
Definition RooArgSet.h:55