33 """Configure the common augmentation"""
38 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import (
39 AddStandardTruthContentsCfg,
40 AddHFAndDownstreamParticlesCfg,
41 AddMiniTruthCollectionLinksCfg,
43 AddTruthCollectionNavigationDecorationsCfg)
44 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthCollectionMakerCfg
47 name =
"NCBCommonTruthCharmTool",
48 NewCollectionName =
"TruthCharm",
49 KeepNavigationInfo =
False,
50 ParticleSelectionString =
"(abs(TruthParticles.pdgId) == 4)",
52 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
53 acc.addEventAlgo(CommonAugmentation(
"NCBCommonTruthCharmKernel",AugmentationTools=[NCBCommonTruthCharmTool]))
58 TruthCollections=[
"TruthElectrons",
68 "TruthHFWithDecayParticles"],
75 from DerivationFrameworkMuons.MuonsCommonConfig
import MuonsCommonCfg
79 from DerivationFrameworkInDet.InDetCommonConfig
import InDetCommonCfg
81 DoVertexFinding = flags.Tracking.doVertexFinding,
82 AddPseudoTracks = flags.Tracking.doPseudoTracking,
84 DoR3LargeD0 = flags.Tracking.doLargeD0,
85 StoreSeparateLargeD0Container = flags.Tracking.storeSeparateLargeD0Container,
88 from DerivationFrameworkJetEtMiss.METCommonConfig
import METCommonCfg
93 if flags.Reco.EnableTrigger
or flags.Trigger.triggerConfig ==
'INFILE':
94 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2Cfg
95 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2ToRun3Cfg
96 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun3Cfg
98 triggerListsHelper = kwargs[
'TriggerListsHelper']
99 if flags.Trigger.EDMVersion == 2:
107 name =
"PhysCommonTrigMatchNoTau",
108 OutputContainerPrefix =
"TrigMatch_",
109 ChainNames = triggerListsHelper.Run2TriggerNamesNoTau))
112 name =
"PhysCommonTrigMatchTau",
113 OutputContainerPrefix =
"TrigMatch_",
114 ChainNames = triggerListsHelper.Run2TriggerNamesTau,
121 TriggerList = triggerListsHelper.Run2TriggerNamesNoTau +
122 triggerListsHelper.Run2TriggerNamesTau))
123 if flags.Trigger.EDMVersion == 3:
126 flags, TriggerList = triggerListsHelper.Run3TriggerNames))