def fromname(self,name):
    """Return the particle data given the PDG name. Returns None if not found."""
    for id in self.ids():
        if self[id].name == name: return self.get(id)
    return None