Added function to get particle by pdg id.