ATLAS Offline Software
Loading...
Searching...
No Matches
LArSCSimpleMakerConfig.py
Go to the documentation of this file.
1"""Configuration for the LAr SC Simple Maker algorithm
2
3Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
4"""
5from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6from AthenaConfiguration.ComponentFactory import CompFactory
7
8
9def 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
25def 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