purity extraction for Z+2b and Z+1b analysis