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 "RooAbsProxy.h"
18#include "RooArgSet.h"
19
20#include <ostream>
21
22/**
23\file RooAbsProxy.cxx
24\class RooAbsProxy
25\ingroup Roofitcore
26
27Abstract 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
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}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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:24