def _calc_selected(analysis_settings, calc_type):
    """
    Return True, if "calc_type" is set in the anaylysis settings file

    :param calc_type: one of `eltcalc`, `lec_output`, `aalcalc` or `pltcalc`
    :type calc_type: str
    """
    is_in_gul = analysis_settings.get('gul_summaries')[0].get(calc_type, None
        ) if analysis_settings.get('gul_summaries') else None
    is_in_il = analysis_settings.get('il_summaries')[0].get(calc_type, None
        ) if analysis_settings.get('il_summaries') else None
    is_in_ri = analysis_settings.get('ri_summaries')[0].get(calc_type, None
        ) if analysis_settings.get('ri_summaries') else None
    return any([is_in_gul, is_in_il, is_in_ri])
