I have a naive question. In RooFit, I have a line like:
but I get the error:
ERROR:ObjectHandling – RooAbsCollection: cannot replace “X” with already existing "Y"
which I think is because it refuses to replace if Y already occurs. (I tried to simply the example above.)
Why does this happen, and is there any way around this?