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 (AddDiTauLowPtCfg, AddMuonRemovalTauAODReRecoAlgCfg, AddTauIDDecorationCfg, AddDiTauChargeDecoratorCfg, AddDiTauIDDecorationCfg)
68 from DerivationFrameworkJetEtMiss.METCommonConfig
import METCommonCfg
72 from eflowRec.PFCfg
import PFGlobalFlowElementLinkingCfg
82 if flags.Tau.TauEleRM_isAvailable:
87 if flags.Reco.EnableBTagging:
88 from BTagging.FlavorTaggingConfig
import FlavorTaggingCfg
90 acc.merge(
FlavorTaggingCfg(flags,
"AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets"))
95 if flags.Reco.EnableTrigger
or flags.Trigger.triggerConfig ==
'INFILE':
96 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2Cfg
97 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2ToRun3Cfg
98 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun3Cfg
100 triggerListsHelper = kwargs[
'TriggerListsHelper']
101 if flags.Trigger.EDMVersion == 2:
109 name =
"PhysCommonTrigMatchNoTau",
110 OutputContainerPrefix =
"TrigMatch_",
111 ChainNames = triggerListsHelper.Run2TriggerNamesNoTau))
114 name =
"PhysCommonTrigMatchTau",
115 OutputContainerPrefix =
"TrigMatch_",
116 ChainNames = triggerListsHelper.Run2TriggerNamesTau,
123 TriggerList = triggerListsHelper.Run2TriggerNamesNoTau +
124 triggerListsHelper.Run2TriggerNamesTau))
125 if flags.Trigger.EDMVersion == 3:
128 flags, TriggerList = triggerListsHelper.Run3TriggerNames))