ATLAS Offline Software
Functions | Variables
python.SCT_ReadoutTestAlgConfig Namespace Reference

Functions

def SCT_ReadoutTestAlgCfg (flags, name="SCT_ReadoutTestAlg", **kwargs)
 

Variables

 flags = initConfigFlags()
 
 Files
 
 isMC
 
 ProjectName
 
 RunNumbers
 
 TimeStamps
 
 GlobalTag
 
 AtlasVersion
 
 GeometrySCT
 
 cfg = MainServicesCfg(flags)
 
 maxEvents
 

Detailed Description

Define method to configure and test SCT_ReadoutTestAlg

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

Function Documentation

◆ SCT_ReadoutTestAlgCfg()

def python.SCT_ReadoutTestAlgConfig.SCT_ReadoutTestAlgCfg (   flags,
  name = "SCT_ReadoutTestAlg",
**  kwargs 
)
Return a configured SCT_ReadoutTestAlg

Definition at line 8 of file SCT_ReadoutTestAlgConfig.py.

8 def SCT_ReadoutTestAlgCfg(flags, name="SCT_ReadoutTestAlg", **kwargs):
9  """Return a configured SCT_ReadoutTestAlg"""
10  acc = ComponentAccumulator()
11  from SCT_ConditionsTools.SCT_ConditionsToolsConfig import SCT_ReadoutToolCfg
12  kwargs.setdefault("SCT_ReadoutTool", acc.popToolsAndMerge(SCT_ReadoutToolCfg(flags)))
13 
14  # Module type and link status
15  # kwargs.setdefault("ModuleId", 143704064) # Endcap (default is barrel)
16  # kwargs.setdefault("LinkOStatus", False) # Link 0 disabled (default is 'good')
17  # kwargs.setdefault("Link1Status", False) # Link 1 disabled (default is 'good')
18 
19  # Some possible chip configs strings
20  masterChip = "10110000000001"
21  slaveChip = "10110000000101"
22  # slaveChipIn1 = "10110000010101"
23  # slaveChipOut1 = "10110000001101"
24  endChip = "10110000000111"
25  # masterAndEndChip = "10110000000011"
26 
27  # Some test module configs
28  defaultLink = [masterChip] + [slaveChip]*4 + [endChip]
29  # noEndLink = [masterChip] + [slaveChip]*5
30  # endAt2Link = [masterChip] + [slaveChip] + [endChip] + [slaveChip]*3
31  # bypass2Link = [masterChip] + [slaveChipIn1] + [slaveChip] + [slaveChipOut1] + [slaveChip] + [endChip]
32  # master3Link = [slaveChip]*3 + [masterChip] + [slaveChip] + [endChip]
33  # noMapped4Link = [masterChip] + [slaveChip]*3 + [slaveChipIn1] + [endChip]
34  # nothingTalkingTo2Link = [masterChip] + [slaveChip] + [slaveChipIn1] + [slaveChip]*2 + [endChip]
35  # allExcept1Link0Mod = [masterChip] + [slaveChip]*4 + [slaveChipIn1] + [slaveChipOut1] + [masterAndEndChip] + [slaveChip]*3 + [endChip]
36  # allLink0EndcapMod = [masterChip] + [slaveChip]*10 + [endChip]
37  # allLink1EndcapMod = [slaveChip]*5 + [endChip] + [masterChip] + [slaveChip]*5
38  # infiniteEndcapMod = [masterChip] + [slaveChip]*11
39 
40  kwargs.setdefault("ChipConfigurationList", defaultLink*2)
41  # kwargs.setdefault("ChipConfigurationList", defaultLink + endAt2Link)
42  # kwargs.setdefault("ChipConfigurationList", bypass2Link + defaultLink)
43  # kwargs.setdefault("ChipConfigurationList", master3Link + defaultLink)
44  # kwargs.setdefault("ChipConfigurationList", defaultLink + noMapped4Link)
45  # kwargs.setdefault("ChipConfigurationList", defaultLink + nothingTalkingTo2Link)
46  # kwargs.setdefault("ChipConfigurationList", noEndLink + defaultLink)
47  # kwargs.setdefault("ChipConfigurationList", allExcept1Link1Mod)
48  # kwargs.setdefault("ChipConfigurationList", allLink0EndcapMod)
49  # kwargs.setdefault("ChipConfigurationList", allLink1EndcapMod)
50  # kwargs.setdefault("ChipConfigurationList", infiniteEndcapMod)
51 
52  acc.addEventAlgo(CompFactory.SCT_ReadoutTestAlg(name, **kwargs))
53  return acc
54 

Variable Documentation

◆ AtlasVersion

python.SCT_ReadoutTestAlgConfig.AtlasVersion

Definition at line 69 of file SCT_ReadoutTestAlgConfig.py.

◆ cfg

python.SCT_ReadoutTestAlgConfig.cfg = MainServicesCfg(flags)

Definition at line 74 of file SCT_ReadoutTestAlgConfig.py.

◆ Files

python.SCT_ReadoutTestAlgConfig.Files

Definition at line 62 of file SCT_ReadoutTestAlgConfig.py.

◆ flags

python.SCT_ReadoutTestAlgConfig.flags = initConfigFlags()

Definition at line 61 of file SCT_ReadoutTestAlgConfig.py.

◆ GeometrySCT

python.SCT_ReadoutTestAlgConfig.GeometrySCT

Definition at line 70 of file SCT_ReadoutTestAlgConfig.py.

◆ GlobalTag

python.SCT_ReadoutTestAlgConfig.GlobalTag

Definition at line 67 of file SCT_ReadoutTestAlgConfig.py.

◆ isMC

python.SCT_ReadoutTestAlgConfig.isMC

Definition at line 63 of file SCT_ReadoutTestAlgConfig.py.

◆ maxEvents

python.SCT_ReadoutTestAlgConfig.maxEvents

Definition at line 81 of file SCT_ReadoutTestAlgConfig.py.

◆ ProjectName

python.SCT_ReadoutTestAlgConfig.ProjectName

Definition at line 64 of file SCT_ReadoutTestAlgConfig.py.

◆ RunNumbers

python.SCT_ReadoutTestAlgConfig.RunNumbers

Definition at line 65 of file SCT_ReadoutTestAlgConfig.py.

◆ TimeStamps

python.SCT_ReadoutTestAlgConfig.TimeStamps

Definition at line 66 of file SCT_ReadoutTestAlgConfig.py.

python.SCT_ReadoutTestAlgConfig.SCT_ReadoutTestAlgCfg
def SCT_ReadoutTestAlgCfg(flags, name="SCT_ReadoutTestAlg", **kwargs)
Definition: SCT_ReadoutTestAlgConfig.py:8
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.SCT_ConditionsToolsConfig.SCT_ReadoutToolCfg
def SCT_ReadoutToolCfg(flags, name="SCT_ReadoutTool", **kwargs)
Definition: SCT_ConditionsToolsConfig.py:399