ATLAS Offline Software
LArHitAlgsConfig.py
Go to the documentation of this file.
1 """Define functions for LAr Digitization with ComponentAccumulator
2 
3 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
4 """
5 # utilities
6 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory import CompFactory
8 from SGComps.AddressRemappingConfig import InputRenameCfg
9 
10 
11 def LArHitFilterCfg(flags, **kwargs):
12  """ Return ComponentAccumulator with LArHitFilter """
13  acc = ComponentAccumulator()
14  from DetDescrCnvSvc.DetDescrCnvSvcConfig import DetDescrCnvSvcCfg
15  acc.merge(DetDescrCnvSvcCfg(flags)) # we do not need the whole geometry, identifiers are enough
16  acc.merge(InputRenameCfg("LArHitContainer","LArHitEMB","LArHitEMBOLD"))
17  acc.merge(InputRenameCfg("LArHitContainer","LArHitEMEC","LArHitEMECOLD"))
18  acc.merge(InputRenameCfg("LArHitContainer","LArHitHEC","LArHitHECOLD"))
19  acc.merge(InputRenameCfg("LArHitContainer","LArHitFCAL","LArHitFCALOLD"))
20  acc.addEventAlgo(CompFactory.LArHitFilter("LArHitFilter"))
21  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.DetDescrCnvSvcConfig.DetDescrCnvSvcCfg
def DetDescrCnvSvcCfg(flags, **kwargs)
Definition: DetDescrCnvSvcConfig.py:6
LArHitAlgsConfig.LArHitFilterCfg
def LArHitFilterCfg(flags, **kwargs)
Definition: LArHitAlgsConfig.py:11
AddressRemappingConfig.InputRenameCfg
def InputRenameCfg(type, from_name, to_name)
Definition: AddressRemappingConfig.py:28