ATLAS Offline Software
Loading...
Searching...
No Matches
MinBiasScintillatorToolConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.Enums import BeamType
5from ISF_Algorithms.CollectionMergerConfig import CollectionMergerCfg
6
7
8def 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
MinBiasScintillatorSDCfg(flags, name="MinBiasScintillatorSD", **kwargs)