diff --git a/python/rcdb/alias.py b/python/rcdb/alias.py index d83c306..6dbc1d1 100644 --- a/python/rcdb/alias.py +++ b/python/rcdb/alias.py @@ -53,7 +53,7 @@ def __init__(self, name, expression, comment): collimator_diameter != 'Blocking'""", "Is production run with long mode data"), - ConditionSearchAlias('is_cosmic', "(run_type == 'hd_all.tsg_cosmic' and 'COSMIC' in daq_run and beam_current < 1) or (radiator_type == 'RETRACTED' and collimator_diameter == 'Blocking')", + ConditionSearchAlias('is_cosmic', "\"cosmic\" in run_config and beam_current < 1 and event_count > 5000", "Is cosmic run"), ConditionSearchAlias('is_empty_target', "target_type == 'EMPTY & Ready'", "Target is empty"),