ATLAS Offline Software
Functions | Variables
python.ToolConstantsCondAlgConfig Namespace Reference

Functions

def ToolConstantsCondAlgCfg (flags, key, DetStoreKey='', COOLFolder='')
 

Variables

 flags = initConfigFlags()
 
 Files
 
def acc1 = ToolConstantsCondAlgCfg (flags, 'key1', DetStoreKey='ds1')
 
 summariseProps
 
def acc2 = ToolConstantsCondAlgCfg (flags, 'key2', COOLFolder='folder2')
 
def acc3 = ToolConstantsCondAlgCfg (flags, 'key3', COOLFolder='folder3', DetStoreKey='ds3')
 

Function Documentation

◆ ToolConstantsCondAlgCfg()

def python.ToolConstantsCondAlgConfig.ToolConstantsCondAlgCfg (   flags,
  key,
  DetStoreKey = '',
  COOLFolder = '' 
)
Configure a conditions algorithm to convert inline COOL data or detector store data to ToolConstants.
KEY is also the key of the output conditions object.
For reading from COOL inline data, COOLFOLDER gives the name
of the COOL folder; the dta are given by KEY within the folder.
The caller should register the folder with IOVDbSvc.
For copying a ToolConstants object from the detector store,
set DETSTOREKEY to the key of the object to copy.

Definition at line 11 of file ToolConstantsCondAlgConfig.py.

11 def ToolConstantsCondAlgCfg (flags, key, DetStoreKey='', COOLFolder=''):
12  """Configure a conditions algorithm to convert inline COOL data or detector store data to ToolConstants.
13  KEY is also the key of the output conditions object.
14  For reading from COOL inline data, COOLFOLDER gives the name
15  of the COOL folder; the dta are given by KEY within the folder.
16  The caller should register the folder with IOVDbSvc.
17  For copying a ToolConstants object from the detector store,
18  set DETSTOREKEY to the key of the object to copy."""
19 
20  if ((DetStoreKey == '' and COOLFolder == '') or
21  (DetStoreKey != '' and COOLFolder != '')):
22  raise RuntimeError ("ToolConstantsCondAlgCfg: For key " + key + ", exactly one of DetStoreKey or COOLFolder must be specified")
23 
24  result = ComponentAccumulator()
25 
26  name = 'ToolConstantsCondAlg_' + key
27 
28  ToolConstantsCondAlg = CompFactory.ToolConstantsCondAlg # CaloRec
29  alg = ToolConstantsCondAlg (name,
30  COOLFolderKey = COOLFolder,
31  ToolConstantsKey = key,
32  DetStoreKey = DetStoreKey)
33  result.addCondAlgo (alg)
34 
35  return result
36 
37 

Variable Documentation

◆ acc1

def python.ToolConstantsCondAlgConfig.acc1 = ToolConstantsCondAlgCfg (flags, 'key1', DetStoreKey='ds1')

Definition at line 45 of file ToolConstantsCondAlgConfig.py.

◆ acc2

def python.ToolConstantsCondAlgConfig.acc2 = ToolConstantsCondAlgCfg (flags, 'key2', COOLFolder='folder2')

Definition at line 50 of file ToolConstantsCondAlgConfig.py.

◆ acc3

def python.ToolConstantsCondAlgConfig.acc3 = ToolConstantsCondAlgCfg (flags, 'key3', COOLFolder='folder3', DetStoreKey='ds3')

Definition at line 56 of file ToolConstantsCondAlgConfig.py.

◆ Files

python.ToolConstantsCondAlgConfig.Files

Definition at line 41 of file ToolConstantsCondAlgConfig.py.

◆ flags

python.ToolConstantsCondAlgConfig.flags = initConfigFlags()

Definition at line 40 of file ToolConstantsCondAlgConfig.py.

◆ summariseProps

python.ToolConstantsCondAlgConfig.summariseProps

Definition at line 46 of file ToolConstantsCondAlgConfig.py.

python.ToolConstantsCondAlgConfig.ToolConstantsCondAlgCfg
def ToolConstantsCondAlgCfg(flags, key, DetStoreKey='', COOLFolder='')
Definition: ToolConstantsCondAlgConfig.py:11
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302