ATLAS Offline Software
BCM_G4_SDToolConfig.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 from ISF_Algorithms.CollectionMergerConfig import CollectionMergerCfg
6 
7 
8 def BCMSensorSDCfg(ConfigFlags, name="BCMSensorSD", **kwargs):
9  bare_collection_name = "BCMHits"
10  mergeable_collection_suffix = "_G4"
11  merger_input_property = "BCMHits"
12  region = "ID"
13 
14  acc, hits_collection_name = CollectionMergerCfg(ConfigFlags,
15  bare_collection_name,
16  mergeable_collection_suffix,
17  merger_input_property,
18  region)
19  kwargs.setdefault("LogicalVolumeNames", ["Pixel::bcmDiamondLog"])
20  kwargs.setdefault("OutputCollectionNames", [hits_collection_name])
21 
22  result = ComponentAccumulator()
23  result.merge(acc)
24  result.setPrivateTools(CompFactory.BCMSensorSDTool(name, **kwargs))
25  return result
BCM_G4_SDToolConfig.BCMSensorSDCfg
def BCMSensorSDCfg(ConfigFlags, name="BCMSensorSD", **kwargs)
Definition: BCM_G4_SDToolConfig.py:8
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
CollectionMergerConfig.CollectionMergerCfg
def CollectionMergerCfg(flags, bare_collection_name, mergeable_collection_suffix, merger_input_property, region)
Definition: CollectionMergerConfig.py:66