|
ATLAS Offline Software
|
◆ MuonReconstructionCfg()
def python.MuonReconstructionConfig.MuonReconstructionCfg |
( |
|
flags | ) |
|
Definition at line 149 of file MuonReconstructionConfig.py.
151 from MuonConfig.MuonPrepDataConvConfig
import MuonPrepDataConvCfg
152 from MuonConfig.MuonRecToolsConfig
import MuonTrackScoringToolCfg
153 from MuonConfig.MuonGeometryConfig
import MuonIdHelperSvcCfg
154 from MuonConfig.MuonRecToolsConfig
import MuonEDMHelperSvcCfg
155 from TrkConfig.TrkTrackSummaryToolConfig
import MuonTrackSummaryToolCfg
156 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
167 if flags.Muon.runCommissioningChain:
169 "MuonStandaloneTrackParticleCnvAlg_EMEO",
170 TrackContainerName=
"EMEO_MuonSpectrometerTracks",
171 xAODTrackParticlesFromTracksContainerName=
"EMEO_MuonSpectrometerTrackParticles"))
177 if "MuonEntryLayerFilter" not in flags.Input.Collections:
178 result.addEventAlgo(CompFactory.TrackRecordFilter())
179 if "MuonExitLayerFilter" not in flags.Input.Collections:
180 result.addEventAlgo(CompFactory.TrackRecordFilter(
"TrackRecordFilterMuonExitLayer",
181 inputName=
"MuonExitLayer",
182 outputName=
"MuonExitLayerFilter"))
185 track_cols = [
"MuonSpectrometerTracks"]
186 track_colstp = [
"MuonSpectrometerTrackParticles"]
187 if flags.Muon.runCommissioningChain:
188 track_cols += [
"EMEO_MuonSpectrometerTracks"]
189 track_colstp += [
"EMEO_MuonSpectrometerTrackParticles"]
191 from MuonConfig.MuonTruthAlgsConfig
import MuonDetailedTrackTruthMakerCfg
193 TrackCollectionNames=track_cols))
195 for i
in range(len(track_cols)):
196 from TrkConfig.TrkTruthAlgsConfig
import TrackTruthSelectorCfg, TrackParticleTruthAlgCfg
200 TrackParticleName=track_colstp[i]))
204 if flags.Muon.makePRDs:
205 from MuonConfig.MuonRdoDecodeConfig
import MuonPRD_MultiTruthMakerCfg
208 from MuonConfig.MuonTruthAlgsConfig
import MuonTruthDecorationAlgCfg
211 if flags.Muon.doMSVertex:
212 msvertexrecotool = CompFactory.Muon.MSVertexRecoTool(
213 MyExtrapolator=result.popToolsAndMerge(
215 TGCKey=
'TGC_MeasurementsAllBCs' if not flags.Muon.useTGCPriorNextBC
else 'TGC_Measurements')
216 the_alg = CompFactory.MSVertexRecoAlg(
217 name=
"MSVertexRecoAlg", MSVertexRecoTool=msvertexrecotool)
219 result.addEventAlgo(the_alg)
224 result.addPublicTool(result.popToolsAndMerge(
227 result.addPublicTool(result.popToolsAndMerge(
231 if flags.Output.doWriteESD
or flags.Output.doWriteAOD:
◆ MuonReconstructionConfigTest()
def python.MuonReconstructionConfig.MuonReconstructionConfigTest |
( |
|
flags = None | ) |
|
Definition at line 236 of file MuonReconstructionConfig.py.
239 from MuonConfig.MuonConfigUtils
import SetupMuonStandaloneConfigFlags
244 raise RuntimeError(
"MuonReconstructionConfigTest requires flags.fillFromArgs() to be run before flags.lock()")
246 from MuonConfig.MuonConfigUtils
import SetupMuonStandaloneCA
253 from SGComps.AddressRemappingConfig
import InputRenameCfg
255 "MuonSpectrometerTracks",
"MuonSpectrometerTracks_old"))
257 cfg.printConfig(withDetails=
True)
261 oldRemaps = cfg.getService(
"AddressRemappingSvc").TypeKeyRenameMaps
262 cfg.getService(
"AddressRemappingSvc").TypeKeyRenameMaps = [
263 remap
for remap
in oldRemaps
if "Trk::SegmentCollection" not in remap]
265 f =
open(
"MuonReconstruction.pkl",
"wb")
273 if not sc.isSuccess():
275 sys.exit(
"Execution failed")
◆ StandaloneMuonOutputCfg()
def python.MuonReconstructionConfig.StandaloneMuonOutputCfg |
( |
|
flags | ) |
|
Definition at line 12 of file MuonReconstructionConfig.py.
13 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
17 from TrkEventCnvTools.TrkEventCnvToolsConfig
import (
18 TrkEventCnvSuperToolCfg)
22 if flags.Detector.EnableMM
or flags.Detector.EnablesTGC:
23 aod_items += [
"xAOD::TrackParticleContainer#EMEO_MuonSpectrometerTrackParticles"]
24 aod_items += [
"xAOD::TrackParticleAuxContainer#EMEO_MuonSpectrometerTrackParticlesAux."]
25 aod_items += [
"xAOD::MuonSegmentContainer#xAODNSWSegments"]
26 aod_items += [
"xAOD::MuonSegmentAuxContainer#xAODNSWSegmentsAux."]
28 aod_items += [
"xAOD::MuonSegmentContainer#NCB_MuonSegments"]
29 aod_items += [
"xAOD::MuonSegmentAuxContainer#NCB_MuonSegmentsAux."]
32 aod_items += [
"xAOD::TrackParticleContainer#MuonSpectrometerTrackParticles"]
33 aod_items += [
"xAOD::TrackParticleAuxContainer#MuonSpectrometerTrackParticlesAux."]
34 aod_items += [
"xAOD::TrackParticleContainer#MuonSpectrometerOnlyTrackParticles"]
35 aod_items += [
"xAOD::TrackParticleAuxContainer#MuonSpectrometerOnlyTrackParticlesAux."]
37 aod_items += [
"xAOD::TrackParticleContainer#MSonlyTracklets"]
38 aod_items += [
"xAOD::TrackParticleAuxContainer#MSonlyTrackletsAux."]
39 aod_items += [
"xAOD::VertexContainer#MSDisplacedVertex"]
40 aod_items += [
"xAOD::VertexAuxContainer#MSDisplacedVertexAux."]
44 aod_items += [
"xAOD::TruthParticleContainer#MuonTruthParticles"]
45 aod_items += [
"xAOD::TruthParticleAuxContainer#MuonTruthParticlesAux."]
48 aod_items += [
"xAOD::MuonSegmentContainer#MuonTruthSegments"]
49 aod_items += [
"xAOD::MuonSegmentAuxContainer#MuonTruthSegmentsAux."]
51 if flags.Muon.prdToxAOD:
52 aod_items += [
"xAOD::TrackMeasurementValidationContainer#MDT_DriftCircles"]
53 aod_items += [
"xAOD::TrackMeasurementValidationAuxContainer#MDT_DriftCirclesAux."]
54 aod_items += [
"xAOD::TrackMeasurementValidationContainer#RPC_Measurements"]
55 aod_items += [
"xAOD::TrackMeasurementValidationAuxContainer#RPC_MeasurementsAux."]
56 aod_items += [
"xAOD::TrackMeasurementValidationContainer#TGC_MeasurementsAllBCs"]
57 aod_items += [
"xAOD::TrackMeasurementValidationAuxContainer#TGC_MeasurementsAllBCsAux."]
58 if flags.Detector.EnableCSC:
59 aod_items += [
"xAOD::TrackMeasurementValidationContainer#CSC_Clusters"]
60 aod_items += [
"xAOD::TrackMeasurementValidationAuxContainer#CSC_ClustersAux."]
62 if flags.Muon.rpcRawToxAOD:
63 aod_items += [
"xAOD::TrackMeasurementValidationContainer#RPC_RDO_Measurements"]
64 aod_items += [
"xAOD::TrackMeasurementValidationAuxContainer#RPC_RDO_MeasurementsAux."]
68 esd_items += aod_items
71 if flags.Detector.EnableMM:
72 esd_items += [
"Muon::MMPrepDataContainer#MM_Measurements"]
73 esd_items += [
"xAOD::NSWMMTPRDOContainer#*",
"xAOD::NSWMMTPRDOAuxContainer#*"]
74 if flags.Detector.EnablesTGC:
75 esd_items += [
"Muon::sTgcPrepDataContainer#STGC_Measurements"]
76 esd_items += [
"Muon::NSW_PadTriggerDataContainer#NSW_PadTrigger_RDO"]
77 esd_items += [
"xAOD::NSWTPRDOContainer#*",
"xAOD::NSWTPRDOAuxContainer#*"]
80 if flags.Detector.EnableCSC:
81 esd_items += [
"Muon::CscPrepDataContainer#CSC_Clusters"]
82 esd_items += [
"Muon::CscStripPrepDataContainer#CSC_Measurements"]
83 esd_items += [
"Muon::RpcPrepDataContainer#RPC_Measurements"]
84 esd_items += [
"Muon::TgcPrepDataContainer#TGC_MeasurementsAllBCs"]
85 esd_items += [
"Muon::MdtPrepDataContainer#MDT_DriftCircles"]
87 if flags.Muon.writexAODPRD:
88 esd_items += [
"xAOD::MdtDriftCircleContainer#*",
"xAOD::MdtDriftCircleAuxContainer#*" ]
89 esd_items += [
"xAOD::sTgcStripContainer#*",
"xAOD::sTgcStripAuxContainer#*" ]
90 esd_items += [
"xAOD::MMClusterContainer#*",
"xAOD::MMClusterAuxContainer#*" ]
91 esd_items += [
"xAOD::TgcStripContainer#*",
"xAOD::TgcStripAuxContainer#*" ]
92 esd_items += [
"xAOD::RpcStripContainer#*",
"xAOD::RpcStripAuxContainer#*" ]
95 esd_items += [
"Muon::TgcCoinDataContainer#TrigT1CoinDataCollection"]
96 esd_items += [
"Muon::TgcCoinDataContainer#TrigT1CoinDataCollectionPriorBC"]
97 esd_items += [
"Muon::TgcCoinDataContainer#TrigT1CoinDataCollectionNextBC"]
98 esd_items += [
"Muon::TgcCoinDataContainer#TrigT1CoinDataCollectionNextNextBC"]
99 esd_items += [
"Muon::RpcCoinDataContainer#RPC_triggerHits"]
100 esd_items += [
"RpcSectorLogicContainer#RPC_SECTORLOGIC"]
103 if flags.Output.doWriteRDO
or flags.Muon.doWriteRpcRDO:
104 esd_items += [
"RpcPadContainer#RPCPAD"]
107 esd_items += [
"Trk::SegmentCollection#NCB_TrackMuonSegments"]
110 esd_items += [
"TrackCollection#MuonSpectrometerTracks"]
111 if flags.Muon.runCommissioningChain:
112 esd_items += [
"TrackCollection#EMEO_MuonSpectrometerTracks"]
113 if flags.Detector.EnableMM
or flags.Detector.EnablesTGC:
114 esd_items += [
"Trk::SegmentCollection#TrackMuonNSWSegments"]
118 esd_items += [
"TrackRecordCollection#MuonEntryLayerFilter"]
119 esd_items += [
"TrackRecordCollection#MuonExitLayerFilter"]
121 esd_items += [
"PRD_MultiTruthCollection#MDT_TruthMap",
122 "PRD_MultiTruthCollection#RPC_TruthMap",
"PRD_MultiTruthCollection#TGC_TruthMap"]
123 if flags.Detector.EnableCSC:
124 esd_items += [
"PRD_MultiTruthCollection#CSC_TruthMap"]
125 if flags.Detector.EnablesTGC:
126 esd_items += [
"PRD_MultiTruthCollection#STGC_TruthMap"]
127 if flags.Detector.EnableMM:
128 esd_items += [
"PRD_MultiTruthCollection#MM_TruthMap"]
131 esd_items += [
"DetailedTrackTruthCollection#MuonSpectrometerTracksTruth"]
132 esd_items += [
"TrackTruthCollection#MuonSpectrometerTracksTruth"]
134 if flags.Muon.writeSDOs:
135 if flags.Detector.EnableCSC: esd_items+=[
"CscSimDataCollection#CSC_SDO"]
136 esd_items+=[
"MuonSimDataCollection#MDT_SDO"]
137 esd_items+=[
"MuonSimDataCollection#RPC_SDO"]
138 esd_items+=[
"MuonSimDataCollection#TGC_SDO"]
139 if flags.Detector.EnablesTGC: esd_items+=[
"MuonSimDataCollection#sTGC_SDO"]
140 if flags.Detector.EnableMM: esd_items+=[
"MuonSimDataCollection#MM_SDO"]
142 if flags.Output.doWriteESD:
144 if flags.Output.doWriteAOD:
def TrackTruthSelectorCfg(flags, name="Selector", tracks="", **kwargs)
def TrackParticleTruthAlgCfg(flags, name="TruthAlg", tracks="", **kwargs)
def StandaloneMuonOutputCfg(flags)
def MuonSegmentFindingCfg(flags, setup_bytestream=True, cardinality=1)
def OutputStreamCfg(flags, streamName, ItemList=[], MetadataItemList=[], disableEventTag=False, trigNavThinningSvc=None, takeItemsFromInput=False, extendProvenanceRecord=True, AcceptAlgs=[], HelperTools=[])
def MuonStandaloneTrackParticleCnvAlgCfg(flags, name="MuonStandaloneTrackParticleCnvAlg", **kwargs)
def MuonReconstructionCfg(flags)
def SetupMuonStandaloneCA(args, flags)
def MuonDetailedTrackTruthMakerCfg(flags, name="MuonDetailedTrackTruthMaker", **kwargs)
def MuonIdHelperSvcCfg(flags)
def MuonTrackBuildingCfg(flags, name="MuPatTrackBuilder", **kwargs)
def MuonTruthDecorationAlgCfg(flags, name="MuonTruthDecorationAlg", **kwargs)
def MuonPRD_MultiTruthMakerCfg(flags, name="MuonPRD_MultiTruthMaker", **kwargs)
def MuonReconstructionConfigTest(flags=None)
def SetupMuonStandaloneConfigFlags(default_input=['/cvmfs/atlas-nightlies.cern.ch/repo/data/data-art/RecExRecoTest/ESD.16747874._000011_100events.pool.root'])
def MuonPrepDataConvCfg(flags)
def InputRenameCfg(type, from_name, to_name)