def atomZ_sel_str(pdg_var):
    """ Returns the ROOT sel string for cutting on Z using pdg codes.

    pdg_var: string representing the true-pdg variable in the TTree
    """
    return '{0}/10000 % 1000'.format(pdg_var)