ATLAS Offline Software
Loading...
Searching...
No Matches
TileHid2RESrcIDConfig Namespace Reference

Functions

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

Variables

 flags = initConfigFlags()
 Files
 AtlasVersion
 cfg = MainServicesCfg(flags)
 withDetails
 True
 summariseProps
 sc = cfg.run(3)

Detailed Description

Define methods to construct configured TileHid2ReSrcIDCondAlg conditions algorithm

Function Documentation

◆ TileHid2RESrcIDCondAlg()

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

Definition at line 9 of file TileHid2RESrcIDConfig.py.

9def 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
ClassName: AthSequencer.
Condition algorithm to prepare TileHid2RESrcID conditions object and put it into conditions store.

◆ TileHid2RESrcIDCondAlgCfg()

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

Definition at line 24 of file TileHid2RESrcIDConfig.py.

24def 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 = MainServicesCfg(flags)

Definition at line 85 of file TileHid2RESrcIDConfig.py.

◆ Files

TileHid2RESrcIDConfig.Files

Definition at line 79 of file TileHid2RESrcIDConfig.py.

◆ flags

TileHid2RESrcIDConfig.flags = initConfigFlags()

Definition at line 78 of file TileHid2RESrcIDConfig.py.

◆ sc

TileHid2RESrcIDConfig.sc = cfg.run(3)

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.