ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonConfig
python
MuonPrepDataConvConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
def
MuonPrepDataConvCfg
(flags):
7
result = ComponentAccumulator()
8
dependencies = [(
'MuonGM::MuonDetectorManager'
,
'ConditionStore+MuonDetectorManager'
)]
9
prepdata_container = [
10
(
"Muon::RpcPrepDataContainer"
,
"RPC_Measurements"
),
11
(
"Muon::TgcPrepDataContainer"
,
"TGC_MeasurementsAllBCs"
),
12
(
"Muon::MdtPrepDataContainer"
,
"MDT_DriftCircles"
),
13
(
"Muon::CscStripPrepDataContainer"
,
"CSC_Measurements"
),
14
(
"Muon::CscPrepDataContainer"
,
"CSC_Clusters"
),
15
(
"Muon::MMPrepDataContainer"
,
"MM_Measurements"
),
16
(
"Muon::sTgcPrepDataContainer"
,
"STGC_Measurements"
),
17
18
]
19
from
SGComps.AddressRemappingConfig
import
AddressRemappingCfg
20
result.merge (AddressRemappingCfg())
21
for
cont_type, cont_name
in
prepdata_container:
22
if
len([item
for
item
in
flags.Input.Collections
if
item == cont_name]) == 0:
continue
23
the_alg = CompFactory.AthReadAlg (f
'AthReadAlg_{cont_name}'
,
24
Key = f
'{cont_type}/{cont_name}'
,
25
Aliases = [],
26
ExtraInputs = dependencies)
27
result.addEventAlgo(the_alg)
28
return
result
29
MuonPrepDataConvConfig.MuonPrepDataConvCfg
MuonPrepDataConvCfg(flags)
Definition
MuonPrepDataConvConfig.py:6
Generated on
for ATLAS Offline Software by
1.17.0