2 from AthenaConfiguration.Enums
import FlagEnum
20 284500: Campaign.MC20a,
21 300000: Campaign.MC20d,
22 310000: Campaign.MC20e,
23 410000: Campaign.MC21a,
29 from AthenaConfiguration.AutoConfigFlags
import GetFileMD
31 mc_campaign =
Campaign(metadata.get(
'mc_campaign',
''))
32 project_name = metadata.get(
'project_name',
'')
33 run_numbers = metadata.get(
'runNumbers', [])
35 if mc_campaign
is not Campaign.Unknown:
39 mc_campaign = campaign_runs.get(run_numbers[0], Campaign.Unknown)
42 if 'data24' in project_name:
44 elif 'data23' in project_name:
46 elif 'data22' in project_name:
48 elif 'data18' in project_name:
50 elif 'data17' in project_name:
52 elif 'data16' in project_name
or 'data15' in project_name: