ATLAS Offline Software
LArByteStreamConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory import CompFactory
5 
7  name="LArRawDataContByteStreamTool",
8  InitializeForWriting = False,
9  DSPRunMode = 4,
10  RodBlockVersion = 0,
11  **kwargs):
12  acc = ComponentAccumulator()
13  tool = CompFactory.LArRawDataContByteStreamTool(name, **kwargs)
14  tool.InitializeForWriting = InitializeForWriting
15  tool.DSPRunMode=DSPRunMode
16  tool.RodBlockVersion=RodBlockVersion
17  acc.addPublicTool(tool)
18 
19  extraOutputs = []
20 
21  if InitializeForWriting:
22  from CaloTools.CaloNoiseCondAlgConfig import CaloNoiseCondAlgCfg
23  acc.merge(CaloNoiseCondAlgCfg(flags, noisetype="totalNoise"))
24 
25  from LArCabling.LArCablingConfig import LArOnOffIdMappingCfg, LArFebRodMappingCfg
26  acc.merge(LArOnOffIdMappingCfg(flags))
27  acc.merge(LArFebRodMappingCfg(flags))
28 
29  extraOutputs = {
30  ('CaloNoise', 'ConditionStore+totalNoise'),
31  ('LArOnOffIdMapping', 'ConditionStore+LArOnOffIdMap'),
32  ('LArFebRodMapping', 'ConditionStore+LArFebRodMap'),
33  ('CaloDetDescrManager', 'ConditionStore+CaloDetDescrManager')
34  }
35 
36  return acc, extraOutputs
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
LArCablingConfig.LArFebRodMappingCfg
def LArFebRodMappingCfg(configFlags)
Definition: LArCablingConfig.py:80
python.LArByteStreamConfig.LArRawDataContByteStreamToolCfg
def LArRawDataContByteStreamToolCfg(flags, name="LArRawDataContByteStreamTool", InitializeForWriting=False, DSPRunMode=4, RodBlockVersion=0, **kwargs)
Definition: LArByteStreamConfig.py:6
python.CaloNoiseCondAlgConfig.CaloNoiseCondAlgCfg
def CaloNoiseCondAlgCfg(flags, noisetype="totalNoise")
Definition: CaloNoiseCondAlgConfig.py:11
LArCablingConfig.LArOnOffIdMappingCfg
def LArOnOffIdMappingCfg(configFlags)
Definition: LArCablingConfig.py:62