parameters: (gp,excludeRadiation=True)
return_statement: return ret
docstring: Get the daughters of a particle, going through radiative X -> X' + a
         decays, either including or excluding the radiation among the daughters
         e.g. for  
                    X -> X' + a, X' -> b c 
             realGenDaughters(X, excludeRadiation=True)  = { b, c }
             realGenDaughters(X, excludeRadiation=False) = { a, b, c }
docstring_summary: Get the daughters of a particle, going through radiative X -> X' + a
         decays, either including or excluding the radiation among the daughters
         e.g. for  
                    X -> X' + a, X' -> b c 
             realGenDaughters(X, excludeRadiation=True)  = { b, c }
             realGenDaughters(X, excludeRadiation=False) = { a, b, c }
docstring_tokens: Get the daughters of a particle going through radiative X - > X + a decays either including or excluding the radiation among the daughters e . g . for X - > X + a X - > b c realGenDaughters ( X excludeRadiation = True ) = { b c } realGenDaughters ( X excludeRadiation = False ) = { a b c }
function: def realGenDaughters(gp,excludeRadiation=True):
      """Get the daughters of a particle, going through radiative X -> X' + a
         decays, either including or excluding the radiation among the daughters
         e.g. for  
                    X -> X' + a, X' -> b c 
             realGenDaughters(X, excludeRadiation=True)  = { b, c }
             realGenDaughters(X, excludeRadiation=False) = { a, b, c }"""
      ret = []
      for i in range(gp.numberOfDaughters()):
          dau = gp.daughter(i)
          if dau.pdgId() == gp.pdgId():
              if excludeRadiation:
                  return realGenDaughters(dau)
              else:
                  ret += realGenDaughters(dau)
          else:
              ret.append(dau)
      return ret
function_tokens: def realGenDaughters ( gp , excludeRadiation = True ) : ret = [ ] for i in range ( gp . numberOfDaughters ( ) ) : dau = gp . daughter ( i ) if dau . pdgId ( ) == gp . pdgId ( ) : if excludeRadiation : return realGenDaughters ( dau ) else : ret += realGenDaughters ( dau ) else : ret . append ( dau ) return ret