and I add each of the TGraphErrors to a TMultiGraph like
Now the documentation states that “Deleting the TMultiGraph object will automatically delete the graphs.
You should not delete the graphs when the TMultigraph is still active.”
Do I understand correctly that I do not need to do
for (std::vector<TGraphErrors*>::const_iterator it = tmperrorgraph.begin(); it != tmperrorgraph.end(); ++it)
{
delete *it;
}
tmperrorgraph.clear();
i.e. ROOT will do it for me, when fMultigraph is deleted?