ATLAS Offline Software
Functions | Variables
python.TileDSPThresholdConfig Namespace Reference

Functions

def TileDSP_ThresholdCondAlgCfg (flags, **kwargs)
 
def TileCondToolDspThresholdCfg (flags, **kwargs)
 

Variables

 flags
 
 Files
 
 acc
 
 autoCorrelationTool
 
 withDetails
 
 True
 
 summariseProps
 

Function Documentation

◆ TileCondToolDspThresholdCfg()

def python.TileDSPThresholdConfig.TileCondToolDspThresholdCfg (   flags,
**  kwargs 
)
Return component accumulator with configured private Tile DSP threshold tool
Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    Source -- source of Tile DSP threshold conditions (COOL, FILE). Defaults to COOL.
    TileDSP_Threshold -- name of Tile DSP threshold conditions object. Defaults to TileDSP_Threshold.

Definition at line 60 of file TileDSPThresholdConfig.py.

60 def TileCondToolDspThresholdCfg(flags, **kwargs):
61  """Return component accumulator with configured private Tile DSP threshold tool
62  Arguments:
63  flags -- Athena configuration flags
64  Keyword arguments:
65  Source -- source of Tile DSP threshold conditions (COOL, FILE). Defaults to COOL.
66  TileDSP_Threshold -- name of Tile DSP threshold conditions object. Defaults to TileDSP_Threshold.
67  """
68 
69  acc = ComponentAccumulator()
70 
71  kwargs.setdefault('Source', 'COOL')
72  kwargs.setdefault('TileDSP_Threshold', 'TileDSP_Threshold')
73 
74  dspThreshold = kwargs['TileDSP_Threshold']
75 
76  acc.merge( TileDSP_ThresholdCondAlgCfg(flags, **kwargs) )
77 
78  TileCondToolDspThreshold=CompFactory.TileCondToolDspThreshold
79  acc.setPrivateTools( TileCondToolDspThreshold(TileDSP_Threshold = dspThreshold) )
80 
81  return acc
82 
83 

◆ TileDSP_ThresholdCondAlgCfg()

def python.TileDSPThresholdConfig.TileDSP_ThresholdCondAlgCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile DSP threshold conditions algorithm

Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    Source -- source of Tile auto correlation conditions (COOL, FILE). Defaults to COOL.
    TileDSP_Threshold -- name of Tile auto correlation conditions object. Defaults to TileDSP_Threshold.

Definition at line 9 of file TileDSPThresholdConfig.py.

9 def TileDSP_ThresholdCondAlgCfg(flags, **kwargs):
10  """Return component accumulator with configured Tile DSP threshold conditions algorithm
11 
12  Arguments:
13  flags -- Athena configuration flags
14  Keyword arguments:
15  Source -- source of Tile auto correlation conditions (COOL, FILE). Defaults to COOL.
16  TileDSP_Threshold -- name of Tile auto correlation conditions object. Defaults to TileDSP_Threshold.
17  """
18 
19  acc = ComponentAccumulator()
20 
21  source = kwargs.get('Source', 'COOL')
22  dspThreshold = kwargs.get('TileDSP_Threshold', 'TileDSP_Threshold')
23 
24  name = dspThreshold + 'CondAlg'
25 
26  if source == 'COOL':
27  # Connect COOL Tile conditions proxies to the algorithm (default)
28 
29  from TileConditions.TileFolders import TileFolders
30  folders = TileFolders(isMC = flags.Input.isMC, isOnline = flags.Common.isOnline)
31 
32  if flags.IOVDb.DatabaseInstance == 'CONDBR2':
33  dspThresholdFolder = folders.addSplitOnline('/TILE/ONL01/DSP/THRESHOLD', '/TILE/OFL02/DSP/THRESHOLD')
34  else:
35  raise(Exception("No Tile DSP threshold folder in %s" % flags.IOVDb.DatabaseInstancea))
36 
37  TileCondProxyCoolFlt=CompFactory.getComp("TileCondProxyCool<TileCalibDrawerFlt>")
38  dspThresholdProxy = TileCondProxyCoolFlt('TileCondProxyCool_DspThreshold', Source = dspThresholdFolder)
39 
40  from IOVDbSvc.IOVDbSvcConfig import addFolderList
41  acc.merge( addFolderList(flags, folders.get()) )
42 
43  elif source == 'FILE':
44  # Connect FILE Tile conditions proxies to the algorithm
45  TileCondProxyFileFlt=CompFactory.getComp("TileCondProxyFile<TileCalibDrawerFlt>")
46  dspThresholdProxy = TileCondProxyFileFlt('TileCondProxyFile_DspThreshold', Source = 'TileDefault.dspThreshold')
47  else:
48  raise(Exception("Invalid source: %s" % source))
49 
50  TileCalibFltCondAlg=CompFactory.getComp("TileCalibCondAlg<TileCalibDrawerFlt>")
51  dspThresholdCondAlg = TileCalibFltCondAlg( name = name,
52  ConditionsProxy = dspThresholdProxy,
53  TileCalibData = dspThreshold)
54 
55  acc.addCondAlgo(dspThresholdCondAlg)
56 
57  return acc
58 
59 

Variable Documentation

◆ acc

python.TileDSPThresholdConfig.acc

Definition at line 98 of file TileDSPThresholdConfig.py.

◆ autoCorrelationTool

python.TileDSPThresholdConfig.autoCorrelationTool

Definition at line 100 of file TileDSPThresholdConfig.py.

◆ Files

python.TileDSPThresholdConfig.Files

Definition at line 95 of file TileDSPThresholdConfig.py.

◆ flags

python.TileDSPThresholdConfig.flags

Definition at line 94 of file TileDSPThresholdConfig.py.

◆ summariseProps

python.TileDSPThresholdConfig.summariseProps

Definition at line 103 of file TileDSPThresholdConfig.py.

◆ True

python.TileDSPThresholdConfig.True

Definition at line 103 of file TileDSPThresholdConfig.py.

◆ withDetails

python.TileDSPThresholdConfig.withDetails

Definition at line 103 of file TileDSPThresholdConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.IOVDbSvcConfig.addFolderList
def addFolderList(flags, listOfFolderInfoTuple, extensible=False, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:90
python.TileDSPThresholdConfig.TileCondToolDspThresholdCfg
def TileCondToolDspThresholdCfg(flags, **kwargs)
Definition: TileDSPThresholdConfig.py:60
TileCondProxyCool
The tool to get Tile conditions data from DB.
Definition: TileCondProxyCool.h:25
TileCondProxyFile
The tool to get Tile conditions data from file.
Definition: TileCondProxyFile.h:28
TileCalibCondAlg
Condition algorithm to prepare TileCalibData object and put it into condition store.
Definition: TileCalibCondAlg.h:24
TileCondToolDspThreshold
Definition: TileCondToolDspThreshold.h:17
python.TileDSPThresholdConfig.TileDSP_ThresholdCondAlgCfg
def TileDSP_ThresholdCondAlgCfg(flags, **kwargs)
Definition: TileDSPThresholdConfig.py:9