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 TruthClassificationAugmentationsCfg)
26 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig
import DFCommonTruthCharmToolCfg
29 name =
"PhysCommonTruthCharmTool"))
30 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
31 acc.addEventAlgo(CommonAugmentation(
"PhysCommonTruthCharmKernel",AugmentationTools=[PhysCommonTruthCharmTool]))
33 acc.merge(AddStandardTruthContentsCfg
35 navInputCollections = [
"TruthElectrons",
45 "TruthHFWithDecayParticles"]))
51 from DerivationFrameworkInDet.InDetCommonConfig
import InDetCommonCfg
52 from DerivationFrameworkMuons.MuonsCommonConfig
import MuonsCommonCfg
53 from DerivationFrameworkEGamma.EGammaCommonConfig
import EGammaCommonCfg
57 DoVertexFinding = flags.Tracking.doVertexFinding,
58 AddPseudoTracks = flags.Tracking.doPseudoTracking,
60 DoR3LargeD0 = flags.Tracking.doLargeD0,
61 StoreSeparateLargeD0Container = flags.Tracking.storeSeparateLargeD0Container,
66 from DerivationFrameworkJetEtMiss.JetCommonConfig
import JetCommonCfg
67 from DerivationFrameworkTau.TauCommonConfig
import (AddMuonRemovalTauAODReRecoAlgCfg, AddTauIDDecorationCfg)
68 from DerivationFrameworkTau.DiTauCommonConfig
import (AddDiTauLowPtCfg, AddDiTauChargeDecoratorCfg, AddDiTauIDDecorationCfg)
69 from DerivationFrameworkJetEtMiss.METCommonConfig
import METCommonCfg
73 from eflowRec.PFCfg
import PFGlobalFlowElementLinkingCfg
83 if flags.Tau.TauEleRM_isAvailable:
88 if flags.Reco.EnableBTagging:
89 from BTagging.FlavorTaggingConfig
import FlavorTaggingCfg
91 acc.merge(
FlavorTaggingCfg(flags,
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets"))
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))