ATLAS Offline Software
Functions | Variables
python.BunchCrossingCondAlgConfig Namespace Reference

Functions

def BunchCrossingCondAlgCfg (flags)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 isMC
 
 DatabaseInstance
 
 GlobalTag
 
 result = MainServicesCfg(flags)
 
 BunchCrossingCondTest = CompFactory.BunchCrossingCondTest
 

Function Documentation

◆ BunchCrossingCondAlgCfg()

def python.BunchCrossingCondAlgConfig.BunchCrossingCondAlgCfg (   flags)

Definition at line 8 of file BunchCrossingCondAlgConfig.py.

8 def BunchCrossingCondAlgCfg(flags):
9  result=ComponentAccumulator()
10 
11  run1 = flags.IOVDb.DatabaseInstance == 'COMP200'
12  cfgsvc = None
13  folder = ''
14  bgkey = ''
15 
16  if flags.Beam.BunchStructureSource == BunchStructureSource.MC:
17  folder = '/Digitization/Parameters'
18  from DigitizationConfig.DigitizationParametersConfig import readDigitizationParameters
19  result.merge(readDigitizationParameters(flags))
20  elif flags.Beam.BunchStructureSource == BunchStructureSource.FILLPARAMS:
21  folder = '/TDAQ/OLC/LHC/FILLPARAMS'
22  from IOVDbSvc.IOVDbSvcConfig import addFolders
23  result.merge(addFolders(flags,folder,'TDAQ',className = 'AthenaAttributeList',tag='HEAD'))
24  elif flags.Beam.BunchStructureSource == BunchStructureSource.TrigConf:
25  from TrigConfxAOD.TrigConfxAODConfig import getxAODConfigSvc
26  cfgsvc = result.getPrimaryAndMerge(getxAODConfigSvc(flags))
27  if cfgsvc.UseInFileMetadata:
28  if 'TriggerMenuJson_BG' not in flags.Input.MetadataItems:
29  # this is for when we need to configure the BunchGroupCondAlg with info extracted from converted JSON
30  # in this case avoid using the xAODConfigSvc, because it will be set up incorrectly
31  from TrigConfigSvc.TrigConfigSvcCfg import BunchGroupCondAlgCfg
32  flagsWithFile = flags.clone()
33  flagsWithFile.Trigger.triggerConfig = 'FILE'
34  result.merge(BunchGroupCondAlgCfg(flagsWithFile))
35  bgkey = 'L1BunchGroup'
36  else: # trust that we can use the in-file metadata
37  bgkey = ''
38  else:
39  from TrigConfigSvc.TrigConfigSvcCfg import BunchGroupCondAlgCfg
40  result.merge(BunchGroupCondAlgCfg(flags))
41  bgkey = 'L1BunchGroup'
42  elif flags.Beam.BunchStructureSource == BunchStructureSource.Lumi:
43  from .LuminosityCondAlgConfig import LuminosityCondAlgCfg
44  result.merge(LuminosityCondAlgCfg(flags))
45 
46  alg = CompFactory.BunchCrossingCondAlg('BunchCrossingCondAlgDefault',
47  Run1=run1,
48  FillParamsFolderKey=folder,
49  Mode=flags.Beam.BunchStructureSource.value,
50  TrigConfigSvc=cfgsvc,
51  L1BunchGroupCondData=bgkey)
52 
53  result.addCondAlgo(alg)
54 
55  return result
56 
57 
58 

Variable Documentation

◆ BunchCrossingCondTest

python.BunchCrossingCondAlgConfig.BunchCrossingCondTest = CompFactory.BunchCrossingCondTest

Definition at line 83 of file BunchCrossingCondAlgConfig.py.

◆ DatabaseInstance

python.BunchCrossingCondAlgConfig.DatabaseInstance

Definition at line 64 of file BunchCrossingCondAlgConfig.py.

◆ Files

python.BunchCrossingCondAlgConfig.Files

Definition at line 62 of file BunchCrossingCondAlgConfig.py.

◆ flags

python.BunchCrossingCondAlgConfig.flags = initConfigFlags()

Definition at line 61 of file BunchCrossingCondAlgConfig.py.

◆ GlobalTag

python.BunchCrossingCondAlgConfig.GlobalTag

Definition at line 65 of file BunchCrossingCondAlgConfig.py.

◆ isMC

python.BunchCrossingCondAlgConfig.isMC

Definition at line 63 of file BunchCrossingCondAlgConfig.py.

◆ result

python.BunchCrossingCondAlgConfig.result = MainServicesCfg(flags)

Definition at line 69 of file BunchCrossingCondAlgConfig.py.

python.DigitizationParametersConfig.readDigitizationParameters
def readDigitizationParameters(flags)
Definition: DigitizationParametersConfig.py:85
python.LuminosityCondAlgConfig.LuminosityCondAlgCfg
def LuminosityCondAlgCfg(flags, useOnlineLumi=None, suffix=None)
Definition: LuminosityCondAlgConfig.py:17
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TrigConfxAODConfig.getxAODConfigSvc
def getxAODConfigSvc(flags)
Definition: TrigConfxAODConfig.py:5
python.BunchGroupCondAlgConfig.BunchGroupCondAlgCfg
def BunchGroupCondAlgCfg(flags)
Definition: BunchGroupCondAlgConfig.py:14
python.BunchCrossingCondAlgConfig.BunchCrossingCondAlgCfg
def BunchCrossingCondAlgCfg(flags)
Definition: BunchCrossingCondAlgConfig.py:8
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72