23 thinPassFlagsList = []
24 finalCandidateList = []
26 from AthenaServices.PartPropSvcConfig
import PartPropSvcCfg
27 from DerivationFrameworkBPhys.commonBPHYMethodsCfg
import (BPHY_V0ToolCfg, BPHY_InDetDetailedTrackSelectorToolCfg, BPHY_VertexPointEstimatorCfg, BPHY_TrkVKalVrtFitterCfg)
28 from JpsiUpsilonTools.JpsiUpsilonToolsConfig
import PrimaryVertexRefittingToolCfg
30 PartPropSvcName = acc.getPrimaryAndMerge(
PartPropSvcCfg(flags)).name
31 isSimulation = flags.Input.isMC
32 V0Tools = acc.popToolsAndMerge(
BPHY_V0ToolCfg(flags, BPHYDerivationName))
34 acc.addPublicTool(vkalvrt)
35 acc.addPublicTool(V0Tools)
37 acc.addPublicTool(trackselect)
39 acc.addPublicTool(vpest)
41 acc.addPublicTool(PVrefit)
44 BPHY24_AugOriginalCounts = CompFactory.DerivationFramework.AugOriginalCounts(
45 name =
"BPHY24_AugOriginalCounts",
46 VertexContainer =
"PrimaryVertices",
47 TrackContainer =
"InDetTrackParticles" )
49 bSkim =
"(count(BPHY24JpsimmKshortCascadeSV1.Bd_mass) + count(BPHY24JpsieeKshortCascadeSV1.Bd_mass)) > 0"
51 BPHY24_Skim_Bcandidates = CompFactory.DerivationFramework.xAODStringSkimmingTool( name =
"BPHY24_Skim_Bcandidates",
53 skimList += [ BPHY24_Skim_Bcandidates ]
54 augsList += [ BPHY24_AugOriginalCounts ]
57 from DerivationFrameworkInDet.InDetToolsConfig
import InDetLRTMergeCfg
60 mainIDInput =
"InDetWithLRTTrackParticles"
61 originalTrackCond = [
"InDetTrackParticles",
"InDetLargeD0TrackParticles",
"GSFTrackParticles"]
62 BPHY24_Finder_DiMuon = CompFactory.Analysis.JpsiFinder( name =
"BPHY24_Finder_DiMuon",
65 TrackAndTrack =
False,
67 muonThresholdPt = 3000.,
72 oppChargesOnly =
False,
73 allChargeCombinations =
True,
74 atLeastOneComb =
True,
75 useCombinedMeasurement =
False,
76 muonCollectionKey =
"Muons",
77 TrackParticleCollection =
"InDetTrackParticles",
78 V0VertexFitterTool =
None,
80 TrkVertexFitterTool = vkalvrt,
81 TrackSelectorTool = trackselect,
82 VertexPointEstimator = vpest,
86 BPHY24_SelectAndWrite_DiMuon = CompFactory.DerivationFramework.Reco_mumu( name =
"BPHY24_SelectAndWrite_DiMuon",
87 JpsiFinder = BPHY24_Finder_DiMuon,
90 OutputVtxContainerName =
"BPHY24_DiMuon_Candidates",
91 PVContainerName =
"PrimaryVertices",
92 RefPVContainerName =
"SHOULDNOTBEUSED",
95 augsList += [ BPHY24_SelectAndWrite_DiMuon ]
97 thinTrkVtxList += [
"BPHY24_DiMuon_Candidates" ]
98 outVtxList += [
"BPHY24_DiMuon_Candidates" ]
99 thinPassFlagsList += [
"passed_Jpsi" ]
101 BPHY24_Select_DiMuons = CompFactory.DerivationFramework.Select_onia2mumu( name =
"BPHY24_Select_DiMuons",
102 HypothesisName =
"Jpsi",
103 InputVtxContainerName =
"BPHY24_DiMuon_Candidates",
105 VtxMassHypo = 3096.916,
111 augsList += [ BPHY24_Select_DiMuons ]
113 ElectronLHSelectorLHvloose = CompFactory.AsgElectronLikelihoodTool(
"ElectronLHSelectorLHvloose",
114 primaryVertexContainer =
"PrimaryVertices",
115 ConfigFile=
"ElectronPhotonSelectorTools/offline/mc20_20210514/ElectronLikelihoodVeryLooseOfflineConfig2017_Smooth.conf")
119 ElectronLHSelectorLHvloose_nod0 = CompFactory.AsgElectronLikelihoodTool(
"ElectronLHSelectorLHvloosenod0", primaryVertexContainer =
"PrimaryVertices",
120 ConfigFile=
"ElectronPhotonSelectorTools/offline/mc16_20190328_nod0/ElectronLikelihoodVeryLooseOfflineConfig2017_Smooth_nod0.conf")
124 ElectronPassLHvloose = CompFactory.DerivationFramework.EGElectronLikelihoodToolWrapper(name =
"ElectronPassLHvloose",
125 EGammaElectronLikelihoodTool = ElectronLHSelectorLHvloose,
126 EGammaFudgeMCTool =
"",
128 StoreGateEntryName =
"DFCommonElectronsLHVeryLoose",
129 ContainerName =
"Electrons",
132 ElectronPassLHvloosenod0 = CompFactory.DerivationFramework.EGElectronLikelihoodToolWrapper(name =
"ElectronPassLHvloosenod0",
133 EGammaElectronLikelihoodTool = ElectronLHSelectorLHvloose_nod0,
134 EGammaFudgeMCTool =
"",
136 StoreGateEntryName =
"DFCommonElectronsLHVeryLoosenod0",
137 ContainerName =
"Electrons",
139 augsList += [ElectronPassLHvloose, ElectronPassLHvloosenod0]
141 BPHY24DiElectronFinder = CompFactory.Analysis.JpsiFinder_ee(
142 name =
"BPHY24DiElectronFinder",
145 TrackAndTrack =
False,
146 assumeDiElectrons =
True,
147 elThresholdPt = 4000.0,
148 invMassUpper = 7000.0,
149 invMassLower = 200.0,
151 oppChargesOnly =
False,
152 allChargeCombinations =
True,
153 useElectronTrackMeasurement =
True,
154 electronCollectionKey =
"Electrons",
155 TrackParticleCollection =
"GSFTrackParticles",
156 useEgammaCuts =
True,
157 V0VertexFitterTool =
None,
159 TrkVertexFitterTool = vkalvrt,
160 TrackSelectorTool = trackselect,
161 VertexPointEstimator = vpest,
162 ElectronSelection =
"d0_or_nod0",
163 PartPropSvc = PartPropSvcName
166 BPHY24_SelectAndWrite_DiElectron = CompFactory.DerivationFramework.Reco_mumu(
167 name =
"BPHY24_SelectAndWrite_DiElectron",
168 JpsiFinder = BPHY24DiElectronFinder,
170 PVRefitter = PVrefit,
171 OutputVtxContainerName =
"BPHY24_DiElectron_Candidates",
172 PVContainerName =
"PrimaryVertices",
173 RefPVContainerName =
"SHOULDNOTBEUSED",
177 augsList += [ BPHY24_SelectAndWrite_DiElectron ]
179 BPHY24_Select_DiElectrons = CompFactory.DerivationFramework.Select_onia2mumu(
180 name =
"BPHY24_Select_DiElectrons",
181 HypothesisName =
"Jpsi",
182 InputVtxContainerName =
"BPHY24_DiElectron_Candidates",
184 VtxMassHypo = 3096.916,
191 thinTrkVtxList += [
"BPHY24_DiElectron_Candidates" ]
192 outVtxList += [
"BPHY24_DiElectron_Candidates" ]
194 augsList += [ BPHY24_Select_DiElectrons ]
196 V0ContainerName =
"BPHY24RecoV0Candidates"
197 KshortContainerName =
"BPHY24RecoKshortCandidates"
198 LambdaContainerName =
"BPHY24RecoLambdaCandidates"
199 LambdabarContainerName =
"BPHY24RecoLambdabarCandidates"
201 from DerivationFrameworkBPhys.V0ToolConfig
import (
202 BPHY_InDetV0FinderToolCfg, BPHY_Reco_V0FinderCfg)
205 flags, BPHYDerivationName,
206 TrackParticleCollection = mainIDInput,
207 V0ContainerName = V0ContainerName,
208 KshortContainerName = KshortContainerName,
209 LambdaContainerName = LambdaContainerName,
210 LambdabarContainerName = LambdabarContainerName,
211 RelinkTracks = originalTrackCond))
214 flags, derivation = BPHYDerivationName,
215 V0ContainerName = V0ContainerName,
216 KshortContainerName = KshortContainerName,
217 LambdaContainerName = LambdaContainerName,
218 LambdabarContainerName = LambdabarContainerName,
219 CheckVertexContainers = [
'BPHY24_DiMuon_Candidates',
220 'BPHY24_DiElectron_Candidates'],
221 V0FinderTool = BPHY24_V0FinderTool))
223 augsList += [BPHY24_Reco_V0Finder]
224 outVtxList += [
'BPHY24RecoKshortCandidates']
225 outVtxList += [
"BPHY24RecoV0Candidates"]
226 thinTrkVtxList += [
'BPHY24RecoKshortCandidates']
227 thinPassFlagsList += [
"" ]
228 finalCandidateList += [
"BPHY24RecoKshortCandidates"]
229 finalCandidateList += [
"BPHY24RecoV0Candidates"]
230 from TrkConfig.TrkVKalVrtFitterConfig
import JpsiV0VertexFitCfg
232 acc.addPublicTool(JpsiV0VertexFit)
234 BPHY24JpsimmKshort = CompFactory.DerivationFramework.JpsiPlusV0Cascade(
235 name =
"BPHY24mmKshort",
237 HypothesisName =
"Bd",
238 TrkVertexFitterTool = JpsiV0VertexFit,
241 JpsiMassLowerCut = 1.,
242 JpsiMassUpperCut = 7000.,
243 ApplyJpsiMassConstraint =
False,
244 V0MassLowerCut = 400.,
245 V0MassUpperCut = 600.,
246 MassLowerCut = 4300.,
247 MassUpperCut = 6300.,
249 RefPVContainerName =
"BPHY24RefittedPrimaryVertices_mm",
250 JpsiVertices =
"BPHY24_DiMuon_Candidates",
251 CascadeVertexCollections= [
"BPHY24JpsimmKshortCascadeSV2",
"BPHY24JpsimmKshortCascadeSV1"],
252 V0Vertices =
"BPHY24RecoV0Candidates",
253 V0TrackContainerName = mainIDInput,
254 RelinkTracks = originalTrackCond)
256 augsList += [BPHY24JpsimmKshort]
257 outVtxList += BPHY24JpsimmKshort.CascadeVertexCollections
258 outVtxList += [
"BPHY24RefittedPrimaryVertices_mm"]
259 thinTrkVtxList += BPHY24JpsimmKshort.CascadeVertexCollections
260 finalCandidateList += BPHY24JpsimmKshort.CascadeVertexCollections
262 BPHY24JpsieeKshort = CompFactory.DerivationFramework.JpsiPlusV0Cascade(
263 name =
"BPHY24eeKshort",
265 HypothesisName =
"Bd",
266 TrkVertexFitterTool = JpsiV0VertexFit,
269 JpsiMassLowerCut = 100.,
270 JpsiMassUpperCut = 7000.,
271 ApplyJpsiMassConstraint =
False,
272 V0MassLowerCut = 400.,
273 V0MassUpperCut = 600.,
274 MassLowerCut = 4300.,
275 MassUpperCut = 6300.,
277 JpsiTrackContainerName =
"GSFTrackParticles",
279 RefPVContainerName =
"BPHY24RefittedPrimaryVertices_ee",
280 JpsiVertices =
"BPHY24_DiElectron_Candidates",
281 CascadeVertexCollections= [
"BPHY24JpsieeKshortCascadeSV2",
"BPHY24JpsieeKshortCascadeSV1"],
282 V0Vertices =
"BPHY24RecoV0Candidates",
283 V0TrackContainerName = mainIDInput,
284 RelinkTracks = originalTrackCond)
286 augsList += [BPHY24JpsieeKshort]
287 finalCandidateList += BPHY24JpsieeKshort.CascadeVertexCollections
288 outVtxList += BPHY24JpsieeKshort.CascadeVertexCollections
289 outVtxList += [
"BPHY24RefittedPrimaryVertices_ee"]
290 thinTrkVtxList += BPHY24JpsieeKshort.CascadeVertexCollections
292 from TrackVertexAssociationTool.TrackVertexAssociationToolConfig
import isoTTVAToolCfg
294 WorkingPoint =
"Custom",
298 doUsedInFit =
False))
299 acc.addPublicTool(TTVATool)
301 from InDetConfig.InDetTrackSelectionToolConfig
import isoTrackSelectionToolCfg
306 acc.addPublicTool(TrackSelTool)
308 from IsolationAlgs.IsoToolsConfig
import TrackIsolationToolCfg
310 TrackSelectionTool = TrackSelTool,
311 TTVATool = TTVATool))
312 acc.addPublicTool(TrackIsoTool)
313 BPHY24TrackIsolationDecoratorBtoKee = CompFactory.DerivationFramework.VertexTrackIsolation(
314 name =
"BPHY24TrackIsolationDecoratorBtoKee",
315 TrackIsoTool = TrackIsoTool,
316 TrackContainer =
"InDetTrackParticles",
317 InputVertexContainer =
"BPHY24JpsieeKshortCascadeSV1",
318 FixElecExclusion =
True,
320 BPHY24TrackIsolationDecoratorBtoKmumu = CompFactory.DerivationFramework.VertexTrackIsolation(
321 name =
"BPHY24TrackIsolationDecoratorBtoKmumu ",
322 TrackIsoTool = TrackIsoTool,
323 TrackContainer =
"InDetTrackParticles",
324 InputVertexContainer =
"BPHY24JpsimmKshortCascadeSV1",
325 FixElecExclusion =
False,
328 BPHY24TrackIsolationDecoratorJpsiee = CompFactory.DerivationFramework.VertexTrackIsolation(
329 name =
"BPHY24TrackIsolationDecoratorJpsiee",
330 TrackIsoTool = TrackIsoTool,
331 TrackContainer =
"InDetTrackParticles",
332 InputVertexContainer =
"BPHY24_DiElectron_Candidates",
333 FixElecExclusion =
True,
336 BPHY24TrackIsolationDecoratorJpsimumu = CompFactory.DerivationFramework.VertexTrackIsolation(
337 name =
"BPHY24TrackIsolationDecoratorJpsimumu",
338 TrackIsoTool = TrackIsoTool,
339 TrackContainer =
"InDetTrackParticles",
340 InputVertexContainer =
"BPHY24_DiMuon_Candidates",
341 FixElecExclusion =
False,
344 BPHY24TrackIsolationDecoratorKshort = CompFactory.DerivationFramework.VertexTrackIsolation(
345 name =
"BPHY24TrackIsolationDecoratorKshort",
346 TrackIsoTool = TrackIsoTool,
347 TrackContainer =
"InDetTrackParticles",
348 InputVertexContainer =
"BPHY24RecoKshortCandidates",
349 FixElecExclusion =
False,
352 BPHY24TrackIsolationDecoratorV0 = CompFactory.DerivationFramework.VertexTrackIsolation(
353 name =
"BPHY24TrackIsolationDecoratorV0",
354 TrackIsoTool = TrackIsoTool,
355 TrackContainer =
"InDetTrackParticles",
356 InputVertexContainer =
"BPHY24RecoV0Candidates",
357 FixElecExclusion =
False,
360 augsList += [ BPHY24TrackIsolationDecoratorBtoKee,
361 BPHY24TrackIsolationDecoratorBtoKmumu,
362 BPHY24TrackIsolationDecoratorJpsiee,
363 BPHY24TrackIsolationDecoratorJpsimumu,
364 BPHY24TrackIsolationDecoratorKshort,
365 BPHY24TrackIsolationDecoratorV0]
368 "HLT_mu11_mu6_bDimu",
369 "HLT_mu11_mu6_bDimu2700",
370 "HLT_mu11_mu6_bDimu_L1LFV-MU11",
371 "HLT_mu11_mu6_bDimu2700_L1LFV-MU11",
372 "HLT_mu11_mu6_bBmumuxv2",
373 "HLT_mu10_mu6_bBmumuxv2",
374 "HLT_mu10_mu6_bBmumuxv2_delayed",
375 "HLT_2mu6_bBmumuxv2",
376 "HLT_2mu6_bBmumuxv2_delayed",
377 "HLT_2mu6_bBmumuxv2_L1LFV-MU6",
378 "HLT_mu6_mu4_bBmumuxv2",
379 "HLT_mu6_mu4_bBmumuxv2_delayed",
380 "HLT_2mu4_bBmumuxv2",
381 "HLT_mu11_mu6_bJpsimumu",
382 "HLT_2mu10_bJpsimumu",
383 "HLT_mu11_mu6_bJpsimumu_L1LFV-MU11",
384 "HLT_2mu6_bJpsimumu_L1BPH-2M9-2MU6_BPH-2DR15-2MU6",
385 "HLT_2mu6_bJpsimumu_delayed_L1BPH-2M9-2MU6_BPH-2DR15-2MU6",
386 "HLT_2mu10_bJpsimumu_noL2",
387 "HLT_mu10_mu6_bJpsimumu",
388 "HLT_mu10_mu6_bJpsimumu_delayed",
389 "HLT_2mu6_bJpsimumu",
390 "HLT_2mu6_bJpsimumu_delayed",
391 "HLT_mu6_mu4_bJpsimumu",
392 "HLT_mu6_mu4_bJpsimumu_Lxy0_L1BPH-2M9-MU6MU4_BPH-0DR15-MU6MU4",
393 "HLT_2mu4_bJpsimumu",
394 "HLT_mu6_2mu4_bJpsi",
395 "HLT_mu6_2mu4_bJpsi_delayed",
399 "HLT_2e5_lhvloose_nod0_bBeexM6000t",
400 "HLT_e5_lhvloose_nod0_bBeexM6000t",
401 "HLT_e5_lhvloose_nod0_bBeexM6000t_2mu4_nomucomb_L1BPH-0DR3-EM7J15_2MU4",
402 "HLT_e5_lhvloose_nod0_bBeexM6000t_mu6_nomucomb_L1BPH-0DR3-EM7J15_MU6",
403 "HLT_e5_lhvloose_nod0_bBeexM6000_mu6_nomucomb_L1BPH-0DR3-EM7J15_MU6",
404 "HLT_e9_lhloose_bBeexM2700_2mu4_nomucomb_L1BPH-0DR3-EM7J15_2MU4",
405 "HLT_e9_lhloose_bBeexM2700_mu6_nomucomb_L1BPH-0DR3-EM7J15_MU6",
406 "HLT_e9_lhloose_bBeexM6000_2mu4_nomucomb_L1BPH-0DR3-EM7J15_2MU4",
407 "HLT_e9_lhloose_bBeexM6000_mu6_nomucomb_L1BPH-0DR3-EM7J15_MU6",
408 "HLT_e9_lhloose_e5_lhloose_bBeexM2700_2mu4_nomucomb_L1BPH-0M9-EM7-EM5_2MU4",
409 "HLT_e9_lhloose_e5_lhloose_bBeexM2700_mu6_nomucomb_L1BPH-0M9-EM7-EM5_MU6",
410 "HLT_e9_lhloose_e5_lhloose_bBeexM6000_2mu4_nomucomb_L1BPH-0M9-EM7-EM5_2MU4",
411 "HLT_e9_lhloose_e5_lhloose_bBeexM6000_mu6_nomucomb_L1BPH-0M9-EM7-EM5_MU6",
412 "HLT_e9_lhvloose_nod0_e5_lhvloose_nod0_bBeexM6000t_2mu4_nomucomb_L1BPH-0M9-EM7-EM5_2MU4",
413 "HLT_e9_lhvloose_nod0_e5_lhvloose_nod0_bBeexM6000t_mu6_nomucomb_L1BPH-0M9-EM7-EM5_MU6",
414 "HLT_e9_lhvloose_nod0_e5_lhvloose_nod0_bBeexM6000_mu6_nomucomb_L1BPH-0M9-EM7-EM5_MU6",
417 BPHY24TrigSkimmingTool = CompFactory.DerivationFramework.TriggerSkimmingTool( name =
"BPHY24TrigSkimmingTool",
418 TriggerListOR = trigger_list,
419 TriggerListORHLTOnly = [
"HLT_2e5_lhvloose_nod0_bBeexM6000t",
"HLT_e5_lhvloose_nod0_bBeexM6000t"] )
420 acc.addPublicTool(BPHY24TrigSkimmingTool)
421 skimList += [BPHY24TrigSkimmingTool]
424 BPHY24_Thin_VtxTracks = CompFactory.DerivationFramework.Thin_vtxTrk( name =
"BPHY24_Thin_VtxTracks",
425 StreamName = streamName,
426 TrackParticleContainerName =
"InDetTrackParticles",
427 VertexContainerNames = finalCandidateList,
430 thinList += [ BPHY24_Thin_VtxTracks ]
433 BPHY24_Thin_VtxTracks_LRT = CompFactory.DerivationFramework.Thin_vtxTrk( name =
"BPHY24_Thin_VtxTracks_LRT",
434 StreamName = streamName,
435 TrackParticleContainerName =
"InDetLargeD0TrackParticles",
436 VertexContainerNames = finalCandidateList,
439 thinList += [ BPHY24_Thin_VtxTracks_LRT ]
442 BPHY24_Thin_VtxTracks_GSF = CompFactory.DerivationFramework.Thin_vtxTrk( name =
"BPHY24_Thin_VtxTracks_GSF",
443 StreamName = streamName,
444 TrackParticleContainerName =
"GSFTrackParticles",
445 VertexContainerNames = finalCandidateList,
447 thinList += [ BPHY24_Thin_VtxTracks_GSF ]
450 BPHY24_Thin_Muons = CompFactory.DerivationFramework.MuonTrackParticleThinning( name =
"BPHY24_Thin_Muons",
452 StreamName = streamName,
453 InDetTrackParticlesKey =
"InDetTrackParticles" )
454 thinList += [ BPHY24_Thin_Muons ]
457 BPHY24_Thin_Egamma = CompFactory.DerivationFramework.EgammaTrackParticleThinning(
458 name =
"BPHY24_Thin_Egamma",
460 StreamName = streamName,
461 InDetTrackParticlesKey = mainIDInput)
462 thinList += [BPHY24_Thin_Egamma]
465 BPHY24_Thin_PV = CompFactory.DerivationFramework.BPhysPVThinningTool( name =
"BPHY24_Thin_PV",
466 CandidateCollections = finalCandidateList,
467 StreamName = streamName,
468 KeepPVTracks =
True )
469 thinList += [ BPHY24_Thin_PV ]
474 keepParticles = (
'abs(TruthParticles.pdgId) == 11 || '
475 'abs(TruthParticles.pdgId) == 13')
478 keepParticles += (
' || '
479 'abs(TruthParticles.pdgId) == 511 || '
480 'abs(TruthParticles.pdgId) == 513 || '
481 'abs(TruthParticles.pdgId) == 515')
484 BPHY24_Thin_TruthHadrons = CompFactory.DerivationFramework.GenericTruthThinning( name =
"BPHY24_Thin_TruthHadrons",
485 ParticleSelectionString = keepParticles,
486 PreserveDescendants =
True,
487 StreamName = streamName,
488 PreserveAncestors =
True)
489 thinList += [ BPHY24_Thin_TruthHadrons ]
492 BPHY24_Thin_TruthQuarks = CompFactory.DerivationFramework.GenericTruthThinning( name =
"BPHY24_Thin_TruthQuarks",
493 ParticleSelectionString = (
'abs(TruthParticles.pdgId) == 5 || '
494 'abs(TruthParticles.pdgId) == 12 || abs(TruthParticles.pdgId) == 14' ),
495 PreserveDescendants =
False,
496 StreamName = streamName,
497 PreserveAncestors =
False)
498 thinList += [ BPHY24_Thin_TruthQuarks ]
500 for t
in augsList + skimList + thinList: acc.addPublicTool(t)
501 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(
"BPHY24Kernel",
502 AugmentationTools = augsList,
505 SkimmingTools = skimList,
506 ThinningTools = thinList))
509 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
510 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
511 BPHY24SlimmingHelper =
SlimmingHelper(
"BPHY24SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
512 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
513 from AthenaConfiguration.Enums
import MetadataCategory
514 from DerivationFrameworkBPhys.commonBPHYMethodsCfg
import getDefaultAllVariables
522 BPHY24SlimmingHelper.SmartCollections = [
"Electrons",
"Muons",
"InDetTrackParticles",
"InDetLargeD0TrackParticles" ]
525 AllVariables += [
"InDetLargeD0TrackParticles"]
526 AllVariables += [
"CombinedMuonTrackParticles" ]
527 AllVariables += [
"ExtrapolatedMuonTrackParticles" ]
528 ExtraVariables += [
"Muons.etaLayer1Hits.etaLayer2Hits.etaLayer3Hits.etaLayer4Hits.phiLayer1Hits.phiLayer2Hits.phiLayer3Hits.phiLayer4Hits",
529 "Muons.numberOfTriggerEtaLayers.numberOfPhiLayers",
530 "InDetTrackParticles.numberOfTRTHits.numberOfTRTHighThresholdHits.vx.vy.vz",
531 "InDetLargeD0TrackParticles.numberOfTRTHits.numberOfTRTHighThresholdHits.vx.vy.vz",
532 "PrimaryVertices.chiSquared.covariance",
"Electrons.deltaEta1.DFCommonElectronsLHVeryLoosenod0",
533 "egammaClusters.calE.calEta.calPhi.e_sampl.eta_sampl.etaCalo.phiCalo.ETACALOFRAME.PHICALOFRAME",
534 "HLT_xAOD__ElectronContainer_egamma_ElectronsAuxDyn.charge" ]
539 BPHY24SlimmingHelper.IncludeMuonTriggerContent =
True
540 BPHY24SlimmingHelper.IncludeEgammaTriggerContent =
True
541 BPHY24SlimmingHelper.IncludeBPhysTriggerContent =
True
544 AllVariables += [
"PrimaryVertices" ]
545 print(
"BPHY24: List of refitted-PV output: ", outRePVList)
546 for i
in outRePVList:
547 StaticContent += [
"xAOD::VertexContainer#%s" % i ]
548 StaticContent += [
"xAOD::VertexAuxContainer#%sAux." % i ]
551 print(
"BPHY24: List of B-vertexing output: ", outVtxList)
553 StaticContent += [
"xAOD::VertexContainer#%s" % i ]
554 StaticContent += [
"xAOD::VertexAuxContainer#%sAux.-vxTrackAtVertex" % i ]
556 print(
"BPHY24: Full list of B-augmentation: ", StaticContent)
560 AllVariables += [
"TruthEvents",
563 "MuonTruthParticles" ]
564 AllVariables =
list(
set(AllVariables))
566 BPHY24SlimmingHelper.AllVariables = AllVariables
567 BPHY24SlimmingHelper.StaticContent = StaticContent
568 BPHY24SlimmingHelper.ExtraVariables = ExtraVariables
569 BPHY24ItemList = BPHY24SlimmingHelper.GetItemList()
570 acc.merge(
OutputStreamCfg(flags,
"DAOD_BPHY24", ItemList=BPHY24ItemList, AcceptAlgs=[
"BPHY24Kernel"]))
571 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_BPHY24", AcceptAlgs=[
"BPHY24Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))
572 acc.printConfig(withDetails=
True, summariseProps=
True, onlyComponents = [], printDefaults=
True, printComponentsOnly=
False)