10 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
11 from AthenaConfiguration.ComponentFactory
import CompFactory
14 """Main method configuring common muon augmentations"""
16 Container =
"Muons"+suff
23 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import AsgSelectionToolWrapperCfg
24 DFCommonMuonToolWrapperTools = []
28 from MuonSelectorTools.MuonSelectorToolsConfig
import MuonSelectionToolCfg
31 name =
"DFCommonMuonsSelector",
34 TurnOffMomCorr =
True))
35 acc.addPublicTool(DFCommonMuonsSelector)
38 name =
"DFCommonMuonToolWrapperIDCuts"+suff,
39 AsgSelectionTool = DFCommonMuonsSelector,
41 StoreGateEntryName =
"DFCommonMuonPassIDCuts",
42 ContainerName = Container))
43 DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapperIDCuts)
47 name =
"DFCommonMuonToolWrapperPreselection"+suff,
48 AsgSelectionTool = DFCommonMuonsSelector,
49 CutType =
"Preselection",
50 StoreGateEntryName =
"DFCommonMuonPassPreselection",
51 ContainerName = Container))
52 DFCommonMuonToolWrapperTools.append(DFCommonMuonToolWrapperPreselection)
57 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
58 acc.addEventAlgo(CommonAugmentation(
"DFCommonMuonsKernel"+suff,
59 AugmentationTools = DFCommonMuonToolWrapperTools))
61 from IsolationAlgs.DerivationTrackIsoConfig
import DerivationTrackIsoCfg
72 for WP
in [
'Nonprompt_All_MaxWeight' ]:
75 if "LRT" in Container
and not hasattr(acc,
'LRTMuonCaloIsolationBuilder'):
76 from IsolationAlgs.IsolationSteeringDerivConfig
import LRTMuonIsolationSteeringDerivCfg
79 from IsolationAlgs.IsolationBuilderConfig
import muIsolationCfg
81 name=
"muonIsolationLRT",
84 MuonCollectionContainerName = Container
90 extraVariablesMuons = [
91 "pt",
"eta",
"phi",
"truthType",
"truthOrigin",
"author",
"muonType",
"charge",
"allAuthors",
"CaloMuonIDTag",
"CaloMuonScore",
93 "inDetTrackParticleLink",
"extrapolatedMuonSpectrometerTrackParticleLink",
"muonSpectrometerTrackParticleLink",
"combinedTrackParticleLink",
"TruthLink",
"truthParticleLink",
"msOnlyExtrapolatedMuonSpectrometerTrackParticleLink",
"clusterLink",
"muonSegmentLinks",
94 "InnerDetectorPt",
"MuonSpectrometerPt",
"DFCommonGoodMuon",
"momentumBalanceSignificance",
"scatteringCurvatureSignificance",
"scatteringNeighbourSignificance",
95 "neflowisol20",
"topoetcone20",
"topoetcone20_CloseByCorr",
"neflowisol20_CloseByCorr",
96 "ptcone20_Nonprompt_All_MaxWeightTTVA_pt1000",
"ptcone20_Nonprompt_All_MaxWeightTTVA_pt500",
97 "ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt1000",
"ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt500",
98 "ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt500_CloseByCorr",
"ptvarcone30_Nonprompt_All_MaxWeightTTVA_pt1000_CloseByCorr",
100 "ptcone20",
"ptcone30",
"ptcone40",
"ptvarcone20",
"ptvarcone30",
"ptvarcone40",
"topoetcone30",
"topoetcone40",
102 "numberOfPrecisionLayers",
"combinedTrackOutBoundsPrecisionHits",
"numberOfPrecisionLayers",
"numberOfPrecisionHoleLayers",
"numberOfGoodPrecisionLayers",
103 "innerSmallHits",
"innerLargeHits",
"middleSmallHits",
"middleLargeHits",
"outerSmallHits",
"outerLargeHits",
104 "extendedSmallHits",
"extendedLargeHits",
105 "extendedSmallHoles",
"isSmallGoodSectors",
107 "extendedClosePrecisionHits",
"extendedLargeHoles",
"extendedOutBoundsPrecisionHits",
"innerClosePrecisionHits",
"innerLargeHoles",
"innerOutBoundsPrecisionHits",
"innerSmallHoles",
"isEndcapGoodLayers",
"middleClosePrecisionHits",
"middleLargeHoles",
"middleOutBoundsPrecisionHits",
"middleSmallHoles",
"outerClosePrecisionHits",
"outerLargeHoles",
"outerOutBoundsPrecisionHits",
"outerSmallHoles",
"segmentDeltaEta",
"spectrometerFieldIntegral",
109 "EnergyLoss",
"energyLossType",
111 "DFCommonJetDr",
"DFCommonMuonPassIDCuts",
"DFCommonMuonPassPreselection",
"DFCommonGoodMuon",
113 "CaloLRLikelihood",
"quality",
116 from AthenaConfiguration.Enums
import LHCPeriod
117 if flags.GeoModel.Run >= LHCPeriod.Run3: extraVariablesMuons += [
118 "etaLayer1STGCHits",
"etaLayer2STGCHits",
"phiLayer1STGCHits",
"phiLayer2STGCHits",
"MMHits"
120 else: extraVariablesMuons += [
121 "cscUnspoiledEtaHits",
"cscEtaHits",
123 return extraVariablesMuons
127 return [
"phi",
"theta",
"qOverP",
"d0",
"z0",
"vz",
128 "definingParametersCovMatrixDiag",
"definingParametersCovMatrixOffDiag",
129 "chiSquared",
"numberDoF",
133 "numberOfPixelHits",
"numberOfPixelHoles",
"numberOfPixelDeadSensors",
"numberOfInnermostPixelLayerHits",
134 "numberOfSCTHits",
"numberOfSCTHoles",
"numberOfSCTDeadSensors",
135 "numberOfTRTHits",
"numberOfTRTOutliers",
137 "numberOfPrecisionLayers",
"numberOfPrecisionHoleLayers",
138 "numberOfPhiLayers",
"numberOfPhiHoleLayers",
140 "alignEffectChId",
"alignEffectDeltaTrans",
"alignEffectSigmaDeltaTrans",
141 "alignEffectDeltaAngle",
"alignEffectSigmaDeltaAngle",
147 "phi",
"theta",
"qOverP",
"d0",
"z0",
"vz",
148 "definingParametersCovMatrixDiag",
"definingParametersCovMatrixOffDiag",
149 "chiSquared",
"numberDoF",
151 "vertexLink",
"truthParticleLink",
153 "numberOfPixelHits",
"numberOfPixelHoles",
"numberOfPixelDeadSensors",
154 "numberOfSCTHits",
"numberOfSCTHoles",
"numberOfSCTDeadSensors",
155 "numberOfTRTHits",
"numberOfTRTOutliers",
157 "numberOfPhiLayers",
"numberOfPhiHoleLayers",
158 "numberOfPrecisionHoleLayers",
"numberOfPrecisionLayers",
160 "alignEffectChId",
"alignEffectDeltaTrans",
"alignEffectSigmaDeltaTrans",
"alignEffectDeltaAngle",
"alignEffectSigmaDeltaAngle"
165 "theta",
"qOverP",
"phi",
"d0",
"z0",
"vz",
166 "definingParametersCovMatrixDiag",
"definingParametersCovMatrixOffDiag",
167 "chiSquared",
"numberDoF",
168 "vertexLink",
"truthParticleLink"
173 "theta",
"phi",
"qOverP",
"d0",
"z0",
"vz",
174 "chiSquared",
"numberDoF",
175 "definingParametersCovMatrixDiag",
"definingParametersCovMatrixOffDiag",
177 "numberOfPixelHits",
"numberOfPixelDeadSensors",
"numberOfPixelHoles",
178 "numberOfSCTHits",
"numberOfSCTDeadSensors",
"numberOfSCTHoles",
179 "numberOfTRTHits",
"numberOfTRTOutliers",
181 "truthType",
"truthOrigin",
185 return [
"phi",
"theta",
"qOverP",
"numberOfPixelHits",
"numberOfPixelHoles",
"numberOfPixelDeadSensors",
"numberOfSCTHits",
"numberOfSCTHoles",
"numberOfSCTDeadSensors",
"numberOfTRTHits",
"numberOfTRTOutliers",
"numberOfPrecisionLayers",
"d0",
"z0",
"vz",
"definingParametersCovMatrixDiag",
"definingParametersCovMatrixOffDiag",
"vertexLink",
"truthParticleLink",
"chiSquared",
"numberDoF",
"numberOfPhiLayers",
"numberOfPhiHoleLayers",
"numberOfPrecisionHoleLayers",
"truthType",
"truthOrigin"]
188 return [
"theta",
"phi",
"qOverP",
"numberOfPrecisionLayers",
"numberOfPrecisionHoleLayers",
"numberOfPixelHits",
"numberOfPixelDeadSensors",
"numberOfSCTHits",
"numberOfSCTDeadSensors",
"d0",
"z0",
"vz",
"definingParametersCovMatrixDiag",
"definingParametersCovMatrixOffDiag",
"numberOfPixelHoles",
"numberOfSCTHoles",
"numberOfTRTHits",
"numberOfTRTOutliers",
"truthType",
"truthOrigin"]
192 return [
"trackParticleLinks",
"pt",
"eta",
"phi",
"m",
"f1",
"topoetcone40",
"truthParticleLink",
"caloClusterLinks"]
196 return [
"pt",
"eta",
"phi",
"m",
"caloClusterLinks",
"author",
"f1",
"topoetcone40",
"Tight",
"truthParticleLink",
"vertexLink"]
199 return [
"chamberIndex"]
203 "InDetTrackParticles",
205 "InDetForwardTrackParticles",
207 "CombinedMuonTrackParticles",
209 "ExtrapolatedMuonTrackParticles",
211 "MuonSpectrometerTrackParticles",
215 "InDetForwardTrackParticles",
227 "InDetLargeD0TrackParticles",
229 "InDetForwardTrackParticles",
231 "CombinedMuonsLRTTrackParticles",
235 "MuonSpectrometerTrackParticles",
237 "ExtraPolatedMuonsLRTTrackParticles",
245 "LRTegammaClustersAux.calEta.calPhi.calE.calM",
246 "LRTegammaTopoSeededClusters",
247 "LRTegammaTopoSeededClustersAux.calEta.calPhi",