ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetConditions
PixelConditionsTools
python
ITkPixelConditionsSummaryConfig.py
Go to the documentation of this file.
1
"""Define a function to configure ITkPixelConditionsSummaryCfg
2
3
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
4
"""
5
from
AthenaConfiguration.ComponentFactory
import
CompFactory
6
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
7
from
AthenaConfiguration.Enums
import
Format
8
from
PixelConditionsAlgorithms.ITkPixelConditionsConfig
import
(
9
ITkPixelDCSCondStateAlgCfg, ITkPixelDCSCondStatusAlgCfg, ITkPixelDeadMapCondAlgCfg
10
)
11
12
def
ITkPixelConditionsSummaryCfg
(flags, name="ITkPixelConditionsSummary", **kwargs):
13
"""Return configured ComponentAccumulator with tool for ITk Pixel Conditions"""
14
acc = ITkPixelDCSCondStateAlgCfg(flags)
15
acc.merge(ITkPixelDCSCondStatusAlgCfg(flags))
16
acc.merge(ITkPixelDeadMapCondAlgCfg(flags))
17
18
kwargs.setdefault(
"PixelDetEleCollKey"
,
"ITkPixelDetectorElementCollection"
)
19
kwargs.setdefault(
"PixelDCSStateCondData"
,
"ITkPixelDCSStateCondData"
)
20
kwargs.setdefault(
"PixelDCSStatusCondData"
,
"ITkPixelDCSStatusCondData"
)
21
kwargs.setdefault(
"PixelDeadMapCondData"
,
"ITkPixelDeadMapCondData"
)
22
kwargs.setdefault(
"UseByteStreamFEI4"
,
not
flags.Input.isMC)
23
kwargs.setdefault(
"UseByteStreamFEI3"
,
not
flags.Input.isMC)
24
kwargs.setdefault(
"UseByteStreamRD53"
,
False
)
# Turned off until BS format is defined
25
26
acc.setPrivateTools(CompFactory.PixelConditionsSummaryTool(name=name +
"Tool"
, **kwargs))
27
return
acc
28
29
30
def
ITkByteStreamErrorDetectorElementStatusToolCfg
(flags, name = "ITkByteStreamErrorDetectorElementStatusTool",**kwargs) :
31
# @TODO bytestream errors for ITk have not been defined yet.
32
acc = ComponentAccumulator()
33
kwargs.setdefault(
"PixelDetEleCollKey"
,
"ITkPixelDetectorElementCollection"
)
# @TODO do we need the DetEleColl for the Acts chain ?
34
if
(
not
flags.Input.isMC
and
flags.Input.Format
is
Format.BS)
or
flags.Overlay.DataOverlay:
35
kwargs.setdefault(
"PixelByteStreamErrs"
,
"PixelByteStreamErrs"
)
36
kwargs.setdefault(
"UseByteStreamFEI4"
,
True
)
37
kwargs.setdefault(
"UseByteStreamFEI3"
,
True
)
38
kwargs.setdefault(
"ActiveOnly"
,
False
)
39
acc.setPrivateTools( CompFactory.PixelByteStreamErrorDetectorElementStatusTool(name, **kwargs) )
40
else
:
41
kwargs.pop(
"ActiveOnly"
,
False
)
42
acc.setPrivateTools( CompFactory.PixelDetectorElementStatusCloneTool(name, **kwargs) )
43
return
acc
ITkPixelConditionsSummaryConfig.ITkPixelConditionsSummaryCfg
ITkPixelConditionsSummaryCfg(flags, name="ITkPixelConditionsSummary", **kwargs)
Definition
ITkPixelConditionsSummaryConfig.py:12
ITkPixelConditionsSummaryConfig.ITkByteStreamErrorDetectorElementStatusToolCfg
ITkByteStreamErrorDetectorElementStatusToolCfg(flags, name="ITkByteStreamErrorDetectorElementStatusTool", **kwargs)
Definition
ITkPixelConditionsSummaryConfig.py:30
Generated on
for ATLAS Offline Software by
1.17.0