ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
LArCalorimeter
LArROD
python
LArSuperCellBuilderConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
7
def
LArSuperCellBuilderAlgCfg
(flags, **kwargs):
8
acc = ComponentAccumulator()
9
10
from
LArCabling.LArCablingConfig
import
LArOnOffIdMappingSCCfg
11
acc.merge(LArOnOffIdMappingSCCfg(flags))
12
kwargs.setdefault(
"CablingKey"
,
'LArOnOffIdMapSC'
)
13
14
from
LArBadChannelTool.LArBadChannelConfig
import
LArBadChannelCfg
15
acc.merge(LArBadChannelCfg(flags, isSC=
True
))
16
17
from
LArRecUtils.LArADC2MeVSCCondAlgConfig
import
LArADC2MeVSCCondAlgCfg
18
acc.merge(LArADC2MeVSCCondAlgCfg(flags))
19
kwargs.setdefault(
"ADC2MeVKey"
,
'LArADC2MeVSC'
)
20
21
requiredConditions=[
"ShapeSC"
,
"PedestalSC"
]
22
from
LArConfiguration.LArElecCalibDBConfig
import
LArElecCalibDBMCSCCfg
23
acc.merge(LArElecCalibDBMCSCCfg(flags,requiredConditions))
24
kwargs.setdefault(
"ShapeKey"
,
'LArShapeSC'
)
# Provided by LArFlatConditionsAlg<LArShapeSC>
25
kwargs.setdefault(
"PedestalKey"
,
'LArPedestalSC'
)
# Provided by LArFlatConditionsAlg<LArPedestalSC>
26
27
from
LArRecUtils.LArRecUtilsConfig
import
LArOFCSCCondAlgCfg
28
acc.merge(LArOFCSCCondAlgCfg(flags))
29
kwargs.setdefault(
"OFCKey"
,
'LArOFCSC'
)
# Provided by LArOFCSCCondAlg
30
31
kwargs.setdefault(
"CaloCellKey"
,
'SCellnoBCID'
)
# Output
32
33
kwargs.setdefault(
"LArDigitKey"
,
'LArDigitSCL2'
)
# TODO Understand why this isn't LArDigitSCL1
34
35
kwargs.setdefault(
"ECutFortQ"
, 0)
36
acc.addEventAlgo(CompFactory.LArRawChannelBuilderSCAlg(name=
"LArSuperCellBuilderAlg"
, **kwargs))
37
return
acc
38
39
40
def
LArSuperCellBCIDAlgCfg
(flags, name = "LArSuperCellBCIDAlgDefault", **kwargs):
41
acc = ComponentAccumulator()
42
from
LArCabling.LArCablingConfig
import
LArOnOffIdMappingSCCfg
43
acc.merge(LArOnOffIdMappingSCCfg(flags))
44
kwargs.setdefault(
"CablingKey"
,
'LArOnOffIdMapSC'
)
# CHECK
45
from
CaloRec.CaloBCIDAvgAlgSCConfig
import
CaloBCIDAvgAlgSCCfg
46
acc.merge(CaloBCIDAvgAlgSCCfg(flags))
47
kwargs.setdefault(
"BCIDAvgKey"
,
"StoreGateSvc+CaloBCIDAverageSC"
)
# Provided by CaloBCIDAvgAlgSC
48
kwargs.setdefault(
"SCellContainerIn"
,
"SCellnoBCID"
)
# Provided by LArSuperCellBuilderAlg
49
kwargs.setdefault(
"SCellContainerOut"
,
"SCell"
)
# Output
50
acc.addEventAlgo(CompFactory.LArSuperCellBCIDAlg(name, **kwargs))
51
return
acc
52
python.LArSuperCellBuilderConfig.LArSuperCellBCIDAlgCfg
LArSuperCellBCIDAlgCfg(flags, name="LArSuperCellBCIDAlgDefault", **kwargs)
Definition
LArSuperCellBuilderConfig.py:40
python.LArSuperCellBuilderConfig.LArSuperCellBuilderAlgCfg
LArSuperCellBuilderAlgCfg(flags, **kwargs)
Definition
LArSuperCellBuilderConfig.py:7
Generated on
for ATLAS Offline Software by
1.17.0