ATLAS Offline Software
Loading...
Searching...
No Matches
python.TileDCSConfig Namespace Reference

Functions

 TileDCSCondAlgCfg (flags, **kwargs)
 TileDCSToolCfg (flags, **kwargs)

Variables

 flags = initConfigFlags()
 Files
 acc = ComponentAccumulator()
 dcsTool = acc.popToolsAndMerge( TileDCSToolCfg(flags) )
 withDetails
 True
 summariseProps

Detailed Description

Define methods to construct configured Tile DCS tool and conditions algorithm

Function Documentation

◆ TileDCSCondAlgCfg()

python.TileDCSConfig.TileDCSCondAlgCfg ( flags,
** kwargs )
Return component accumulator with configured Tile DCS conditions algorithm

Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    ReadHV -- Read Tile DCS HV folder from DB. Defaults True.
    ReadHVSET -- Read Tile DCS HVSET folder from DB. Defaults to False.
    ReadSTATES -- Read Tile DCS STATES folder from DB. Defaults to True.
    TileDCS -- name of Tile DCS conditions object. Defaults to TileDCS.

Definition at line 8 of file TileDCSConfig.py.

8def TileDCSCondAlgCfg(flags, **kwargs):
9 """Return component accumulator with configured Tile DCS conditions algorithm
10
11 Arguments:
12 flags -- Athena configuration flags
13 Keyword arguments:
14 ReadHV -- Read Tile DCS HV folder from DB. Defaults True.
15 ReadHVSET -- Read Tile DCS HVSET folder from DB. Defaults to False.
16 ReadSTATES -- Read Tile DCS STATES folder from DB. Defaults to True.
17 TileDCS -- name of Tile DCS conditions object. Defaults to TileDCS.
18 """
19
20 isMC = flags.Input.isMC
21 isOnline = flags.Common.isOnline
22
23 if isOnline or isMC:
24 raise(Exception('No Tile DCS information in online [%s] or MC [%s]' % (isOnline, isMC)))
25
26 acc = ComponentAccumulator()
27
28 dcs = kwargs.get('TileDCS', 'TileDCS')
29 readHV = kwargs.get('ReadHV', True)
30 readHVSET = kwargs.get('ReadHVSET', False)
31 readSTATES = kwargs.get('ReadSTATES', True)
32
33 name = dcs + 'CondAlg'
34
35 from TileConditions.TileCablingSvcConfig import TileCablingSvcCfg
36 acc.merge( TileCablingSvcCfg(flags) )
37
38 if not readHVSET:
39 from TileConditions.TileEMScaleConfig import TileEMScaleCondAlgCfg
40 acc.merge( TileEMScaleCondAlgCfg(flags) )
41
42 from TileConditions.TileFolders import TileFolders
43 folders = TileFolders(isMC = flags.Input.isMC, isOnline = flags.Common.isOnline)
44
45 db = 'DCS_OFL'
46 if readHV:
47 folders.add('/TILE/DCS/HV', db)
48 if readHVSET:
49 folders.add('/TILE/DCS/HVSET', db)
50 if readSTATES:
51 folders.add('/TILE/DCS/STATES', db)
52
53 from IOVDbSvc.IOVDbSvcConfig import addFolderList
54 acc.merge( addFolderList(flags, folders.get()) )
55
56 TileDCSCondAlg=CompFactory.TileDCSCondAlg
57 dcsCondAlg = TileDCSCondAlg( name = name,
58 ReadHV = readHV,
59 ReadHVSET = readHVSET,
60 ReadSTATES = readSTATES,
61 TileDCS = dcs)
62
63 acc.addCondAlgo(dcsCondAlg)
64
65 return acc
66
67
Condition algorithm to prepare TileDCSState object and put it into condition store.

◆ TileDCSToolCfg()

python.TileDCSConfig.TileDCSToolCfg ( flags,
** kwargs )
Return component accumulator with configured private Tile DCS tool
Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    ReadHV -- Read Tile DCS HV folder from DB. Defaults True.
    ReadHVSET -- Read Tile DCS HVSET folder from DB. Defaults to False.
    ReadSTATES -- Read Tile DCS STATES folder from DB. Defaults to True.
    TileDCS -- name of Tile DCS conditions object. Defaults to TileDCS.

Definition at line 68 of file TileDCSConfig.py.

68def TileDCSToolCfg(flags, **kwargs):
69 """Return component accumulator with configured private Tile DCS tool
70 Arguments:
71 flags -- Athena configuration flags
72 Keyword arguments:
73 ReadHV -- Read Tile DCS HV folder from DB. Defaults True.
74 ReadHVSET -- Read Tile DCS HVSET folder from DB. Defaults to False.
75 ReadSTATES -- Read Tile DCS STATES folder from DB. Defaults to True.
76 TileDCS -- name of Tile DCS conditions object. Defaults to TileDCS.
77 """
78
79 acc = ComponentAccumulator()
80
81 kwargs.setdefault('TileDCS', 'TileDCS')
82 kwargs.setdefault('ReadHV', True)
83 kwargs.setdefault('ReadHVSET', False)
84 kwargs.setdefault('ReadSTATUS', True)
85
86 dcs = kwargs['TileDCS']
87
88 acc.merge( TileDCSCondAlgCfg(flags, **kwargs) )
89
90 TileDCSTool=CompFactory.TileDCSTool
91 acc.setPrivateTools( TileDCSTool(TileDCS = dcs) )
92
93 return acc
94
95
The tool to get Tile DCS information from DB.
Definition TileDCSTool.h:23

Variable Documentation

◆ acc

python.TileDCSConfig.acc = ComponentAccumulator()

Definition at line 110 of file TileDCSConfig.py.

◆ dcsTool

python.TileDCSConfig.dcsTool = acc.popToolsAndMerge( TileDCSToolCfg(flags) )

Definition at line 112 of file TileDCSConfig.py.

◆ Files

python.TileDCSConfig.Files

Definition at line 107 of file TileDCSConfig.py.

◆ flags

python.TileDCSConfig.flags = initConfigFlags()

Definition at line 106 of file TileDCSConfig.py.

◆ summariseProps

python.TileDCSConfig.summariseProps

Definition at line 115 of file TileDCSConfig.py.

◆ True

python.TileDCSConfig.True

Definition at line 115 of file TileDCSConfig.py.

◆ withDetails

python.TileDCSConfig.withDetails

Definition at line 115 of file TileDCSConfig.py.