23 thinPassFlagsList = []
24 finalCandidateList = []
26 from DerivationFrameworkBPhys.commonBPHYMethodsCfg
import (BPHY_V0ToolCfg, BPHY_InDetDetailedTrackSelectorToolCfg, BPHY_VertexPointEstimatorCfg, BPHY_TrkVKalVrtFitterCfg)
27 from JpsiUpsilonTools.JpsiUpsilonToolsConfig
import PrimaryVertexRefittingToolCfg
29 isSimulation = flags.Input.isMC
30 V0Tools = acc.popToolsAndMerge(
BPHY_V0ToolCfg(flags, BPHYDerivationName))
32 acc.addPublicTool(vkalvrt)
33 acc.addPublicTool(V0Tools)
35 acc.addPublicTool(trackselect)
37 acc.addPublicTool(vpest)
39 acc.addPublicTool(PVrefit)
42 BPHY24_AugOriginalCounts = CompFactory.DerivationFramework.AugOriginalCounts(
43 name =
"BPHY24_AugOriginalCounts",
44 VertexContainer =
"PrimaryVertices",
45 TrackContainer =
"InDetTrackParticles" )
47 bSkim =
"(count(BPHY24JpsimmKshortCascadeSV1.Bd_mass) + count(BPHY24JpsieeKshortCascadeSV1.Bd_mass)) > 0"
49 BPHY24_Skim_Bcandidates = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"BPHY24_Skim_Bcandidates",
51 skimList += [ BPHY24_Skim_Bcandidates ]
52 augsList += [ BPHY24_AugOriginalCounts ]
55 from DerivationFrameworkInDet.InDetToolsConfig
import InDetLRTMergeCfg
58 mainIDInput =
"InDetWithLRTTrackParticles"
59 originalTrackCond = [
"InDetTrackParticles",
"InDetLargeD0TrackParticles",
"GSFTrackParticles"]
60 BPHY24_Finder_DiMuon = CompFactory.Analysis.JpsiFinder( name =
"BPHY24_Finder_DiMuon",
63 TrackAndTrack =
False,
65 muonThresholdPt = 3000.,
70 oppChargesOnly =
False,
71 allChargeCombinations =
True,
72 atLeastOneComb =
True,
73 useCombinedMeasurement =
False,
74 muonCollectionKey =
"Muons",
75 TrackParticleCollection =
"InDetTrackParticles",
76 V0VertexFitterTool =
None,
78 TrkVertexFitterTool = vkalvrt,
79 TrackSelectorTool = trackselect,
80 VertexPointEstimator = vpest,
84 BPHY24_SelectAndWrite_DiMuon = CompFactory.DerivationFramework.Reco_mumu( name =
"BPHY24_SelectAndWrite_DiMuon",
85 JpsiFinder = BPHY24_Finder_DiMuon,
88 OutputVtxContainerName =
"BPHY24_DiMuon_Candidates",
89 PVContainerName =
"PrimaryVertices",
90 RefPVContainerName =
"SHOULDNOTBEUSED",
93 augsList += [ BPHY24_SelectAndWrite_DiMuon ]
95 thinTrkVtxList += [
"BPHY24_DiMuon_Candidates" ]
96 outVtxList += [
"BPHY24_DiMuon_Candidates" ]
97 thinPassFlagsList += [
"passed_Jpsi" ]
99 BPHY24_Select_DiMuons = CompFactory.DerivationFramework.Select_onia2mumu( name =
"BPHY24_Select_DiMuons",
100 HypothesisName =
"Jpsi",
101 InputVtxContainerName =
"BPHY24_DiMuon_Candidates",
103 VtxMassHypo = 3096.916,
109 augsList += [ BPHY24_Select_DiMuons ]
111 ElectronLHSelectorLHvloose = CompFactory.AsgElectronLikelihoodTool(
"ElectronLHSelectorLHvloose",
112 primaryVertexContainer =
"PrimaryVertices",
113 ConfigFile=
"ElectronPhotonSelectorTools/offline/mc20_20210514/ElectronLikelihoodVeryLooseOfflineConfig2017_Smooth.conf")
117 ElectronLHSelectorLHvloose_nod0 = CompFactory.AsgElectronLikelihoodTool(
"ElectronLHSelectorLHvloosenod0", primaryVertexContainer =
"PrimaryVertices",
118 ConfigFile=
"ElectronPhotonSelectorTools/offline/mc16_20190328_nod0/ElectronLikelihoodVeryLooseOfflineConfig2017_Smooth_nod0.conf")
122 ElectronPassLHvloose = CompFactory.DerivationFramework.EGElectronLikelihoodToolWrapper(name =
"ElectronPassLHvloose",
123 EGammaElectronLikelihoodTool = ElectronLHSelectorLHvloose,
124 EGammaFudgeMCTool =
"",
126 StoreGateEntryName =
"DFCommonElectronsLHVeryLoose",
127 ContainerName =
"Electrons",
130 ElectronPassLHvloosenod0 = CompFactory.DerivationFramework.EGElectronLikelihoodToolWrapper(name =
"ElectronPassLHvloosenod0",
131 EGammaElectronLikelihoodTool = ElectronLHSelectorLHvloose_nod0,
132 EGammaFudgeMCTool =
"",
134 StoreGateEntryName =
"DFCommonElectronsLHVeryLoosenod0",
135 ContainerName =
"Electrons",
137 augsList += [ElectronPassLHvloose, ElectronPassLHvloosenod0]
139 BPHY24DiElectronFinder = CompFactory.Analysis.JpsiFinder_ee(
140 name =
"BPHY24DiElectronFinder",
143 TrackAndTrack =
False,
144 assumeDiElectrons =
True,
145 elThresholdPt = 4000.0,
146 invMassUpper = 7000.0,
147 invMassLower = 200.0,
149 oppChargesOnly =
False,
150 allChargeCombinations =
True,
151 useElectronTrackMeasurement =
True,
152 electronCollectionKey =
"Electrons",
153 TrackParticleCollection =
"GSFTrackParticles",
154 useEgammaCuts =
True,
155 V0VertexFitterTool =
None,
157 TrkVertexFitterTool = vkalvrt,
158 TrackSelectorTool = trackselect,
159 VertexPointEstimator = vpest,
160 ElectronSelection =
"d0_or_nod0"
163 BPHY24_SelectAndWrite_DiElectron = CompFactory.DerivationFramework.Reco_mumu(
164 name =
"BPHY24_SelectAndWrite_DiElectron",
165 JpsiFinder = BPHY24DiElectronFinder,
167 PVRefitter = PVrefit,
168 OutputVtxContainerName =
"BPHY24_DiElectron_Candidates",
169 PVContainerName =
"PrimaryVertices",
170 RefPVContainerName =
"SHOULDNOTBEUSED",
174 augsList += [ BPHY24_SelectAndWrite_DiElectron ]
176 BPHY24_Select_DiElectrons = CompFactory.DerivationFramework.Select_onia2mumu(
177 name =
"BPHY24_Select_DiElectrons",
178 HypothesisName =
"Jpsi",
179 InputVtxContainerName =
"BPHY24_DiElectron_Candidates",
181 VtxMassHypo = 3096.916,
188 thinTrkVtxList += [
"BPHY24_DiElectron_Candidates" ]
189 outVtxList += [
"BPHY24_DiElectron_Candidates" ]
191 augsList += [ BPHY24_Select_DiElectrons ]
193 V0ContainerName =
"BPHY24RecoV0Candidates"
194 KshortContainerName =
"BPHY24RecoKshortCandidates"
195 LambdaContainerName =
"BPHY24RecoLambdaCandidates"
196 LambdabarContainerName =
"BPHY24RecoLambdabarCandidates"
198 from DerivationFrameworkBPhys.V0ToolConfig
import (
199 BPHY_InDetV0FinderToolCfg, BPHY_Reco_V0FinderCfg)
202 flags, BPHYDerivationName,
203 TrackParticleCollection = mainIDInput,
204 V0ContainerName = V0ContainerName,
205 KshortContainerName = KshortContainerName,
206 LambdaContainerName = LambdaContainerName,
207 LambdabarContainerName = LambdabarContainerName,
208 RelinkTracks = originalTrackCond))
211 flags, derivation = BPHYDerivationName,
212 V0ContainerName = V0ContainerName,
213 KshortContainerName = KshortContainerName,
214 LambdaContainerName = LambdaContainerName,
215 LambdabarContainerName = LambdabarContainerName,
216 CheckVertexContainers = [
'BPHY24_DiMuon_Candidates',
217 'BPHY24_DiElectron_Candidates'],
218 V0FinderTool = BPHY24_V0FinderTool))
220 augsList += [BPHY24_Reco_V0Finder]
221 outVtxList += [
'BPHY24RecoKshortCandidates']
222 outVtxList += [
"BPHY24RecoV0Candidates"]
223 thinTrkVtxList += [
'BPHY24RecoKshortCandidates']
224 thinPassFlagsList += [
"" ]
225 finalCandidateList += [
"BPHY24RecoKshortCandidates"]
226 finalCandidateList += [
"BPHY24RecoV0Candidates"]
227 from TrkConfig.TrkVKalVrtFitterConfig
import JpsiV0VertexFitCfg
229 acc.addPublicTool(JpsiV0VertexFit)
231 BPHY24JpsimmKshort = CompFactory.DerivationFramework.JpsiPlusV0Cascade(
232 name =
"BPHY24mmKshort",
234 HypothesisName =
"Bd",
235 TrkVertexFitterTool = JpsiV0VertexFit,
238 JpsiMassLowerCut = 1.,
239 JpsiMassUpperCut = 7000.,
240 ApplyJpsiMassConstraint =
False,
241 V0MassLowerCut = 400.,
242 V0MassUpperCut = 600.,
243 MassLowerCut = 4300.,
244 MassUpperCut = 6300.,
246 RefPVContainerName =
"BPHY24RefittedPrimaryVertices_mm",
247 JpsiVertices =
"BPHY24_DiMuon_Candidates",
248 CascadeVertexCollections= [
"BPHY24JpsimmKshortCascadeSV2",
"BPHY24JpsimmKshortCascadeSV1"],
249 V0Vertices =
"BPHY24RecoV0Candidates",
250 V0TrackContainerName = mainIDInput,
251 RelinkTracks = originalTrackCond)
253 augsList += [BPHY24JpsimmKshort]
254 outVtxList += BPHY24JpsimmKshort.CascadeVertexCollections
255 outVtxList += [
"BPHY24RefittedPrimaryVertices_mm"]
256 thinTrkVtxList += BPHY24JpsimmKshort.CascadeVertexCollections
257 finalCandidateList += BPHY24JpsimmKshort.CascadeVertexCollections
259 BPHY24JpsieeKshort = CompFactory.DerivationFramework.JpsiPlusV0Cascade(
260 name =
"BPHY24eeKshort",
262 HypothesisName =
"Bd",
263 TrkVertexFitterTool = JpsiV0VertexFit,
266 JpsiMassLowerCut = 100.,
267 JpsiMassUpperCut = 7000.,
268 ApplyJpsiMassConstraint =
False,
269 V0MassLowerCut = 400.,
270 V0MassUpperCut = 600.,
271 MassLowerCut = 4300.,
272 MassUpperCut = 6300.,
274 JpsiTrackContainerName =
"GSFTrackParticles",
276 RefPVContainerName =
"BPHY24RefittedPrimaryVertices_ee",
277 JpsiVertices =
"BPHY24_DiElectron_Candidates",
278 CascadeVertexCollections= [
"BPHY24JpsieeKshortCascadeSV2",
"BPHY24JpsieeKshortCascadeSV1"],
279 V0Vertices =
"BPHY24RecoV0Candidates",
280 V0TrackContainerName = mainIDInput,
281 RelinkTracks = originalTrackCond)
283 augsList += [BPHY24JpsieeKshort]
284 finalCandidateList += BPHY24JpsieeKshort.CascadeVertexCollections
285 outVtxList += BPHY24JpsieeKshort.CascadeVertexCollections
286 outVtxList += [
"BPHY24RefittedPrimaryVertices_ee"]
287 thinTrkVtxList += BPHY24JpsieeKshort.CascadeVertexCollections
289 from TrackVertexAssociationTool.TrackVertexAssociationToolConfig
import isoTTVAToolCfg
291 WorkingPoint =
"Custom",
295 doUsedInFit =
False))
296 acc.addPublicTool(TTVATool)
298 from InDetConfig.InDetTrackSelectionToolConfig
import isoTrackSelectionToolCfg
303 acc.addPublicTool(TrackSelTool)
305 from IsolationAlgs.IsoToolsConfig
import TrackIsolationToolCfg
307 TrackSelectionTool = TrackSelTool,
308 TTVATool = TTVATool))
309 acc.addPublicTool(TrackIsoTool)
310 BPHY24TrackIsolationDecoratorBtoKee = CompFactory.DerivationFramework.VertexTrackIsolation(
311 name =
"BPHY24TrackIsolationDecoratorBtoKee",
312 TrackIsoTool = TrackIsoTool,
313 TrackContainer =
"InDetTrackParticles",
314 InputVertexContainer =
"BPHY24JpsieeKshortCascadeSV1",
315 FixElecExclusion =
True,
317 BPHY24TrackIsolationDecoratorBtoKmumu = CompFactory.DerivationFramework.VertexTrackIsolation(
318 name =
"BPHY24TrackIsolationDecoratorBtoKmumu ",
319 TrackIsoTool = TrackIsoTool,
320 TrackContainer =
"InDetTrackParticles",
321 InputVertexContainer =
"BPHY24JpsimmKshortCascadeSV1",
322 FixElecExclusion =
False,
325 BPHY24TrackIsolationDecoratorJpsiee = CompFactory.DerivationFramework.VertexTrackIsolation(
326 name =
"BPHY24TrackIsolationDecoratorJpsiee",
327 TrackIsoTool = TrackIsoTool,
328 TrackContainer =
"InDetTrackParticles",
329 InputVertexContainer =
"BPHY24_DiElectron_Candidates",
330 FixElecExclusion =
True,
333 BPHY24TrackIsolationDecoratorJpsimumu = CompFactory.DerivationFramework.VertexTrackIsolation(
334 name =
"BPHY24TrackIsolationDecoratorJpsimumu",
335 TrackIsoTool = TrackIsoTool,
336 TrackContainer =
"InDetTrackParticles",
337 InputVertexContainer =
"BPHY24_DiMuon_Candidates",
338 FixElecExclusion =
False,
341 BPHY24TrackIsolationDecoratorKshort = CompFactory.DerivationFramework.VertexTrackIsolation(
342 name =
"BPHY24TrackIsolationDecoratorKshort",
343 TrackIsoTool = TrackIsoTool,
344 TrackContainer =
"InDetTrackParticles",
345 InputVertexContainer =
"BPHY24RecoKshortCandidates",
346 FixElecExclusion =
False,
349 BPHY24TrackIsolationDecoratorV0 = CompFactory.DerivationFramework.VertexTrackIsolation(
350 name =
"BPHY24TrackIsolationDecoratorV0",
351 TrackIsoTool = TrackIsoTool,
352 TrackContainer =
"InDetTrackParticles",
353 InputVertexContainer =
"BPHY24RecoV0Candidates",
354 FixElecExclusion =
False,
357 augsList += [ BPHY24TrackIsolationDecoratorBtoKee,
358 BPHY24TrackIsolationDecoratorBtoKmumu,
359 BPHY24TrackIsolationDecoratorJpsiee,
360 BPHY24TrackIsolationDecoratorJpsimumu,
361 BPHY24TrackIsolationDecoratorKshort,
362 BPHY24TrackIsolationDecoratorV0]
365 "HLT_mu11_mu6_bDimu",
366 "HLT_mu11_mu6_bDimu2700",
367 "HLT_mu11_mu6_bDimu_L1LFV-MU11",
368 "HLT_mu11_mu6_bDimu2700_L1LFV-MU11",
369 "HLT_mu11_mu6_bBmumuxv2",
370 "HLT_mu10_mu6_bBmumuxv2",
371 "HLT_mu10_mu6_bBmumuxv2_delayed",
372 "HLT_2mu6_bBmumuxv2",
373 "HLT_2mu6_bBmumuxv2_delayed",
374 "HLT_2mu6_bBmumuxv2_L1LFV-MU6",
375 "HLT_mu6_mu4_bBmumuxv2",
376 "HLT_mu6_mu4_bBmumuxv2_delayed",
377 "HLT_2mu4_bBmumuxv2",
378 "HLT_mu11_mu6_bJpsimumu",
379 "HLT_2mu10_bJpsimumu",
380 "HLT_mu11_mu6_bJpsimumu_L1LFV-MU11",
381 "HLT_2mu6_bJpsimumu_L1BPH-2M9-2MU6_BPH-2DR15-2MU6",
382 "HLT_2mu6_bJpsimumu_delayed_L1BPH-2M9-2MU6_BPH-2DR15-2MU6",
383 "HLT_2mu10_bJpsimumu_noL2",
384 "HLT_mu10_mu6_bJpsimumu",
385 "HLT_mu10_mu6_bJpsimumu_delayed",
386 "HLT_2mu6_bJpsimumu",
387 "HLT_2mu6_bJpsimumu_delayed",
388 "HLT_mu6_mu4_bJpsimumu",
389 "HLT_mu6_mu4_bJpsimumu_Lxy0_L1BPH-2M9-MU6MU4_BPH-0DR15-MU6MU4",
390 "HLT_2mu4_bJpsimumu",
391 "HLT_mu6_2mu4_bJpsi",
392 "HLT_mu6_2mu4_bJpsi_delayed",
396 "HLT_2e5_lhvloose_nod0_bBeexM6000t",
397 "HLT_e5_lhvloose_nod0_bBeexM6000t",
398 "HLT_e5_lhvloose_nod0_bBeexM6000t_2mu4_nomucomb_L1BPH-0DR3-EM7J15_2MU4",
399 "HLT_e5_lhvloose_nod0_bBeexM6000t_mu6_nomucomb_L1BPH-0DR3-EM7J15_MU6",
400 "HLT_e5_lhvloose_nod0_bBeexM6000_mu6_nomucomb_L1BPH-0DR3-EM7J15_MU6",
401 "HLT_e9_lhloose_bBeexM2700_2mu4_nomucomb_L1BPH-0DR3-EM7J15_2MU4",
402 "HLT_e9_lhloose_bBeexM2700_mu6_nomucomb_L1BPH-0DR3-EM7J15_MU6",
403 "HLT_e9_lhloose_bBeexM6000_2mu4_nomucomb_L1BPH-0DR3-EM7J15_2MU4",
404 "HLT_e9_lhloose_bBeexM6000_mu6_nomucomb_L1BPH-0DR3-EM7J15_MU6",
405 "HLT_e9_lhloose_e5_lhloose_bBeexM2700_2mu4_nomucomb_L1BPH-0M9-EM7-EM5_2MU4",
406 "HLT_e9_lhloose_e5_lhloose_bBeexM2700_mu6_nomucomb_L1BPH-0M9-EM7-EM5_MU6",
407 "HLT_e9_lhloose_e5_lhloose_bBeexM6000_2mu4_nomucomb_L1BPH-0M9-EM7-EM5_2MU4",
408 "HLT_e9_lhloose_e5_lhloose_bBeexM6000_mu6_nomucomb_L1BPH-0M9-EM7-EM5_MU6",
409 "HLT_e9_lhvloose_nod0_e5_lhvloose_nod0_bBeexM6000t_2mu4_nomucomb_L1BPH-0M9-EM7-EM5_2MU4",
410 "HLT_e9_lhvloose_nod0_e5_lhvloose_nod0_bBeexM6000t_mu6_nomucomb_L1BPH-0M9-EM7-EM5_MU6",
411 "HLT_e9_lhvloose_nod0_e5_lhvloose_nod0_bBeexM6000_mu6_nomucomb_L1BPH-0M9-EM7-EM5_MU6",
414 BPHY24TrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name =
"BPHY24TrigSkimmingTool",
415 TriggerListOR = trigger_list,
416 TriggerListORHLTOnly = [
"HLT_2e5_lhvloose_nod0_bBeexM6000t",
"HLT_e5_lhvloose_nod0_bBeexM6000t"] )
417 acc.addPublicTool(BPHY24TrigSkimmingTool)
418 skimList += [BPHY24TrigSkimmingTool]
421 BPHY24_Thin_VtxTracks = CompFactory.DerivationFramework.Thin_vtxTrk( name =
"BPHY24_Thin_VtxTracks",
422 StreamName = streamName,
423 TrackParticleContainerName =
"InDetTrackParticles",
424 VertexContainerNames = finalCandidateList,
427 thinList += [ BPHY24_Thin_VtxTracks ]
430 BPHY24_Thin_VtxTracks_LRT = CompFactory.DerivationFramework.Thin_vtxTrk( name =
"BPHY24_Thin_VtxTracks_LRT",
431 StreamName = streamName,
432 TrackParticleContainerName =
"InDetLargeD0TrackParticles",
433 VertexContainerNames = finalCandidateList,
436 thinList += [ BPHY24_Thin_VtxTracks_LRT ]
439 BPHY24_Thin_VtxTracks_GSF = CompFactory.DerivationFramework.Thin_vtxTrk( name =
"BPHY24_Thin_VtxTracks_GSF",
440 StreamName = streamName,
441 TrackParticleContainerName =
"GSFTrackParticles",
442 VertexContainerNames = finalCandidateList,
444 thinList += [ BPHY24_Thin_VtxTracks_GSF ]
447 BPHY24_Thin_Muons = CompFactory.DerivationFramework.MuonTrackParticleThinning( name =
"BPHY24_Thin_Muons",
449 StreamName = streamName,
450 InDetTrackParticlesKey =
"InDetTrackParticles" )
451 thinList += [ BPHY24_Thin_Muons ]
454 BPHY24_Thin_Egamma = CompFactory.DerivationFramework.EgammaTrackParticleThinning(
455 name =
"BPHY24_Thin_Egamma",
457 StreamName = streamName,
458 InDetTrackParticlesKey = mainIDInput)
459 thinList += [BPHY24_Thin_Egamma]
462 BPHY24_Thin_PV = CompFactory.DerivationFramework.BPhysPVThinningTool( name =
"BPHY24_Thin_PV",
463 CandidateCollections = finalCandidateList,
464 StreamName = streamName,
465 KeepPVTracks =
True )
466 thinList += [ BPHY24_Thin_PV ]
471 keepParticles = (
'abs(TruthParticles.pdgId) == 11 || '
472 'abs(TruthParticles.pdgId) == 13')
475 keepParticles += (
' || '
476 'abs(TruthParticles.pdgId) == 511 || '
477 'abs(TruthParticles.pdgId) == 513 || '
478 'abs(TruthParticles.pdgId) == 515')
481 BPHY24_Thin_TruthHadrons = CompFactory.DerivationFramework.GenericTruthThinning( name =
"BPHY24_Thin_TruthHadrons",
482 ParticleSelectionString = keepParticles,
483 PreserveDescendants =
True,
484 StreamName = streamName,
485 PreserveAncestors =
True)
486 thinList += [ BPHY24_Thin_TruthHadrons ]
489 BPHY24_Thin_TruthQuarks = CompFactory.DerivationFramework.GenericTruthThinning( name =
"BPHY24_Thin_TruthQuarks",
490 ParticleSelectionString = (
'abs(TruthParticles.pdgId) == 5 || '
491 'abs(TruthParticles.pdgId) == 12 || abs(TruthParticles.pdgId) == 14' ),
492 PreserveDescendants =
False,
493 StreamName = streamName,
494 PreserveAncestors =
False)
495 thinList += [ BPHY24_Thin_TruthQuarks ]
497 for t
in augsList + skimList + thinList: acc.addPublicTool(t)
498 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(
"BPHY24Kernel",
499 AugmentationTools = augsList,
502 SkimmingTools = skimList,
503 ThinningTools = thinList))
506 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
507 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
508 BPHY24SlimmingHelper =
SlimmingHelper(
"BPHY24SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
509 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
510 from AthenaConfiguration.Enums
import MetadataCategory
511 from DerivationFrameworkBPhys.commonBPHYMethodsCfg
import getDefaultAllVariables
519 BPHY24SlimmingHelper.SmartCollections = [
"Electrons",
"Muons",
"InDetTrackParticles",
"InDetLargeD0TrackParticles" ]
522 AllVariables += [
"InDetLargeD0TrackParticles"]
523 AllVariables += [
"CombinedMuonTrackParticles" ]
524 AllVariables += [
"ExtrapolatedMuonTrackParticles" ]
525 ExtraVariables += [
"Muons.etaLayer1Hits.etaLayer2Hits.etaLayer3Hits.etaLayer4Hits.phiLayer1Hits.phiLayer2Hits.phiLayer3Hits.phiLayer4Hits",
526 "Muons.numberOfTriggerEtaLayers.numberOfPhiLayers",
527 "InDetTrackParticles.numberOfTRTHits.numberOfTRTHighThresholdHits.vx.vy.vz",
528 "InDetLargeD0TrackParticles.numberOfTRTHits.numberOfTRTHighThresholdHits.vx.vy.vz",
529 "PrimaryVertices.chiSquared.covariance",
"Electrons.deltaEta1.DFCommonElectronsLHVeryLoosenod0",
530 "egammaClusters.calE.calEta.calPhi.e_sampl.eta_sampl.etaCalo.phiCalo.ETACALOFRAME.PHICALOFRAME",
531 "HLT_xAOD__ElectronContainer_egamma_ElectronsAuxDyn.charge" ]
536 BPHY24SlimmingHelper.IncludeMuonTriggerContent =
True
537 BPHY24SlimmingHelper.IncludeEgammaTriggerContent =
True
538 BPHY24SlimmingHelper.IncludeBPhysTriggerContent =
True
541 AllVariables += [
"PrimaryVertices" ]
542 print(
"BPHY24: List of refitted-PV output: ", outRePVList)
543 for i
in outRePVList:
544 StaticContent += [
"xAOD::VertexContainer#%s" % i ]
545 StaticContent += [
"xAOD::VertexAuxContainer#%sAux." % i ]
548 print(
"BPHY24: List of B-vertexing output: ", outVtxList)
550 StaticContent += [
"xAOD::VertexContainer#%s" % i ]
551 StaticContent += [
"xAOD::VertexAuxContainer#%sAux.-vxTrackAtVertex" % i ]
553 print(
"BPHY24: Full list of B-augmentation: ", StaticContent)
557 AllVariables += [
"TruthEvents",
560 "MuonTruthParticles" ]
561 AllVariables =
list(
set(AllVariables))
563 BPHY24SlimmingHelper.AllVariables = AllVariables
564 BPHY24SlimmingHelper.StaticContent = StaticContent
565 BPHY24SlimmingHelper.ExtraVariables = ExtraVariables
566 BPHY24ItemList = BPHY24SlimmingHelper.GetItemList()
567 acc.merge(
OutputStreamCfg(flags,
"DAOD_BPHY24", ItemList=BPHY24ItemList, AcceptAlgs=[
"BPHY24Kernel"]))
568 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_BPHY24", AcceptAlgs=[
"BPHY24Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))
569 acc.printConfig(withDetails=
True, summariseProps=
True, onlyComponents = [], printDefaults=
True, printComponentsOnly=
False)