10 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
11 from AthenaConfiguration.ComponentFactory
import CompFactory
12 from AthenaConfiguration.Enums
import MetadataCategory
16 """Configure the derivation framework driving algorithm (kernel) for HIGG1D1"""
20 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
24 from DerivationFrameworkHiggs.HIGG1D1CustomVertexConfig
import ZeeVertexRefitterCfg, DiPhotonVertexCfg
25 from DerivationFrameworkHiggs.HIGG1D1CustomJetsConfig
import HIGG1D1CustomJetsCfg, HIGG1D1CustomJetsCleaningCfg
36 seq = acc.getSequence(
'AthAlgSeq')
37 cleanSeqs = [acc.getSequence (
'EventCleanSeq'),
38 acc.getSequence (
'EventCleanLockSeq')]
39 seq.Members = [a
for a
in seq.Members
if a
not in cleanSeqs] + cleanSeqs
41 from DerivationFrameworkFlavourTag.FtagDerivationConfig
import FtagJetCollectionsCfg
42 acc.merge(
FtagJetCollectionsCfg(flags, [
'AntiKt4EMPFlowCustomVtxJets'], [
'HggPrimaryVertices'], trackAugmenterPrefix=
'btagIpHgg_'))
45 from DerivationFrameworkJetEtMiss.METCommonConfig
import METCustomVtxCfg
46 acc.merge(
METCustomVtxCfg(flags,
'HggPrimaryVertices',
'AntiKt4EMPFlowCustomVtx',
'CHSGCustomVtxParticleFlowObjects'))
49 from DerivationFrameworkInDet.InDetToolsConfig
import TrackParticleThinningCfg, MuonTrackParticleThinningCfg, TauTrackParticleThinningCfg, DiTauTrackParticleThinningCfg
50 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import GenericTruthThinningCfg
51 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import GenericObjectThinningCfg
57 truth_conditions = [
"((abs(TruthParticles.pdgId) >= 23) && (abs(TruthParticles.pdgId) <= 25))",
58 "((abs(TruthParticles.pdgId) >= 11) && (abs(TruthParticles.pdgId) <= 16))",
59 "((abs(TruthParticles.pdgId) == 6))",
60 "((abs(TruthParticles.pdgId) == 22) && (TruthParticles.pt > 1*GeV))",
61 "(abs(TruthParticles.pdgId) >= 1000000)",
62 "(TruthParticles.status == 1 && TruthParticles.barcode < 200000)"]
63 truth_expression = f
'({" || ".join(truth_conditions)})'
67 name =
"HIGG1D1GenericTruthThinningTool",
68 StreamName = kwargs[
'StreamName'],
69 ParticleSelectionString = truth_expression,
70 PreserveDescendants =
False,
71 PreserveGeneratorDescendants =
True,
72 PreserveAncestors =
True))
73 thinningTools.append(HIGG1D1GenericTruthThinningTool)
77 HIGG1D1_thinning_expression =
"InDetTrackParticles.DFCommonTightPrimary && \
78 abs(DFCommonInDetTrackZ0AtPV)*sin(InDetTrackParticles.theta) < 3.0*mm && \
79 InDetTrackParticles.pt > 10*GeV"
82 name =
"HIGG1D1TrackParticleThinningTool",
83 StreamName = kwargs[
'StreamName'],
84 SelectionString = HIGG1D1_thinning_expression,
85 InDetTrackParticlesKey =
"InDetTrackParticles"))
90 name =
"HIGG1D1MuonTPThinningTool",
91 StreamName = kwargs[
'StreamName'],
93 InDetTrackParticlesKey =
"InDetTrackParticles"))
98 name =
"HIGG1D1TauTPThinningTool",
99 StreamName = kwargs[
'StreamName'],
101 InDetTrackParticlesKey =
"InDetTrackParticles",
102 DoTauTracksThinning =
True,
103 TauTracksKey =
"TauTracks"))
108 name =
"HIGG1D1DiTauTPThinningTool",
109 StreamName = kwargs[
'StreamName'],
110 DiTauKey =
"DiTauJets",
111 InDetTrackParticlesKey =
"InDetTrackParticles"))
115 name =
"PHYSDiTauLowPtThinningTool",
116 StreamName = kwargs[
'StreamName'],
117 ContainerName =
"DiTauJetsLowPt",
118 SelectionString =
"DiTauJetsLowPt.nSubjets > 1"))
122 name =
"PHYSDiTauLowPtTPThinningTool",
123 StreamName = kwargs[
'StreamName'],
124 DiTauKey =
"DiTauJetsLowPt",
125 InDetTrackParticlesKey =
"InDetTrackParticles",
126 SelectionString =
"DiTauJetsLowPt.nSubjets > 1"))
130 from DerivationFrameworkHiggs.SkimmingToolHIGG1Config
import SkimmingToolHIGG1Cfg
133 SkipTriggerRequirement = (flags.Input.isMC
and float(flags.Beam.Energy) == 4000000.0)
or not flags.Reco.EnableTrigger
135 print(
"HIGG1D1.py SkipTriggerRequirement", SkipTriggerRequirement)
137 if not SkipTriggerRequirement:
138 if float(flags.Beam.Energy) == 4000000.0:
140 TriggerExp = [
"EF_g35_loose_g25_loose"]
141 if float(flags.Beam.Energy) == 6500000.0:
143 TriggerExp = [
"HLT_g35_medium_g25_medium",
144 "HLT_g35_medium_g25_medium_L12EM20VH",
145 "HLT_g35_medium_g25_medium_L12EM15VH",
146 "HLT_g35_loose_g25_loose",
147 "HLT_g35_loose_g25_loose_L12EM15VH",
152 "HLT_2g6_tight_icalotight_L1J50",
153 "HLT_2g6_tight_icalotight_L1J100",
154 "HLT_2g6_loose_L1J50",
155 "HLT_2g6_loose_L1J100",
157 "HLT_2g25_tight_L12EM20VH",
158 "HLT_2g25_loose_g15_loose",
160 "HLT_2g22_tight_L12EM15VHI",
161 "HLT_2g22_tight_icalovloose",
162 "HLT_2g22_tight_icalovloose_L12EM15VHI",
163 "HLT_2g22_tight_icalotight_L12EM15VHI",
165 "HLT_2g20_tight_icalovloose_L12EM15VHI",
166 "HLT_2g20_tight_icalotight_L12EM15VHI",
168 "HLT_2g20_loose_L12EM15",
169 "HLT_2g20_loose_g15_loose",
170 "HLT_2g50_loose_L12EM20VH"
172 if float(flags.Beam.Energy) == 6800000.0:
174 TriggerExp = [
"HLT_g35_medium_g25_medium_L12EM20VH",
175 "HLT_g35_medium_g25_medium_L12eEM24L",
176 "HLT_g140_loose_L1EM22VHI",
177 "HLT_g140_loose_L1eEM26M"
178 "HLT_g120_loose_L1EM22VHI",
179 "HLT_g120_loose_L1eEM26M",
180 "HLT_2g9_loose_25dphiAA_invmAA80_L1DPHI-M70-2eEM9",
181 "HLT_2g9_loose_25dphiAA_invmAA80_L12EM7",
182 "HLT_2g50_loose_L12EM20VH",
183 "HLT_2g50_loose_L12eEM24L",
184 "HLT_2g25_loose_g15_loose_L12EM20VH",
185 "HLT_2g25_loose_g15_loose_L12eEM24L",
186 "HLT_2g22_tight_L12EM15VHI",
187 "HLT_2g22_tight_L12eEM18M",
188 "HLT_2g20_tight_icaloloose_L12EM15VHI",
189 "HLT_2g20_tight_icaloloose_L12eEM18M",
190 "HLT_2g20_loose_L12EM15VH",
191 "HLT_2g20_loose_L12eEM18L",
192 "HLT_2g15_tight_L1DPHI-M70-2eEM15M",
193 "HLT_2g15_tight_25dphiAA_L1DPHI-M70-2eEM15M",
194 "HLT_2g15_tight_25dphiAA_L12EM7",
195 "HLT_2g15_tight_25dphiAA_invmAA80_L12EM7",
196 "HLT_2g15_loose_25dphiAA_invmAA80_L1DPHI-M70-2eEM15M",
197 "HLT_2g15_loose_25dphiAA_invmAA80_L12EM7",
199 print(
"HIGG1D1.py Skimming Tool Triggers:",
",".
join(TriggerExp))
200 skimmingTool = acc.popToolsAndMerge(
SkimmingToolHIGG1Cfg(flags,RequireTrigger=
not SkipTriggerRequirement,Triggers=TriggerExp) )
201 acc.addPublicTool(skimmingTool)
205 thinningTools += [HIGG1D1TrackParticleThinningTool,
206 HIGG1D1MuonTPThinningTool,
207 HIGG1D1TauTPThinningTool,
208 HIGG1D1DiTauTPThinningTool,
209 HIGG1D1DiTauLowPtThinningTool,
210 HIGG1D1DiTauLowPtTPThinningTool]
212 augmentationTools = []
218 from DerivationFrameworkCalo.DerivationFrameworkCaloConfig
import (
219 CaloDecoratorKernelCfg, ClusterEnergyPerLayerDecoratorCfg)
223 cluster_sizes = (3,5), (5,7), (7,7)
224 for neta, nphi
in cluster_sizes:
225 cename =
"ClusterEnergyPerLayerDecorator_%sx%s" % (neta, nphi)
227 acc.addPublicTool(ClusterEnergyPerLayerDecorator)
228 augmentationTools.append(ClusterEnergyPerLayerDecorator)
234 from DerivationFrameworkHiggs.TruthCategoriesConfig
import TruthCategoriesDecoratorCfg
237 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
239 SkimmingTools = [skimmingTool],
240 ThinningTools = thinningTools,
241 AugmentationTools = augmentationTools))
249 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
250 HIGG1D1TriggerListsHelper = TriggerListsHelper(flags)
252 acc.merge(
HIGG1D1KernelCfg(flags, name=
"HIGG1D1Kernel", StreamName =
'StreamDAOD_HIGG1D1', TriggerListsHelper = HIGG1D1TriggerListsHelper))
258 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
259 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
260 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
262 HIGG1D1SlimmingHelper =
SlimmingHelper(
"HIGG1D1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
263 HIGG1D1SlimmingHelper.SmartCollections = [
"EventInfo",
268 "InDetTrackParticles",
270 "AntiKt4EMPFlowJets",
271 "BTagging_AntiKt4EMPFlow",
272 "BTagging_AntiKtVR30Rmax4Rmin02Track",
273 "MET_Baseline_AntiKt4EMTopo",
274 "MET_Baseline_AntiKt4EMPFlow",
278 "AntiKt10LCTopoTrimmedPtFrac5SmallR20Jets",
279 "AntiKtVR30Rmax4Rmin02PV0TrackJets"]
281 excludedVertexAuxData =
"-vxTrackAtVertex.-MvfFitInfo.-isInitialized.-VTAV"
283 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Tight_Vertices"]
284 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Tight_VerticesAux." + excludedVertexAuxData]
285 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Medium_Vertices"]
286 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Medium_VerticesAux." + excludedVertexAuxData]
287 StaticContent += [
"xAOD::VertexContainer#SoftBVrtClusterTool_Loose_Vertices"]
288 StaticContent += [
"xAOD::VertexAuxContainer#SoftBVrtClusterTool_Loose_VerticesAux." + excludedVertexAuxData]
290 HIGG1D1SlimmingHelper.StaticContent = StaticContent
293 HIGG1D1SlimmingHelper.IncludeTriggerNavigation =
False
294 HIGG1D1SlimmingHelper.IncludeJetTriggerContent =
False
295 HIGG1D1SlimmingHelper.IncludeMuonTriggerContent =
False
296 HIGG1D1SlimmingHelper.IncludeEGammaTriggerContent =
False
297 HIGG1D1SlimmingHelper.IncludeTauTriggerContent =
False
298 HIGG1D1SlimmingHelper.IncludeEtMissTriggerContent =
False
299 HIGG1D1SlimmingHelper.IncludeBJetTriggerContent =
False
300 HIGG1D1SlimmingHelper.IncludeBPhysTriggerContent =
False
301 HIGG1D1SlimmingHelper.IncludeMinBiasTriggerContent =
False
305 HIGG1D1SlimmingHelper.AppendToDictionary = {
306 'TruthEvents':
'xAOD::TruthEventContainer',
307 'TruthEventsAux':
'xAOD::TruthEventAuxContainer',
308 'MET_Truth':
'xAOD::MissingETContainer',
309 'MET_TruthAux':
'xAOD::MissingETAuxContainer',
310 'TruthElectrons':
'xAOD::TruthParticleContainer',
311 'TruthElectronsAux':
'xAOD::TruthParticleAuxContainer',
312 'TruthMuons':
'xAOD::TruthParticleContainer',
313 'TruthMuonsAux':
'xAOD::TruthParticleAuxContainer',
314 'TruthPhotons':
'xAOD::TruthParticleContainer',
315 'TruthPhotonsAux':
'xAOD::TruthParticleAuxContainer',
316 'TruthTaus':
'xAOD::TruthParticleContainer',
317 'TruthTausAux':
'xAOD::TruthParticleAuxContainer',
318 'TruthNeutrinos':
'xAOD::TruthParticleContainer',
319 'TruthNeutrinosAux':
'xAOD::TruthParticleAuxContainer',
320 'TruthBSM':
'xAOD::TruthParticleContainer',
321 'TruthBSMAux':
'xAOD::TruthParticleAuxContainer',
322 'TruthBoson':
'xAOD::TruthParticleContainer',
323 'TruthBosonAux':
'xAOD::TruthParticleAuxContainer',
324 'TruthTop':
'xAOD::TruthParticleContainer',
325 'TruthTopAux':
'xAOD::TruthParticleAuxContainer',
326 'TruthForwardProtons':
'xAOD::TruthParticleContainer',
327 'TruthForwardProtonsAux':
'xAOD::TruthParticleAuxContainer',
328 'BornLeptons':
'xAOD::TruthParticleContainer',
329 'BornLeptonsAux':
'xAOD::TruthParticleAuxContainer',
330 'TruthBosonsWithDecayParticles':
'xAOD::TruthParticleContainer',
331 'TruthBosonsWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
332 'TruthBosonsWithDecayVertices':
'xAOD::TruthVertexContainer',
333 'TruthBosonsWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
334 'TruthBSMWithDecayParticles':
'xAOD::TruthParticleContainer',
335 'TruthBSMWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
336 'TruthBSMWithDecayVertices':
'xAOD::TruthVertexContainer',
337 'TruthBSMWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
338 'TruthHFWithDecayParticles':
'xAOD::TruthParticleContainer',
339 'TruthHFWithDecayParticlesAux':
'xAOD::TruthParticleAuxContainer',
340 'TruthHFWithDecayVertices':
'xAOD::TruthVertexContainer',
341 'TruthHFWithDecayVerticesAux':
'xAOD::TruthVertexAuxContainer',
342 'TruthCharm':
'xAOD::TruthParticleContainer',
343 'TruthCharmAux':
'xAOD::TruthParticleAuxContainer',
344 'TruthPrimaryVertices':
'xAOD::TruthVertexContainer',
345 'TruthPrimaryVerticesAux':
'xAOD::TruthVertexAuxContainer'
348 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
350 HIGG1D1SlimmingHelper.AllVariables += [
"TruthHFWithDecayParticles",
351 "TruthHFWithDecayVertices",
353 "TruthPileupParticles",
354 "InTimeAntiKt4TruthJets",
355 "OutOfTimeAntiKt4TruthJets",
356 "AntiKt4TruthDressedWZJets",
357 "AntiKt4TruthWZJets",
359 "TruthPrimaryVertices",
363 HIGG1D1SlimmingHelper.ExtraVariables += [
"Electrons.TruthLink",
366 "AntiKt4EMTopoJets.DFCommonJets_QGTagger_truthjet_nCharged.DFCommonJets_QGTagger_truthjet_pt.DFCommonJets_QGTagger_truthjet_eta.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1.ConeExclBHadronsFinal.ConeExclCHadronsFinal.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt",
367 "AntiKt4EMPFlowJets.DFCommonJets_QGTagger_truthjet_nCharged.DFCommonJets_QGTagger_truthjet_pt.DFCommonJets_QGTagger_truthjet_eta.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1.ConeExclBHadronsFinal.ConeExclCHadronsFinal.GhostBHadronsFinal.GhostCHadronsFinal.GhostBHadronsFinalCount.GhostBHadronsFinalPt.GhostCHadronsFinalCount.GhostCHadronsFinalPt",
368 "TruthPrimaryVertices.t.x.y.z",
369 "EventInfo.DFCommonJetsCustomVtx_eventClean_LooseBad.DFCommonJetsCustomVtx_eventClean_TightBad.hardScatterVertexLink.timeStampNSOffset",
370 "TauJets.dRmax.etOverPtLeadTrk"]
371 if flags.Reco.EnableTrigger:
372 HIGG1D1SlimmingHelper.ExtraVariables += [
373 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET.ex.ey",
374 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht.ex.ey"
378 HIGG1D1SlimmingHelper.AppendToDictionary.update({
379 "AntiKt4EMPFlowCustomVtxJets":
"xAOD::JetContainer",
380 "AntiKt4EMPFlowCustomVtxJetsAux":
"xAOD::JetAuxContainer",
381 "METAssoc_AntiKt4EMPFlowCustomVtx":
"xAOD::MissingETAssociationMap",
382 "METAssoc_AntiKt4EMPFlowCustomVtxAux":
"xAOD::MissingETAuxAssociationMap",
383 "MET_Core_AntiKt4EMPFlowCustomVtx":
"xAOD::MissingETContainer",
384 "MET_Core_AntiKt4EMPFlowCustomVtxAux":
"xAOD::MissingETAuxContainer",
385 "HggPrimaryVertices":
"xAOD::VertexContainer",
386 "HggPrimaryVerticesAux":
"xAOD::ShallowAuxContainer",
387 "Kt4EMPFlowCustomVtxEventShape":
"xAOD::EventShape",
388 "Kt4EMPFlowCustomVtxEventShapeAux":
"xAOD::EventShapeAuxInfo",
389 "Kt4EMPFlowEventShape":
"xAOD::EventShape",
390 "Kt4EMPFlowEventShapeAux":
"xAOD::EventShapeAuxInfo",
391 "ZeeRefittedPrimaryVertices":
"xAOD::VertexContainer",
392 "ZeeRefittedPrimaryVerticesAux":
"xAOD::VertexAuxContainer",
393 "AFPSiHitContainer":
"xAOD::AFPSiHitContainer",
394 "AFPSiHitContainerAux":
"xAOD::AFPSiHitAuxContainer",
395 "AFPToFHitContainer":
"xAOD::AFPToFHitContainer",
396 "AFPToFHitContainerAux":
"xAOD::AFPToFHitAuxContainer",
397 "AFPVertexContainer":
"xAOD::AFPVertexContainer",
398 "AFPVertexContainerAux":
"xAOD::AFPVertexAuxContainer",
399 "AFPToFTrackContainer":
"xAOD::AFPToFTrackContainer",
400 "AFPToFTrackContainerAux":
"xAOD::AFPToFTrackAuxContainer",
401 "BTagging_AntiKt4EMPFlowCustomVtx":
"xAOD::BTaggingContainer",
402 "BTagging_AntiKt4EMPFlowCustomVtxAux":
"xAOD::BTaggingAuxContainer"
405 HIGG1D1SlimmingHelper.AllVariables += [
406 "HggPrimaryVertices",
407 "ZeeRefittedPrimaryVertices",
408 "AntiKt4EMPFlowCustomVtxJets",
409 "Kt4EMPFlowCustomVtxEventShape",
410 "Kt4EMPFlowEventShape",
411 "METAssoc_AntiKt4EMPFlowCustomVtx",
412 "MET_Core_AntiKt4EMPFlowCustomVtx"
416 HIGG1D1SlimmingHelper.AllVariables += [
"AFPSiHitContainer",
417 "AFPToFHitContainer",
418 "AFPVertexContainer",
419 "AFPToFTrackContainer"]
421 from DerivationFrameworkFlavourTag.BTaggingContent
import BTaggingStandardContent,BTaggingXbbContent
424 HIGG1D1SlimmingHelper.ExtraVariables +=
BTaggingXbbContent(
"AntiKt4EMPFlowCustomVtxJets", flags)
425 HIGG1D1SlimmingHelper.ExtraVariables +=
BTaggingXbbContent(
"AntiKt4EMPFlowJets", flags)
428 from DerivationFrameworkEGamma.PhotonsCPDetailedContent
import PhotonsCPDetailedContent
429 HIGG1D1SlimmingHelper.ExtraVariables += PhotonsCPDetailedContent
433 from DerivationFrameworkCalo.DerivationFrameworkCaloConfig
import (
434 getGainDecorations, getClusterEnergyPerLayerDecorations )
436 HIGG1D1SlimmingHelper.ExtraVariables.extend(gainDecorations)
438 acc,
'HIGG1D1Kernel' )
439 HIGG1D1SlimmingHelper.ExtraVariables.extend(clusterEnergyDecorations)
442 HIGG1D1SlimmingHelper.ExtraVariables.extend([
"EventInfo.HTXS_prodMode",
443 "EventInfo.HTXS_errorCode",
444 "EventInfo.HTXS_Stage0_Category",
445 "EventInfo.HTXS_Stage1_Category_pTjet25",
446 "EventInfo.HTXS_Stage1_Category_pTjet30",
447 "EventInfo.HTXS_Stage1_FineIndex_pTjet30",
448 "EventInfo.HTXS_Stage1_FineIndex_pTjet25",
449 "EventInfo.HTXS_Stage1_2_Category_pTjet25",
450 "EventInfo.HTXS_Stage1_2_Category_pTjet30",
451 "EventInfo.HTXS_Stage1_2_FineIndex_pTjet30",
452 "EventInfo.HTXS_Stage1_2_FineIndex_pTjet25",
453 "EventInfo.HTXS_Stage1_2_Fine_Category_pTjet25",
454 "EventInfo.HTXS_Stage1_2_Fine_Category_pTjet30",
455 "EventInfo.HTXS_Stage1_2_Fine_FineIndex_pTjet30",
456 "EventInfo.HTXS_Stage1_2_Fine_FineIndex_pTjet25",
457 "EventInfo.HTXS_Njets_pTjet25",
458 "EventInfo.HTXS_Njets_pTjet30",
459 "EventInfo.HTXS_isZ2vvDecay",
460 "EventInfo.HTXS_Higgs_eta",
461 "EventInfo.HTXS_Higgs_m",
462 "EventInfo.HTXS_Higgs_phi",
463 "EventInfo.HTXS_Higgs_pt",
464 "EventInfo.HTXS_V_jets30_eta",
465 "EventInfo.HTXS_V_jets30_m",
466 "EventInfo.HTXS_V_jets30_phi",
467 "EventInfo.HTXS_V_jets30_pt",
468 "EventInfo.HTXS_V_pt"])
471 HIGG1D1SlimmingHelper.ExtraVariables.extend([
"Electrons.maxEcell_time",
472 "Electrons.maxEcell_energy",
473 "Electrons.maxEcell_gain",
474 "Electrons.maxEcell_onlId",
475 "Photons.maxEcell_time",
476 "Photons.maxEcell_energy",
477 "Photons.maxEcell_gain",
478 "Photons.maxEcell_onlId",
481 HIGG1D1SlimmingHelper.ExtraVariables.extend([
"InDetTrackParticles.TTVA_AMVFVertices.TTVA_AMVFWeights.TTVA_AMVFVertices_forReco.TTVA_AMVFWeights_forReco.TTVA_AMVFVertices_forHiggs.TTVA_AMVFWeights_forHiggs.eProbabilityHT.numberOfTRTHits.numberOfTRTOutliers"])
484 HIGG1D1SlimmingHelper.IncludeTriggerNavigation =
False
485 HIGG1D1SlimmingHelper.IncludeJetTriggerContent =
False
486 HIGG1D1SlimmingHelper.IncludeMuonTriggerContent =
False
487 HIGG1D1SlimmingHelper.IncludeEGammaTriggerContent =
False
488 HIGG1D1SlimmingHelper.IncludeTauTriggerContent =
False
489 HIGG1D1SlimmingHelper.IncludeEtMissTriggerContent =
False
490 HIGG1D1SlimmingHelper.IncludeBJetTriggerContent =
False
491 HIGG1D1SlimmingHelper.IncludeBPhysTriggerContent =
False
492 HIGG1D1SlimmingHelper.IncludeMinBiasTriggerContent =
False
496 if flags.Trigger.EDMVersion == 2:
497 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import AddRun2TriggerMatchingToSlimmingHelper
499 OutputContainerPrefix =
"TrigMatch_",
500 TriggerList = HIGG1D1TriggerListsHelper.Run2TriggerNamesTau)
502 OutputContainerPrefix =
"TrigMatch_",
503 TriggerList = HIGG1D1TriggerListsHelper.Run2TriggerNamesNoTau)
505 if flags.Trigger.EDMVersion == 3
or (flags.Trigger.EDMVersion == 2
and flags.Trigger.doEDMVersionConversion):
506 from TrigNavSlimmingMT.TrigNavSlimmingMTConfig
import AddRun3TrigNavSlimmingCollectionsToSlimmingHelper
510 HIGG1D1ItemList = HIGG1D1SlimmingHelper.GetItemList()
511 acc.merge(
OutputStreamCfg(flags,
"DAOD_HIGG1D1", ItemList=HIGG1D1ItemList, AcceptAlgs=[
"HIGG1D1Kernel"]))
512 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_HIGG1D1", AcceptAlgs=[
"HIGG1D1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData, MetadataCategory.TruthMetaData]))