15 """Configure the common augmentation"""
20 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import (
21 AddStandardTruthContentsCfg,
22 AddHFAndDownstreamParticlesCfg,
23 AddMiniTruthCollectionLinksCfg,
25 AddTruthCollectionNavigationDecorationsCfg)
26 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthCollectionMakerCfg
29 name =
"PhysCommonTruthCharmTool",
30 NewCollectionName =
"TruthCharm",
31 KeepNavigationInfo =
False,
32 ParticleSelectionString =
"(abs(TruthParticles.pdgId) == 4)",
34 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
35 acc.addEventAlgo(CommonAugmentation(
"PhysCommonTruthCharmKernel",AugmentationTools=[PhysCommonTruthCharmTool]))
40 TruthCollections=[
"TruthElectrons",
50 "TruthHFWithDecayParticles"],
57 from DerivationFrameworkInDet.InDetCommonConfig
import InDetCommonCfg
58 from DerivationFrameworkMuons.MuonsCommonConfig
import MuonsCommonCfg
59 from DerivationFrameworkEGamma.EGammaCommonConfig
import EGammaCommonCfg
63 DoVertexFinding = flags.Tracking.doVertexFinding,
64 AddPseudoTracks = flags.Tracking.doPseudoTracking,
66 DoR3LargeD0 = flags.Tracking.doLargeD0,
67 StoreSeparateLargeD0Container = flags.Tracking.storeSeparateLargeD0Container,
72 from DerivationFrameworkJetEtMiss.JetCommonConfig
import JetCommonCfg
73 from DerivationFrameworkFlavourTag.FtagDerivationConfig
import FtagJetCollectionsCfg
74 from DerivationFrameworkTau.TauCommonConfig
import (AddDiTauLowPtCfg, AddMuonRemovalTauAODReRecoAlgCfg, AddTauIDDecorationCfg)
75 from DerivationFrameworkJetEtMiss.METCommonConfig
import METCommonCfg
79 from eflowRec.PFCfg
import PFGlobalFlowElementLinkingCfg
87 if flags.Tau.TauEleRM_isAvailable:
89 FTagJetColl = [
'AntiKt4EMPFlowJets',
'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets']
90 if flags.GeoModel.Run >= LHCPeriod.Run4:
91 FTagJetColl.append(
'AntiKt4EMTopoJets')
96 if flags.Reco.EnableTrigger
or flags.Trigger.triggerConfig ==
'INFILE':
97 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2Cfg
98 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2ToRun3Cfg
99 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun3Cfg
101 triggerListsHelper = kwargs[
'TriggerListsHelper']
102 if flags.Trigger.EDMVersion == 2:
110 name =
"PhysCommonTrigMatchNoTau",
111 OutputContainerPrefix =
"TrigMatch_",
112 ChainNames = triggerListsHelper.Run2TriggerNamesNoTau))
115 name =
"PhysCommonTrigMatchTau",
116 OutputContainerPrefix =
"TrigMatch_",
117 ChainNames = triggerListsHelper.Run2TriggerNamesTau,
124 TriggerList = triggerListsHelper.Run2TriggerNamesNoTau +
125 triggerListsHelper.Run2TriggerNamesTau))
126 if flags.Trigger.EDMVersion == 3:
129 flags, TriggerList = triggerListsHelper.Run3TriggerNames))