ATLAS Offline Software
Loading...
Searching...
No Matches
MuonPrepDataConvConfig Namespace Reference

Functions

 MuonPrepDataConvCfg (flags)

Function Documentation

◆ MuonPrepDataConvCfg()

MuonPrepDataConvConfig.MuonPrepDataConvCfg ( flags)

Definition at line 6 of file MuonPrepDataConvConfig.py.

6def 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