def METHOD_NAME(self, query, sim):
    """Only return those hops which reach the specified simulation"""
    query = query.join(self._link_orm_class.halo_to).join(core.SimulationObjectBase.timestep).filter(
        core.timestep.TimeStep.simulation_id == sim.id)
    return query