Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Functions
python.ITkStripConditionsAlgorithmsConfig Namespace Reference

Functions

def ITkStripAlignCondAlgCfg (flags, name="ITkStripAlignCondAlg", **kwargs)
 
def getITkStripDAQConfigFolder (flags)
 
def ITkStripConfigurationCondAlgCfg (flags, name="ITkStripConfigurationCondAlg", **kwargs)
 
def ITkStripDetectorElementCondAlgCfg (flags, name="ITkStripDetectorElementCondAlg", **kwargs)
 
def ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg (flags, name="ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg", **kwargs)
 
def ITkStripDetectorElementStatusAlgCfg (flags, name="ITkStripDetectorElementStatusAlg", **kwargs)
 

Function Documentation

◆ getITkStripDAQConfigFolder()

def python.ITkStripConditionsAlgorithmsConfig.getITkStripDAQConfigFolder (   flags)

Definition at line 27 of file ITkStripConditionsAlgorithmsConfig.py.

27 def getITkStripDAQConfigFolder(flags) :
28  return "/ITkStrip/DAQ/Config/" if flags.IOVDb.DatabaseInstance != "COMP200" else "/ITkStrip/DAQ/Configuration/"
29 
30 

◆ ITkStripAlignCondAlgCfg()

def python.ITkStripConditionsAlgorithmsConfig.ITkStripAlignCondAlgCfg (   flags,
  name = "ITkStripAlignCondAlg",
**  kwargs 
)
Return a configured SCT_AlignCondAlg for ITk

Definition at line 9 of file ITkStripConditionsAlgorithmsConfig.py.

9 def ITkStripAlignCondAlgCfg(flags, name="ITkStripAlignCondAlg", **kwargs):
10  """Return a configured SCT_AlignCondAlg for ITk"""
11  acc = ITkStripGeoModelCfg(flags)
12  if flags.GeoModel.Align.Dynamic:
13  raise RuntimeError("Dynamic alignment not supported for ITk yet")
14  else:
15  acc.merge(addFoldersSplitOnline(flags, "INDET", "/Indet/Onl/Align", flags.ITk.Geometry.alignmentFolder, className="AlignableTransformContainer"))
16 
17  kwargs.setdefault("DetManagerName", "ITkStrip")
18  kwargs.setdefault("WriteKey", "ITkStripAlignmentStore")
19  kwargs.setdefault("UseDynamicAlignFolders", flags.GeoModel.Align.Dynamic)
20  kwargs.setdefault("ReadKeyStatic",flags.ITk.Geometry.alignmentFolder)
21 
22  sctAlignCondAlg = CompFactory.SCT_AlignCondAlg(name, **kwargs)
23  acc.addCondAlgo(sctAlignCondAlg)
24  return acc
25 
26 

◆ ITkStripConfigurationCondAlgCfg()

def python.ITkStripConditionsAlgorithmsConfig.ITkStripConfigurationCondAlgCfg (   flags,
  name = "ITkStripConfigurationCondAlg",
**  kwargs 
)

Definition at line 31 of file ITkStripConditionsAlgorithmsConfig.py.

31 def ITkStripConfigurationCondAlgCfg(flags, name="ITkStripConfigurationCondAlg", **kwargs):
32  acc = ComponentAccumulator()
33  folder_prefix = getITkStripDAQConfigFolder(flags)
34  channelFolder = folder_prefix + ("Chip" if flags.IOVDb.DatabaseInstance == "COMP200" else "ChipSlim")
35  kwargs.setdefault("ReadKeyChannel", channelFolder)
36  kwargs.setdefault("ReadKeyModule", f"{folder_prefix}Module")
37  kwargs.setdefault("ReadKeyMur", f"{folder_prefix}MUR")
38 
39  acc.merge(addFoldersSplitOnline(flags,
40  detDb="ITkStrip",
41  onlineFolders=channelFolder,
42  offlineFolders=channelFolder,
43  className="CondAttrListVec",
44  splitMC=True))
45  acc.merge(addFoldersSplitOnline(flags,
46  detDb="ITkStrip",
47  onlineFolders=f"{folder_prefix}Module",
48  offlineFolders=f"{folder_prefix}Module",
49  className="CondAttrListVec",
50  splitMC=True))
51  acc.merge(addFoldersSplitOnline(flags,
52  detDb="ITkStrip",
53  onlineFolders=f"{folder_prefix}MUR",
54  offlineFolders=f"{folder_prefix}MUR",
55  className="CondAttrListVec",
56  splitMC=True))
57 
58  from SCT_Cabling.ITkStripCablingConfig import ITkStripCablingToolCfg
59  kwargs.setdefault("SCT_CablingTool", acc.popToolsAndMerge(ITkStripCablingToolCfg(flags)))
60 
61  from SCT_ConditionsTools.ITkStripConditionsToolsConfig import ITkStripReadoutToolCfg
62  kwargs.setdefault("SCT_ReadoutTool", acc.popToolsAndMerge(ITkStripReadoutToolCfg(flags)))
63 
64  acc.addCondAlgo(CompFactory.SCT_ConfigurationCondAlg(name, **kwargs))
65  return acc
66 
67 

◆ ITkStripDetectorElementCondAlgCfg()

def python.ITkStripConditionsAlgorithmsConfig.ITkStripDetectorElementCondAlgCfg (   flags,
  name = "ITkStripDetectorElementCondAlg",
**  kwargs 
)

Definition at line 68 of file ITkStripConditionsAlgorithmsConfig.py.

68 def ITkStripDetectorElementCondAlgCfg(flags, name="ITkStripDetectorElementCondAlg", **kwargs):
69  kwargs.setdefault("DetManagerName", "ITkStrip")
70  kwargs.setdefault("ReadKey", "ITkStripAlignmentStore")
71  kwargs.setdefault("WriteKey", "ITkStripDetectorElementCollection")
72 
73  acc = ITkStripAlignCondAlgCfg(flags)
74  acc.addCondAlgo(CompFactory.SCT_DetectorElementCondAlg(name, **kwargs))
75  return acc
76 

◆ ITkStripDetectorElementStatusAlgCfg()

def python.ITkStripConditionsAlgorithmsConfig.ITkStripDetectorElementStatusAlgCfg (   flags,
  name = "ITkStripDetectorElementStatusAlg",
**  kwargs 
)
Algorithm which adds status from the strip bytestream to the strip status conditions data

Definition at line 90 of file ITkStripConditionsAlgorithmsConfig.py.

90 def ITkStripDetectorElementStatusAlgCfg(flags, name="ITkStripDetectorElementStatusAlg",**kwargs) :
91  '''
92  Algorithm which adds status from the strip bytestream to the strip status conditions data
93  '''
94  acc = ComponentAccumulator()
95  if 'ConditionsSummaryTool' not in kwargs :
96  from SCT_ConditionsTools.ITkStripConditionsToolsConfig import ITkStripDetectorElementStatusAddByteStreamErrorsToolCfg
97  # @TODO ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg should be moved to
98  # ITkStripDetectorElementStatusAddByteStreamErrorsToolCfg, but that would create
99  # circular dependencies..
101  kwargs.setdefault("ConditionsSummaryTool", acc.popToolsAndMerge(
103  SCTDetElStatusCondDataBaseKey = "ITkStripDetectorElementStatusNoByteStream",
104  SCTDetElStatusEventDataBaseKey = ""
105  )))
106  kwargs.setdefault("WriteKey", "ITkStripDetectorElementStatus")
107 
108  # not a conditions algorithm since it combines conditions data and data from the bytestream
109  acc.addEventAlgo( CompFactory.InDet.SiDetectorElementStatusAlg(name, **kwargs) )
110  return acc

◆ ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg()

def python.ITkStripConditionsAlgorithmsConfig.ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg (   flags,
  name = "ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg",
**  kwargs 
)
Condition alg to precompute the strip detector element status.
This algorithm does not consider the byte stream errors which are event data.

Definition at line 77 of file ITkStripConditionsAlgorithmsConfig.py.

77 def ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg(flags, name = "ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg", **kwargs) :
78  '''
79  Condition alg to precompute the strip detector element status.
80  This algorithm does not consider the byte stream errors which are event data.
81  '''
82  acc = ComponentAccumulator()
83  if 'ConditionsSummaryTool' not in kwargs :
84  from SCT_ConditionsTools.ITkStripConditionsToolsConfig import ITkStripConditionsSummaryToolCfg
85  kwargs.setdefault("ConditionsSummaryTool", acc.popToolsAndMerge( ITkStripConditionsSummaryToolCfg(flags)))
86  kwargs.setdefault( "WriteKey", "ITkStripDetectorElementStatusNoByteStream")
87  acc.addCondAlgo( CompFactory.InDet.SiDetectorElementStatusCondAlg(name, **kwargs) )
88  return acc
89 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
ITkStripGeoModelConfig.ITkStripGeoModelCfg
def ITkStripGeoModelCfg(flags)
Definition: ITkStripGeoModelConfig.py:3
python.ITkStripConditionsAlgorithmsConfig.ITkStripDetectorElementCondAlgCfg
def ITkStripDetectorElementCondAlgCfg(flags, name="ITkStripDetectorElementCondAlg", **kwargs)
Definition: ITkStripConditionsAlgorithmsConfig.py:68
python.ITkStripConditionsToolsConfig.ITkStripReadoutToolCfg
def ITkStripReadoutToolCfg(flags, name="ITkStripReadoutTool", **kwargs)
Definition: ITkStripConditionsToolsConfig.py:190
python.ITkStripConditionsAlgorithmsConfig.ITkStripDetectorElementStatusAlgCfg
def ITkStripDetectorElementStatusAlgCfg(flags, name="ITkStripDetectorElementStatusAlg", **kwargs)
Definition: ITkStripConditionsAlgorithmsConfig.py:90
python.ITkStripConditionsAlgorithmsConfig.ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg
def ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg(flags, name="ITkStripDetectorElementStatusCondAlgNoByteStreamErrorsCfg", **kwargs)
Definition: ITkStripConditionsAlgorithmsConfig.py:77
python.ITkStripCablingConfig.ITkStripCablingToolCfg
def ITkStripCablingToolCfg(flags, name="ITkStripCablingTool")
Definition: ITkStripCablingConfig.py:33
python.IOVDbSvcConfig.addFoldersSplitOnline
def addFoldersSplitOnline(flags, detDb, onlineFolders, offlineFolders, className=None, extensible=False, addMCString='_OFL', splitMC=False, tag=None, forceDb=None, modifiers='')
Definition: IOVDbSvcConfig.py:162
python.ITkStripConditionsAlgorithmsConfig.getITkStripDAQConfigFolder
def getITkStripDAQConfigFolder(flags)
Definition: ITkStripConditionsAlgorithmsConfig.py:27
python.ITkStripConditionsToolsConfig.ITkStripDetectorElementStatusAddByteStreamErrorsToolCfg
def ITkStripDetectorElementStatusAddByteStreamErrorsToolCfg(flags, name="ITkStripDetectorElementStatusAddByteStreamErrorsTool", **kwargs)
Definition: ITkStripConditionsToolsConfig.py:30
python.ITkStripConditionsToolsConfig.ITkStripConditionsSummaryToolCfg
def ITkStripConditionsSummaryToolCfg(flags, name="ITkStripConditionsSummaryTool", **kwargs)
Definition: ITkStripConditionsToolsConfig.py:17
python.ITkStripConditionsAlgorithmsConfig.ITkStripConfigurationCondAlgCfg
def ITkStripConfigurationCondAlgCfg(flags, name="ITkStripConfigurationCondAlg", **kwargs)
Definition: ITkStripConditionsAlgorithmsConfig.py:31
python.ITkStripConditionsAlgorithmsConfig.ITkStripAlignCondAlgCfg
def ITkStripAlignCondAlgCfg(flags, name="ITkStripAlignCondAlg", **kwargs)
Definition: ITkStripConditionsAlgorithmsConfig.py:9