46 bool valueServer,
bool shapeServer,
bool proxyOwnsArg) :
50 _owner->registerProxy(*
this) ;
61 bool shapeServer,
bool proxyOwnsArg)
70 _owner->registerProxy(*
this) ;
87 _owner->registerProxy(*
this) ;
111 const bool initEmpty =
_arg ==
nullptr;
114 newArg =
_arg->findNewServer(newServerList, nameChange);
115 if (newArg==
_owner) newArg =
nullptr;
116 }
else if (factoryInitMode) {
117 newArg = newServerList.
first() ;
132 if (initEmpty && !factoryInitMode)
return true;
133 return newArg !=
nullptr;
143 auto newArgFound = replacements.find(
_arg);
144 if (newArgFound != replacements.end()) {
145 newArg = newArgFound->second;
159 return newArg !=
nullptr;
170 _arg->setProxyNormSet(newNormSet) ;
181 os <<
name() <<
"=" << (
_arg?
_arg->GetName():
"nullptr") ;
182 if (
_arg && addContents) {
Abstract container object that can hold multiple RooAbsArg objects.
RooAbsArg * first() const
virtual void changeNormSet(const RooArgSet *newNormSet)
Destructor.
void print(std::ostream &os, bool addContents=false) const override
Print the name of the proxy on ostream.
const char * name() const override
Return name of proxy.
RooAbsArg * _owner
Pointer to owner of proxy.
~RooArgProxy() override
Destructor.
bool _ownArg
If true proxy owns contents.
virtual void changeDataSet(const RooArgSet *newNormSet)
Change the normalization set that should be offered to the content objects getVal() when evaluated.
RooArgProxy()=default
Default constructor.
bool _isFund
If true proxy contains an lvalue.
bool _valueServer
If true contents is value server of owner.
RooAbsArg * owner() const
Returns the owner of this proxy.
RooAbsArg * _arg
Pointer to content of proxy.
bool _shapeServer
If true contents is shape server of owner.
bool changePointer(const RooAbsCollection &newServerSet, bool nameChange=false, bool factoryInitMode=false) override
Change proxied object to object of same name in given list.
RooArgSet is a container object that can hold multiple RooAbsArg objects.