8 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 from AthenaConfiguration.ComponentFactory
import CompFactory
10 from AthenaCommon.Logging
import logging
11 msg = logging.getLogger(
'PHYSCommonConfig')
14 """Configure the common augmentation"""
19 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import (
20 AddStandardTruthContentsCfg,
21 AddHFAndDownstreamParticlesCfg,
22 AddMiniTruthCollectionLinksCfg,
24 AddTruthCollectionNavigationDecorationsCfg)
25 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import TruthCollectionMakerCfg
28 name =
"PhysCommonTruthCharmTool",
29 NewCollectionName =
"TruthCharm",
30 KeepNavigationInfo =
False,
31 ParticleSelectionString =
"(abs(TruthParticles.pdgId) == 4)",
33 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
34 acc.addEventAlgo(CommonAugmentation(
"PhysCommonTruthCharmKernel",AugmentationTools=[PhysCommonTruthCharmTool]))
39 TruthCollections=[
"TruthElectrons",
49 "TruthHFWithDecayParticles"],
56 from DerivationFrameworkInDet.InDetCommonConfig
import InDetCommonCfg
57 from DerivationFrameworkMuons.MuonsCommonConfig
import MuonsCommonCfg
58 from DerivationFrameworkEGamma.EGammaCommonConfig
import EGammaCommonCfg
62 DoVertexFinding = flags.Tracking.doVertexFinding,
63 AddPseudoTracks = flags.Tracking.doPseudoTracking,
65 DoR3LargeD0 = flags.Tracking.doLargeD0,
66 StoreSeparateLargeD0Container = flags.Tracking.storeSeparateLargeD0Container,
71 from DerivationFrameworkJetEtMiss.JetCommonConfig
import JetCommonCfg
72 from DerivationFrameworkTau.TauCommonConfig
import (AddDiTauLowPtCfg, AddMuonRemovalTauAODReRecoAlgCfg, AddTauIDDecorationCfg)
73 from DerivationFrameworkJetEtMiss.METCommonConfig
import METCommonCfg
77 from eflowRec.PFCfg
import PFGlobalFlowElementLinkingCfg
85 if flags.Tau.TauEleRM_isAvailable:
87 if flags.Reco.EnableBTagging:
88 from BTagging.FlavorTaggingConfig
import FlavorTaggingCfg
89 from DerivationFrameworkFlavourTag.FtagDerivationConfig
import (
90 BTagLargeRDecoration, LegacyBTaggingCfg
94 if flags.BTagging.EnableLegacyBTagging:
100 if flags.Reco.EnableTrigger
or flags.Trigger.triggerConfig ==
'INFILE':
101 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2Cfg
102 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2ToRun3Cfg
103 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun3Cfg
105 triggerListsHelper = kwargs[
'TriggerListsHelper']
106 if flags.Trigger.EDMVersion == 2:
114 name =
"PhysCommonTrigMatchNoTau",
115 OutputContainerPrefix =
"TrigMatch_",
116 ChainNames = triggerListsHelper.Run2TriggerNamesNoTau))
119 name =
"PhysCommonTrigMatchTau",
120 OutputContainerPrefix =
"TrigMatch_",
121 ChainNames = triggerListsHelper.Run2TriggerNamesTau,
128 TriggerList = triggerListsHelper.Run2TriggerNamesNoTau +
129 triggerListsHelper.Run2TriggerNamesTau))
130 if flags.Trigger.EDMVersion == 3:
133 flags, TriggerList = triggerListsHelper.Run3TriggerNames))