13 """Configure the common augmentation"""
17 if ConfigFlags.Input.isMC:
18 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import (
20 AddHFAndDownstreamParticlesCfg,
21 AddMiniTruthCollectionLinksCfg,
23 AddTruthCollectionNavigationDecorationsCfg)
24 from DerivationFrameworkTLA.TLACommonConfigFunctions
import AddStandardTLATruthContentsCfg
25 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthCollectionMakerCfg
28 name =
"TLACommonTruthCharmTool",
29 NewCollectionName =
"TruthCharm",
30 KeepNavigationInfo =
False,
31 ParticleSelectionString =
"(abs(TruthParticles.pdgId) == 4)",
33 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
34 acc.addEventAlgo(CommonAugmentation(
"TLACommonTruthCharmKernel",AugmentationTools=[TLACommonTruthCharmTool]))
39 TruthCollections=[
"TruthElectrons",
49 "TruthHFWithDecayParticles"],
56 from DerivationFrameworkMuons.MuonsCommonConfig
import MuonsCommonCfg
60 from DerivationFrameworkInDet.InDetCommonConfig
import InDetCommonCfg
63 DoVertexFinding = ConfigFlags.Tracking.doVertexFinding,
64 AddPseudoTracks = ConfigFlags.Tracking.doPseudoTracking
and ConfigFlags.GeoModel.Run<=LHCPeriod.Run3,
66 DoR3LargeD0 = ConfigFlags.Tracking.doLargeD0,
67 StoreSeparateLargeD0Container = ConfigFlags.Tracking.storeSeparateLargeD0Container,
71 from DerivationFrameworkEGamma.EGammaCommonConfig
import EGammaCommonCfg
75 from DerivationFrameworkTLA.TLACommonConfigFunctions
import TLAJetCommonCfg
76 from DerivationFrameworkFlavourTag.FtagDerivationConfig
import FtagJetCollectionsCfg, HLTJetFTagDecorationCfg
78 if ConfigFlags.Input.isMC
and ConfigFlags.Trigger.EDMVersion == 3:
81 FTagJetColl = [
'AntiKt4EMPFlowJets']
82 if ConfigFlags.GeoModel.Run >= LHCPeriod.Run4:
83 FTagJetColl.append(
'AntiKt4EMTopoJets')
87 if ConfigFlags.Reco.EnableTrigger
or ConfigFlags.Trigger.triggerConfig ==
'INFILE':
88 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2Cfg
89 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun3Cfg
91 triggerListsHelper = kwargs[
'TriggerListsHelper']
92 if ConfigFlags.Trigger.EDMVersion == 2:
94 name =
"TLACommonTrigMatchNoTau",
95 OutputContainerPrefix =
"TrigMatch_",
96 ChainNames = triggerListsHelper.Run2TriggerNamesNoTau))
98 name =
"TLACommonTrigMatchTau",
99 OutputContainerPrefix =
"TrigMatch_",
100 ChainNames = triggerListsHelper.Run2TriggerNamesTau,
102 if ConfigFlags.Trigger.EDMVersion == 3: