ATLAS Offline Software
Functions
python.SCT_SiPropertiesConfig Namespace Reference

Functions

def SCT_SiPropertiesCondAlgCfg (flags, name="SCTSiPropertiesCondAlg", **kwargs)
 
def SCT_SiPropertiesToolCfg (flags, name="SCT_SiPropertiesTool", **kwargs)
 

Detailed Description

Define methods to configure SCT SiProperties

Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration

Function Documentation

◆ SCT_SiPropertiesCondAlgCfg()

def python.SCT_SiPropertiesConfig.SCT_SiPropertiesCondAlgCfg (   flags,
  name = "SCTSiPropertiesCondAlg",
**  kwargs 
)
Return configured ComponentAccumulator and tool for SCT_SiProperties

SiConditionsTool and/or DCSConditionsTool may be provided in kwargs

Definition at line 11 of file SCT_SiPropertiesConfig.py.

11 def SCT_SiPropertiesCondAlgCfg(flags, name="SCTSiPropertiesCondAlg", **kwargs):
12  """Return configured ComponentAccumulator and tool for SCT_SiProperties
13 
14  SiConditionsTool and/or DCSConditionsTool may be provided in kwargs
15  """
16  acc = ComponentAccumulator()
17 
18  # Condition algorithm
19  # SCTSiPropertiesCondAlg needs outputs of SCT_SiliconConditions algorithms
20  if not kwargs.get("SiConditionsTool"):
21  kwargs["SiConditionsTool"] = acc.popToolsAndMerge(SCT_SiliconConditionsCfg(flags))
22  # For SCT_ID and SCT_DetectorElementCollection
23  # used in SCTSiPropertiesCondAlg and SiPropertiesTool
24  acc.merge(SCT_ReadoutGeometryCfg(flags))
25  acc.addCondAlgo(CompFactory.SCTSiPropertiesCondAlg(name, **kwargs))
26  return acc
27 
28 

◆ SCT_SiPropertiesToolCfg()

def python.SCT_SiPropertiesConfig.SCT_SiPropertiesToolCfg (   flags,
  name = "SCT_SiPropertiesTool",
**  kwargs 
)
Return configured ComponentAccumulator and tool for SCT_SiProperties

SiConditionsTool and/or DCSConditionsTool may be provided in kwargs

Definition at line 29 of file SCT_SiPropertiesConfig.py.

29 def SCT_SiPropertiesToolCfg(flags, name="SCT_SiPropertiesTool", **kwargs):
30  """Return configured ComponentAccumulator and tool for SCT_SiProperties
31 
32  SiConditionsTool and/or DCSConditionsTool may be provided in kwargs
33  """
34  SiConditionsTool = kwargs.pop("SiConditionsTool", None)
35  acc = SCT_SiPropertiesCondAlgCfg(flags, SiConditionsTool=SiConditionsTool)
36  kwargs.setdefault("DetectorName", "SCT")
37  kwargs.setdefault("ReadKey", "SCTSiliconPropertiesVector")
38  acc.setPrivateTools(CompFactory.SiPropertiesTool(name, **kwargs))
39  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.SCT_SiPropertiesConfig.SCT_SiPropertiesToolCfg
def SCT_SiPropertiesToolCfg(flags, name="SCT_SiPropertiesTool", **kwargs)
Definition: SCT_SiPropertiesConfig.py:29
python.SCT_SiPropertiesConfig.SCT_SiPropertiesCondAlgCfg
def SCT_SiPropertiesCondAlgCfg(flags, name="SCTSiPropertiesCondAlg", **kwargs)
Definition: SCT_SiPropertiesConfig.py:11
SCT_GeoModelConfig.SCT_ReadoutGeometryCfg
def SCT_ReadoutGeometryCfg(flags)
Definition: SCT_GeoModelConfig.py:42
python.SCT_ConditionsToolsConfig.SCT_SiliconConditionsCfg
def SCT_SiliconConditionsCfg(flags, name="SCT_Silicon", **kwargs)
Definition: SCT_ConditionsToolsConfig.py:451