ATLAS Offline Software
Functions | Variables
python.TrigDecisionToolHelpers Namespace Reference

Functions

def getRun3NavigationContainerFromInput_forAnalysisBase (flags)
 

Variables

 possible_keys
 

Function Documentation

◆ getRun3NavigationContainerFromInput_forAnalysisBase()

def python.TrigDecisionToolHelpers.getRun3NavigationContainerFromInput_forAnalysisBase (   flags)

Definition at line 22 of file TrigDecisionToolHelpers.py.

23  # What to return if we cannot look in the file
24  default_key = 'HLTNav_Summary_OnlineSlimmed' if getattr(flags.Trigger, "doOnlineNavigationCompactification", False) else 'HLTNav_Summary'
25  to_return = default_key
26 
27  if getattr(flags.Trigger, "doEDMVersionConversion", False):
28  to_return = 'HLTNav_R2ToR3Summary'
29  else:
30  for key in possible_keys:
31  if key in flags.Input.Collections:
32  to_return = key
33  break
34 
35  msg = logging.getLogger('getRun3NavigationContainerFromInput')
36  msg.info('Returning %s as the Run 3 trigger navigation colletion to read in this job.', to_return)
37 
38  # Double check 'possible_keys' is kept up to date
39  if to_return not in possible_keys:
40  msg.error('Must add %s to the "possible_keys" array!', to_return)
41 
42  return to_return

Variable Documentation

◆ possible_keys

python.TrigDecisionToolHelpers.possible_keys

Definition at line 13 of file TrigDecisionToolHelpers.py.

python.TrigDecisionToolHelpers.getRun3NavigationContainerFromInput_forAnalysisBase
def getRun3NavigationContainerFromInput_forAnalysisBase(flags)
Definition: TrigDecisionToolHelpers.py:22