ATLAS Offline Software
LArSCSimpleMakerConfig.py
Go to the documentation of this file.
1 """Configuration for the LAr SC Simple Maker algorithm
2 
3 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4 """
5 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory import CompFactory
7 
8 
9 def LArSCSimpleMakerCfg(flags, **kwargs):
10  """Return ComponentAccumulator for LArSCSimpleMaker algorithm"""
11  acc = ComponentAccumulator()
12 
13  acc.addCondAlgo(CompFactory.CaloNoiseSigmaDiffCondAlg(**kwargs))
14 
15  from CaloRec.CaloBCIDLumiCondAlgConfig import CaloBCIDLumiCondAlgCfg
16  acc.merge(CaloBCIDLumiCondAlgCfg(flags))
17 
18  from CaloRec.CaloBCIDAvgAlgConfig import CaloBCIDAvgAlgCfg
19  acc.merge(CaloBCIDAvgAlgCfg(flags))
20 
21  kwargs.setdefault("SCellContainer","SimpleSCellNoBCID")
22  acc.addEventAlgo(CompFactory.LArSCSimpleMaker(**kwargs))
23  return acc
24 
25 def LArSuperCellBCIDEmAlgCfg(flags, **kwargs):
26  """Return ComponentAccumulator for LArSuperCellBCIDEmAlg algorithm"""
27  acc = ComponentAccumulator()
28 
29  from CaloRec.CaloBCIDLumiCondAlgConfig import CaloBCIDLumiCondAlgCfg
30  acc.merge(CaloBCIDLumiCondAlgCfg(flags))
31 
32  from CaloRec.CaloBCIDAvgAlgConfig import CaloBCIDAvgAlgCfg
33  acc.merge(CaloBCIDAvgAlgCfg(flags))
34 
35  kwargs.setdefault("SCellContainerIn","SimpleSCellNoBCID")
36  kwargs.setdefault("SCellContainerOut","SCellEm")
37  acc.addEventAlgo(CompFactory.LArSuperCellBCIDEmAlg(**kwargs))
38  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.CaloBCIDAvgAlgConfig.CaloBCIDAvgAlgCfg
def CaloBCIDAvgAlgCfg(flags, **kwargs)
Definition: CaloBCIDAvgAlgConfig.py:11
python.LArSCSimpleMakerConfig.LArSuperCellBCIDEmAlgCfg
def LArSuperCellBCIDEmAlgCfg(flags, **kwargs)
Definition: LArSCSimpleMakerConfig.py:25
python.CaloBCIDLumiCondAlgConfig.CaloBCIDLumiCondAlgCfg
def CaloBCIDLumiCondAlgCfg(flags)
Definition: CaloBCIDLumiCondAlgConfig.py:11
python.LArSCSimpleMakerConfig.LArSCSimpleMakerCfg
def LArSCSimpleMakerCfg(flags, **kwargs)
Definition: LArSCSimpleMakerConfig.py:9