ATLAS Offline Software
Functions | Variables
TileHid2RESrcIDConfig Namespace Reference

Functions

def TileHid2RESrcIDCondAlg (ForHLT=False, **kwargs)
 
def TileHid2RESrcIDCondAlgCfg (flags, source='COOL', **kwargs)
 

Variables

 flags
 
 Files
 
 AtlasVersion
 
 cfg
 
 ForHLT
 
 withDetails
 
 True
 
 summariseProps
 
 sc
 

Function Documentation

◆ TileHid2RESrcIDCondAlg()

def TileHid2RESrcIDConfig.TileHid2RESrcIDCondAlg (   ForHLT = False,
**  kwargs 
)
Configure TileHid2ReSrcIDCondAlg conditions algorithm

Definition at line 9 of file TileHid2RESrcIDConfig.py.

9 def TileHid2RESrcIDCondAlg(ForHLT=False, **kwargs):
10  """Configure TileHid2ReSrcIDCondAlg conditions algorithm"""
11 
12  hid2RESrcID = 'TileHid2RESrcIDHLT' if ForHLT else 'TileHid2RESrcID'
13  hid2RESrcIDCondAlg = f'{hid2RESrcID}CondAlg'
14  from AthenaCommon.AlgSequence import AthSequencer
15  condSequence = AthSequencer("AthCondSeq")
16  if hasattr(condSequence, hid2RESrcIDCondAlg):
17  return #Already there....
18 
19  from TileByteStream.TileByteStreamConf import TileHid2RESrcIDCondAlg
20  condSequence += TileHid2RESrcIDCondAlg(name=hid2RESrcIDCondAlg, ForHLT=ForHLT, TileHid2RESrcID=hid2RESrcID, **kwargs)
21  return
22 
23 

◆ TileHid2RESrcIDCondAlgCfg()

def TileHid2RESrcIDConfig.TileHid2RESrcIDCondAlgCfg (   flags,
  source = 'COOL',
**  kwargs 
)
Return component accumulator with configured TileHid2ReSrcIDCondAlg conditions algorithm

Definition at line 24 of file TileHid2RESrcIDConfig.py.

24 def TileHid2RESrcIDCondAlgCfg(flags, source='COOL', **kwargs):
25  """Return component accumulator with configured TileHid2ReSrcIDCondAlg conditions algorithm"""
26 
27  forHLT = kwargs.get('ForHLT', False)
28  hid2RESrcID = 'TileHid2RESrcIDHLT' if forHLT else 'TileHid2RESrcID'
29  kwargs.setdefault('TileHid2RESrcID', hid2RESrcID)
30  kwargs.setdefault('name', f'{hid2RESrcID}CondAlg')
31 
32  acc = ComponentAccumulator()
33 
34  from TileGeoModel.TileGMConfig import TileGMCfg
35  acc.merge( TileGMCfg(flags) )
36 
37  if source == 'COOL':
38  rodFolder = None
39  # Connect COOL Tile conditions proxies to the tool
40  if flags.IOVDb.DatabaseInstance == 'COMP200':
41  # In the COMP200 DB there is no conditions with ROD status
42  kwargs['FullTileMode'] = 1 # Configure predifined mapping for Run1
43  elif flags.Input.isMC:
44  rodFolder = '/TILE/OFL02/STATUS/ROD'
45  # Temporary tag is hardcoded until it is connected to the global tags
46  acc.merge(addFolders(flags, rodFolder, 'TILE_OFL', tag='TileOfl02StatusRod-RUN3-00', className='CondAttrListCollection'))
47  else:
48  rodFolder = '/TILE/ONL01/STATUS/ROD'
49  acc.merge(addFolders(flags, rodFolder, 'TILE', className='CondAttrListCollection'))
50 
51  if rodFolder:
52  TileCondProxyCoolInt = CompFactory.getComp("TileCondProxyCool<TileCalibDrawerInt>")
53  rodStatusProxy = TileCondProxyCoolInt('TileCondProxyCool_ROD', Source=rodFolder)
54  kwargs['RODStatusProxy'] = rodStatusProxy
55 
56  elif source == 'FILE':
57  TileCondProxyFileInt = CompFactory.getComp("TileCondProxyFile<TileCalibDrawerInt>")
58  rodStatusProxy = TileCondProxyFileInt('TileCondProxyFile_ROD', Source='TileDefault.fullrod')
59  kwargs['RODStatusProxy'] = rodStatusProxy
60 
61  TileHid2ReSrcIDCondAlg = CompFactory.TileHid2RESrcIDCondAlg
62  acc.addCondAlgo( TileHid2ReSrcIDCondAlg(**kwargs) )
63 
64  return acc
65 
66 
67 

Variable Documentation

◆ AtlasVersion

TileHid2RESrcIDConfig.AtlasVersion

Definition at line 80 of file TileHid2RESrcIDConfig.py.

◆ cfg

TileHid2RESrcIDConfig.cfg

Definition at line 85 of file TileHid2RESrcIDConfig.py.

◆ Files

TileHid2RESrcIDConfig.Files

Definition at line 79 of file TileHid2RESrcIDConfig.py.

◆ flags

TileHid2RESrcIDConfig.flags

Definition at line 78 of file TileHid2RESrcIDConfig.py.

◆ ForHLT

TileHid2RESrcIDConfig.ForHLT

Definition at line 90 of file TileHid2RESrcIDConfig.py.

◆ sc

TileHid2RESrcIDConfig.sc

Definition at line 95 of file TileHid2RESrcIDConfig.py.

◆ summariseProps

TileHid2RESrcIDConfig.summariseProps

Definition at line 92 of file TileHid2RESrcIDConfig.py.

◆ True

TileHid2RESrcIDConfig.True

Definition at line 92 of file TileHid2RESrcIDConfig.py.

◆ withDetails

TileHid2RESrcIDConfig.withDetails

Definition at line 92 of file TileHid2RESrcIDConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
AthSequencer
ClassName: AthSequencer.
Definition: AthSequencer.h:40
TileCondProxyCool
The tool to get Tile conditions data from DB.
Definition: TileCondProxyCool.h:25
TileHid2RESrcIDCondAlg
Condition algorithm to prepare TileHid2RESrcID conditions object and put it into conditions store.
Definition: TileHid2RESrcIDCondAlg.h:27
TileCondProxyFile
The tool to get Tile conditions data from file.
Definition: TileCondProxyFile.h:28
python.IOVDbSvcConfig.addFolders
def addFolders(flags, folderStrings, detDb=None, className=None, extensible=False, tag=None, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:72
TileHid2RESrcIDConfig.TileHid2RESrcIDCondAlg
def TileHid2RESrcIDCondAlg(ForHLT=False, **kwargs)
Definition: TileHid2RESrcIDConfig.py:9
TileHid2RESrcIDConfig.TileHid2RESrcIDCondAlgCfg
def TileHid2RESrcIDCondAlgCfg(flags, source='COOL', **kwargs)
Definition: TileHid2RESrcIDConfig.py:24
TileGMConfig.TileGMCfg
def TileGMCfg(flags)
Definition: TileGMConfig.py:7