Exemplo n.º 1
0
 def get_db_type(self):
     ''' @return: The database decay mode type for this Decay. '''
     return DECAY_MODE_IMPL.get_mode_for_particles(PARTICLE_TYPE_IMPL.get_type_for_name(self.parent.type),
                                              PARTICLE_TYPE_IMPL.get_types_for_names([p.type for p in self.products]) )
Exemplo n.º 2
0
 def get_db_type(self):
     ''' Get the database information object containing information about particles
         of this particle's type (i.e. whose type strings equal self.type). '''
     return PARTICLE_TYPE_IMPL.get_type_for_name(self.type)