In order to persist all types of end vertices, endVtx->isDecay() has to be removed from the cloneDecayVertices function. This is needed for studies that involve brem photons.
endVtx->isDecay()
cloneDecayVertices
FYI: @lcalefic @cmarinbe