10 flags: AthConfigFlags, config_name: str, log: logging.Logger) -> AthConfigFlags:
12 """Get the flags for the named config, ensure that they are set to be active
16 flags : AthConfigFlags
17 The instance of the flags to check
19 The name of the desired tracking config
21 Logger to print related messages
25 Either the current flags instance if all the ActiveConfig is correct or a new
26 version with cloned flags
28 the flags correspond to InDet/ITk format
31 if flags.hasFlag(
"Tracking.ActiveConfig.input_name"):
32 if flags.Tracking.ActiveConfig.input_name == config_name:
34 "flags.Tracking.ActiveConfig is for %s",
35 flags.Tracking.ActiveConfig.input_name,
40 "flags.Tracking.ActiveConfig is not for %s but %s",
42 flags.Tracking.ActiveConfig.input_name,
47 "Menu code invoked ID config without flags.Tracking.ActiveConfig for %s",