def wantCMBTandlmaxscalarge2000(ini):
    """
    Return true when want_CMB is set in the ini file and l_max_scalar is >= 2000.
    :param ini: The dictionary all inifile settings.
    :return: True, when want_CMB and l_max_scalar >= 2000, false else.
    """
    return ini.int("l_max_scalar") >= 2000 and ini.bool("want_CMB")