ATLAS Offline Software
SCTCondAlgCardinality.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
2 
4  "Set Cardinality of clonable reentrant SCT condition algorithms"
5 
6  def __init__(self):
8  # InnerDetector/InDetConditions/SCT_ConditionsAlgorithms package
9  "SCT_ConditionsParameterCondAlg",
10  "SCT_ConfigurationCondAlg",
11  "SCT_DCSConditionsHVCondAlg",
12  "SCT_DCSConditionsStatCondAlg",
13  "SCT_DCSConditionsTempCondAlg",
14  "SCT_DetectorElementCondAlg",
15  "SCT_LinkMaskingCondAlg",
16  "SCT_MajorityCondAlg",
17  "SCT_ModuleVetoCondAlg",
18  "SCT_MonitorCondAlg",
19  "SCT_ReadCalibChipGainCondAlg",
20  "SCT_ReadCalibChipNoiseCondAlg",
21  "SCT_ReadCalibDataCondAlg",
22  "SCT_RODVetoCondAlg",
23  "SCT_SensorsCondAlg",
24  "SCT_SiliconHVCondAlg",
25  "SCT_SiliconTempCondAlg",
26  "SCT_TdaqEnabledCondAlg",
27  # InnerDetector/InDetConditions/SiLorentzAngleTool package
28  "SCTSiLorentzAngleCondAlg",
29  # InnerDetector/InDetConditions/SiPropertiesTool package
30  "SCTSiPropertiesCondAlg",
31  # InnerDetector/InDetDetDescr/SCT_Cabling package
32  "SCT_CablingCondAlgFromCoraCool",
33  "SCT_CablingCondAlgFromText",
34  # InnerDetector/InDetRecAlgs/SiSpacePointFormation package
35  "InDetSiElementPropertiesTableCondAlg",
36  # InnerDetector/InDetRecTools/SiCombinatorialTrackFinderTool_xk package
37  "InDetSiDetElementBoundaryLinksSCTCondAlg",
38  # InnerDetector/InDetRecTools/SiDetElementsRoadTool_xk package
39  "InDet__SiDetElementsRoadCondAlg_xk"
40  ]
41 
42  def set(self, numThreads):
43  if numThreads >= 2:
44  from AthenaCommon.AlgSequence import AthSequencer
45  condSeq = AthSequencer("AthCondSeq")
46  for condAlgName in self.clonableCondAlgNames:
47  if hasattr(condSeq, condAlgName):
48  condAlg = getattr(condSeq, condAlgName)
49  condAlg.Cardinality = numThreads
50 
51 sctCondAlgCardinality = SCTCondAlgCardinality()
python.SCTCondAlgCardinality.SCTCondAlgCardinality
Definition: SCTCondAlgCardinality.py:3
AthSequencer
ClassName: AthSequencer.
Definition: AthSequencer.h:40
python.SCTCondAlgCardinality.SCTCondAlgCardinality.set
def set(self, numThreads)
Definition: SCTCondAlgCardinality.py:42
python.SCTCondAlgCardinality.SCTCondAlgCardinality.__init__
def __init__(self)
Definition: SCTCondAlgCardinality.py:6
python.SCTCondAlgCardinality.SCTCondAlgCardinality.clonableCondAlgNames
clonableCondAlgNames
Definition: SCTCondAlgCardinality.py:7