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  flagsWithFile.lock()
35  result.merge(BunchGroupCondAlgCfg(flagsWithFile))
36  bgkey = 'L1BunchGroup'
37  else: # trust that we can use the in-file metadata
38  bgkey = ''
39  else:
40  from TrigConfigSvc.TrigConfigSvcCfg import BunchGroupCondAlgCfg
41  result.merge(BunchGroupCondAlgCfg(flags))
42  bgkey = 'L1BunchGroup'
43  elif flags.Beam.BunchStructureSource == BunchStructureSource.Lumi:
44  from .LuminosityCondAlgConfig import LuminosityCondAlgCfg
45  result.merge(LuminosityCondAlgCfg(flags))
46 
47  alg = CompFactory.BunchCrossingCondAlg('BunchCrossingCondAlgDefault',
48  Run1=run1,
49  FillParamsFolderKey=folder,
50  Mode=flags.Beam.BunchStructureSource.value,
51  TrigConfigSvc=cfgsvc,
52  L1BunchGroupCondData=bgkey)
53 
54  result.addCondAlgo(alg)
55 
56  return result
57 
58 
59 

Variable Documentation

◆ BunchCrossingCondTest

python.BunchCrossingCondAlgConfig.BunchCrossingCondTest = CompFactory.BunchCrossingCondTest

Definition at line 84 of file BunchCrossingCondAlgConfig.py.

◆ DatabaseInstance

python.BunchCrossingCondAlgConfig.DatabaseInstance

Definition at line 65 of file BunchCrossingCondAlgConfig.py.

◆ Files

python.BunchCrossingCondAlgConfig.Files

Definition at line 63 of file BunchCrossingCondAlgConfig.py.

◆ flags

python.BunchCrossingCondAlgConfig.flags = initConfigFlags()

Definition at line 62 of file BunchCrossingCondAlgConfig.py.

◆ GlobalTag

python.BunchCrossingCondAlgConfig.GlobalTag

Definition at line 66 of file BunchCrossingCondAlgConfig.py.

◆ isMC

python.BunchCrossingCondAlgConfig.isMC

Definition at line 64 of file BunchCrossingCondAlgConfig.py.

◆ result

python.BunchCrossingCondAlgConfig.result = MainServicesCfg(flags)

Definition at line 70 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