ATLAS Offline Software
Functions
python.ITkStripConditionsAlgorithmsConfig Namespace Reference

Functions

def ITkStripAlignCondAlgCfg (flags, name="ITkStripAlignCondAlg", setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align", **kwargs)
 
def getITkStripDAQConfigFolder (flags)
 
def ITkStripConfigurationCondAlgCfg (flags, name="ITkStripConfigurationCondAlg", **kwargs)
 
def ITkStripDetectorElementCondAlgCfg (flags, name="ITkStripDetectorElementCondAlg", setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align", **kwargs)
 

Function Documentation

◆ getITkStripDAQConfigFolder()

def python.ITkStripConditionsAlgorithmsConfig.getITkStripDAQConfigFolder (   flags)

Definition at line 26 of file ITkStripConditionsAlgorithmsConfig.py.

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

◆ ITkStripAlignCondAlgCfg()

def python.ITkStripConditionsAlgorithmsConfig.ITkStripAlignCondAlgCfg (   flags,
  name = "ITkStripAlignCondAlg",
  setGeometryAlignable = False,
  setAlignmentFolderName = "/Indet/Align",
**  kwargs 
)
Return a configured SCT_AlignCondAlg for ITk

Definition at line 9 of file ITkStripConditionsAlgorithmsConfig.py.

9 def ITkStripAlignCondAlgCfg(flags, name="ITkStripAlignCondAlg",setGeometryAlignable=False,setAlignmentFolderName="/Indet/Align", **kwargs):
10  """Return a configured SCT_AlignCondAlg for ITk"""
11  acc = ITkStripGeoModelCfg(flags,setGeometryAlignable=setGeometryAlignable,setAlignmentFolderName=setAlignmentFolderName)
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", setAlignmentFolderName, className="AlignableTransformContainer"))
16 
17  kwargs.setdefault("DetManagerName", "ITkStrip")
18  kwargs.setdefault("WriteKey", "ITkStripAlignmentStore")
19  kwargs.setdefault("UseDynamicAlignFolders", flags.GeoModel.Align.Dynamic)
20 
21  sctAlignCondAlg = CompFactory.SCT_AlignCondAlg(name, **kwargs)
22  acc.addCondAlgo(sctAlignCondAlg)
23  return acc
24 
25 

◆ ITkStripConfigurationCondAlgCfg()

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

Definition at line 30 of file ITkStripConditionsAlgorithmsConfig.py.

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

◆ ITkStripDetectorElementCondAlgCfg()

def python.ITkStripConditionsAlgorithmsConfig.ITkStripDetectorElementCondAlgCfg (   flags,
  name = "ITkStripDetectorElementCondAlg",
  setGeometryAlignable = False,
  setAlignmentFolderName = "/Indet/Align",
**  kwargs 
)

Definition at line 67 of file ITkStripConditionsAlgorithmsConfig.py.

67 def ITkStripDetectorElementCondAlgCfg(flags, name="ITkStripDetectorElementCondAlg",setGeometryAlignable=False,setAlignmentFolderName="/Indet/Align", **kwargs):
68  kwargs.setdefault("DetManagerName", "ITkStrip")
69  kwargs.setdefault("ReadKey", "ITkStripAlignmentStore")
70  kwargs.setdefault("WriteKey", "ITkStripDetectorElementCollection")
71 
72  acc = ITkStripAlignCondAlgCfg(flags,setGeometryAlignable=setGeometryAlignable,setAlignmentFolderName=setAlignmentFolderName)
73  acc.addCondAlgo(CompFactory.SCT_DetectorElementCondAlg(name, **kwargs))
74  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.ITkStripConditionsAlgorithmsConfig.ITkStripDetectorElementCondAlgCfg
def ITkStripDetectorElementCondAlgCfg(flags, name="ITkStripDetectorElementCondAlg", setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align", **kwargs)
Definition: ITkStripConditionsAlgorithmsConfig.py:67
python.ITkStripConditionsToolsConfig.ITkStripReadoutToolCfg
def ITkStripReadoutToolCfg(flags, name="ITkStripReadoutTool", **kwargs)
Definition: ITkStripConditionsToolsConfig.py:178
python.ITkStripConditionsAlgorithmsConfig.ITkStripAlignCondAlgCfg
def ITkStripAlignCondAlgCfg(flags, name="ITkStripAlignCondAlg", setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align", **kwargs)
Definition: ITkStripConditionsAlgorithmsConfig.py:9
python.ITkStripCablingConfig.ITkStripCablingToolCfg
def ITkStripCablingToolCfg(flags, name="ITkStripCablingTool")
Definition: ITkStripCablingConfig.py:33
ITkStripGeoModelConfig.ITkStripGeoModelCfg
def ITkStripGeoModelCfg(flags, setGeometryAlignable=False, setAlignmentFolderName="/Indet/Align")
Definition: ITkStripGeoModelConfig.py:3
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:153
python.ITkStripConditionsAlgorithmsConfig.getITkStripDAQConfigFolder
def getITkStripDAQConfigFolder(flags)
Definition: ITkStripConditionsAlgorithmsConfig.py:26
python.ITkStripConditionsAlgorithmsConfig.ITkStripConfigurationCondAlgCfg
def ITkStripConfigurationCondAlgCfg(flags, name="ITkStripConfigurationCondAlg", **kwargs)
Definition: ITkStripConditionsAlgorithmsConfig.py:30