Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roofit/roofitcore/src/RooGenProdProj.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ RooGenProdProj::RooGenProdProj(const RooGenProdProj& other, const char* name) :
_compSetN.add(*_compSetOwnedN) ;

_compSetOwnedD = new RooArgSet;
other._compSetD.snapshot(*_compSetOwnedN);
other._compSetD.snapshot(*_compSetOwnedD);
_compSetD.add(*_compSetOwnedD) ;

for (RooAbsArg * arg : *_compSetOwnedN) {
Expand Down
4 changes: 3 additions & 1 deletion roofit/roofitcore/src/RooProduct.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,12 @@ void RooProduct::ioStreamerPass2() {
RooAbsProxy * p0 = getProxy(0);
if(p0 == nullptr) {
_proxyList.AddAt(&_compRSet, 0);
p0 = &_compRSet;
}
RooAbsProxy * p1 = getProxy(1);
if(p1 == nullptr) {
_proxyList.AddAt(&_compCSet, 1);
p1 = &_compCSet;
}

// If the proxies in the proxy list still don't correspond to _compRSet and
Expand Down Expand Up @@ -566,7 +568,7 @@ void RooProduct::ioStreamerPass2() {
};

expectProxyIs(0, p0, &_compRSet, "_compRSet");
expectProxyIs(1, p1, &_compCSet, "_compSSet");
expectProxyIs(1, p1, &_compCSet, "_compCSet");
}


Expand Down