ATLAS Offline Software
Functions | Variables
python.TileAutoCorrelationConfig Namespace Reference

Functions

def TileAutoCorrelationCondAlgCfg (flags, **kwargs)
 
def TileCondToolAutoCrCfg (flags, **kwargs)
 

Variables

 flags
 
 Files
 
 acc
 
 autoCorrelationTool
 
 withDetails
 
 True
 
 summariseProps
 

Function Documentation

◆ TileAutoCorrelationCondAlgCfg()

def python.TileAutoCorrelationConfig.TileAutoCorrelationCondAlgCfg (   flags,
**  kwargs 
)
Return component accumulator with configured Tile auto correlation conditions algorithm

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

Definition at line 8 of file TileAutoCorrelationConfig.py.

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

◆ TileCondToolAutoCrCfg()

def python.TileAutoCorrelationConfig.TileCondToolAutoCrCfg (   flags,
**  kwargs 
)
Return component accumulator with configured private Tile auto correlation tool
Arguments:
    flags  -- Athena configuration flags
Keyword arguments:
    Source -- source of Tile auto correlation conditions (COOL, FILE). Defaults to COOL.
    TileAutoCorrelation -- name of Tile auto correlation conditions object. Defaults to TileAutoCorrelaton.

Definition at line 63 of file TileAutoCorrelationConfig.py.

63 def TileCondToolAutoCrCfg(flags, **kwargs):
64  """Return component accumulator with configured private Tile auto correlation tool
65  Arguments:
66  flags -- Athena configuration flags
67  Keyword arguments:
68  Source -- source of Tile auto correlation conditions (COOL, FILE). Defaults to COOL.
69  TileAutoCorrelation -- name of Tile auto correlation conditions object. Defaults to TileAutoCorrelaton.
70  """
71 
72  acc = ComponentAccumulator()
73 
74  kwargs.setdefault('Source', 'COOL')
75  kwargs.setdefault('TileAutoCorrelation', 'TileAutoCorrelation')
76 
77  autoCorrelation = kwargs['TileAutoCorrelation']
78  name = 'TileCondToolAutoCr'
79 
80  acc.merge( TileAutoCorrelationCondAlgCfg(flags, **kwargs) )
81 
82  TileCondToolAutoCr=CompFactory.TileCondToolAutoCr
83  acc.setPrivateTools( TileCondToolAutoCr(name, TileAutoCorrelation = autoCorrelation) )
84 
85  return acc
86 
87 

Variable Documentation

◆ acc

python.TileAutoCorrelationConfig.acc

Definition at line 102 of file TileAutoCorrelationConfig.py.

◆ autoCorrelationTool

python.TileAutoCorrelationConfig.autoCorrelationTool

Definition at line 104 of file TileAutoCorrelationConfig.py.

◆ Files

python.TileAutoCorrelationConfig.Files

Definition at line 99 of file TileAutoCorrelationConfig.py.

◆ flags

python.TileAutoCorrelationConfig.flags

Definition at line 98 of file TileAutoCorrelationConfig.py.

◆ summariseProps

python.TileAutoCorrelationConfig.summariseProps

Definition at line 107 of file TileAutoCorrelationConfig.py.

◆ True

python.TileAutoCorrelationConfig.True

Definition at line 107 of file TileAutoCorrelationConfig.py.

◆ withDetails

python.TileAutoCorrelationConfig.withDetails

Definition at line 107 of file TileAutoCorrelationConfig.py.

python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
TileCondToolAutoCr
Definition: TileCondToolAutoCr.h:18
python.IOVDbSvcConfig.addFolderList
def addFolderList(flags, listOfFolderInfoTuple, extensible=False, db=None, modifiers='')
Definition: IOVDbSvcConfig.py:90
TileCondProxyCool
The tool to get Tile conditions data from DB.
Definition: TileCondProxyCool.h:25
python.TileAutoCorrelationConfig.TileCondToolAutoCrCfg
def TileCondToolAutoCrCfg(flags, **kwargs)
Definition: TileAutoCorrelationConfig.py:63
TileCondProxyFile
The tool to get Tile conditions data from file.
Definition: TileCondProxyFile.h:28
python.TileAutoCorrelationConfig.TileAutoCorrelationCondAlgCfg
def TileAutoCorrelationCondAlgCfg(flags, **kwargs)
Definition: TileAutoCorrelationConfig.py:8
TileCalibCondAlg
Condition algorithm to prepare TileCalibData object and put it into condition store.
Definition: TileCalibCondAlg.h:24