ATLAS Offline Software
MinBiasScintillatorToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 from AthenaConfiguration.Enums import BeamType
5 from ISF_Algorithms.CollectionMergerConfig import CollectionMergerCfg
6 
7 
8 def MinBiasScintillatorSDCfg(flags, name="MinBiasScintillatorSD", **kwargs):
9  bare_collection_name = "MBTSHits"
10  mergeable_collection_suffix = "_G4"
11  merger_input_property = "MBTSHits"
12  region = "CALO"
13 
14  result, hits_collection_name = CollectionMergerCfg(flags,
15  bare_collection_name,
16  mergeable_collection_suffix,
17  merger_input_property,
18  region)
19  kwargs.setdefault("LogicalVolumeNames", ["LArMgr::MBTS1", "LArMgr::MBTS2"])
20  kwargs.setdefault("OutputCollectionNames", [hits_collection_name])
21 
22  if flags.Beam.Type is BeamType.Cosmics or flags.Sim.ReadTR:
23  kwargs.setdefault("DeltaTHit", [1])
24  kwargs.setdefault("DoTOFCorrection", False)
25 
26  MinBiasScintillatorSDTool = CompFactory.MinBiasScintillatorSDTool
27  result.setPrivateTools(MinBiasScintillatorSDTool(name, **kwargs))
28 
29  return result
MinBiasScintillatorSDTool
Definition: MinBiasScintillatorSDTool.h:20
MinBiasScintillatorToolConfig.MinBiasScintillatorSDCfg
def MinBiasScintillatorSDCfg(flags, name="MinBiasScintillatorSD", **kwargs)
Definition: MinBiasScintillatorToolConfig.py:8
CollectionMergerConfig.CollectionMergerCfg
def CollectionMergerCfg(flags, bare_collection_name, mergeable_collection_suffix, merger_input_property, region)
Definition: CollectionMergerConfig.py:66