Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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):
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.LArADC2MeVSCCondAlgConfig.LArADC2MeVSCCondAlgCfg
def LArADC2MeVSCCondAlgCfg(flags)
Definition: LArADC2MeVSCCondAlgConfig.py:6
python.LArElecCalibDBConfig.LArElecCalibDBMCSCCfg
def LArElecCalibDBMCSCCfg(flags, folders, detdb="LAR_OFL")
Definition: LArElecCalibDBConfig.py:241
LArCablingConfig.LArOnOffIdMappingSCCfg
def LArOnOffIdMappingSCCfg(configFlags)
Definition: LArCablingConfig.py:65
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.LArRecUtilsConfig.LArOFCSCCondAlgCfg
def LArOFCSCCondAlgCfg(flags, name='LArOFCSCCondAlg', **kwargs)
Definition: LArRecUtilsConfig.py:53
python.LArSuperCellBuilderConfig.LArSuperCellBCIDAlgCfg
def LArSuperCellBCIDAlgCfg(flags, name="LArSuperCellBCIDAlgDefault", **kwargs)
Definition: LArSuperCellBuilderConfig.py:40
python.LArBadChannelConfig.LArBadChannelCfg
def LArBadChannelCfg(configFlags, tag=None, isSC=False)
Definition: LArBadChannelConfig.py:8
python.CaloBCIDAvgAlgSCConfig.CaloBCIDAvgAlgSCCfg
def CaloBCIDAvgAlgSCCfg(flags, sequence=None)
Definition: CaloBCIDAvgAlgSCConfig.py:12
python.LArSuperCellBuilderConfig.LArSuperCellBuilderAlgCfg
def LArSuperCellBuilderAlgCfg(flags, **kwargs)
Definition: LArSuperCellBuilderConfig.py:7