ATLAS Offline Software
Static Public Member Functions | Static Public Attributes | List of all members
python.TestDefaults.defaultConditionsTags Class Reference
Collaboration diagram for python.TestDefaults.defaultConditionsTags:

Static Public Member Functions

def autoconfigure (flags)
 

Static Public Attributes

 RUN2_DATA
 
 RUN2_MC
 
 RUN3_DATA
 
 RUN3_MC
 
 RUN4_MC
 

Detailed Description

Definition at line 66 of file TestDefaults.py.

Member Function Documentation

◆ autoconfigure()

def python.TestDefaults.defaultConditionsTags.autoconfigure (   flags)
static

Definition at line 74 of file TestDefaults.py.

74  def autoconfigure(flags):
75  # TODO: uncomment when defaults are removed
76  # if flags.IOVDb.GlobalTag:
77  # return flags.IOVDb.GlobalTag
78 
79  from AthenaConfiguration.Enums import LHCPeriod
80  if flags.GeoModel.Run is LHCPeriod.Run1:
81  raise ValueError("No default conditions tags for Run 1")
82  if flags.GeoModel.Run is LHCPeriod.Run2:
83  return defaultConditionsTags.RUN2_MC if flags.Input.isMC else defaultConditionsTags.RUN2_DATA
84  if flags.GeoModel.Run is LHCPeriod.Run3:
85  if flags.Input.isMC:
86  return defaultConditionsTags.RUN3_MC
87  raise ValueError("No default data conditions tag for Run 3")
88  if flags.GeoModel.Run is LHCPeriod.Run4:
89  return defaultConditionsTags.RUN4_MC

Member Data Documentation

◆ RUN2_DATA

python.TestDefaults.defaultConditionsTags.RUN2_DATA
static

Definition at line 67 of file TestDefaults.py.

◆ RUN2_MC

python.TestDefaults.defaultConditionsTags.RUN2_MC
static

Definition at line 68 of file TestDefaults.py.

◆ RUN3_DATA

python.TestDefaults.defaultConditionsTags.RUN3_DATA
static

Definition at line 69 of file TestDefaults.py.

◆ RUN3_MC

python.TestDefaults.defaultConditionsTags.RUN3_MC
static

Definition at line 70 of file TestDefaults.py.

◆ RUN4_MC

python.TestDefaults.defaultConditionsTags.RUN4_MC
static

Definition at line 71 of file TestDefaults.py.


The documentation for this class was generated from the following file: