def METHOD_NAME(self):
    """Sets CRL combination according to the current energy"""
    min_abs = 20
    selected_combination = None
    # crl_value = [0, 0, 0, 0, 0, 0]
    self.energy_value = HWR.beamline.energy.get_value()
    for combination_index in range(1, 65):
        current_abs = abs(
            self.energy_value
            - math.sqrt(
                (2 * 341.52 * combination_index)
                / (2000 * (1 / 42.6696 + 1 / self.focal_length))
            )
        )
        if current_abs < min_abs:
            min_abs = current_abs
            selected_combination = combination_index
    # for index in range(6):
    #    crl_value[index] = (selected_combination & pow(2,index))/pow(2,index)
    self.set_crl_value(self.convert_value(selected_combination))