8 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 from AthenaConfiguration.ComponentFactory
import CompFactory
10 from AthenaConfiguration.Enums
import LHCPeriod
11 from AthenaCommon.Logging
import logging
12 msg = logging.getLogger(
'PHYSCommonConfig')
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')
92 if flags.Reco.EnableBTagging:
97 if flags.Reco.EnableTrigger
or flags.Trigger.triggerConfig ==
'INFILE':
98 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2Cfg
99 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun2ToRun3Cfg
100 from DerivationFrameworkPhys.TriggerMatchingCommonConfig
import TriggerMatchingCommonRun3Cfg
102 triggerListsHelper = kwargs[
'TriggerListsHelper']
103 if flags.Trigger.EDMVersion == 2:
111 name =
"PhysCommonTrigMatchNoTau",
112 OutputContainerPrefix =
"TrigMatch_",
113 ChainNames = triggerListsHelper.Run2TriggerNamesNoTau))
116 name =
"PhysCommonTrigMatchTau",
117 OutputContainerPrefix =
"TrigMatch_",
118 ChainNames = triggerListsHelper.Run2TriggerNamesTau,
125 TriggerList = triggerListsHelper.Run2TriggerNamesNoTau +
126 triggerListsHelper.Run2TriggerNamesTau))
127 if flags.Trigger.EDMVersion == 3:
130 flags, TriggerList = triggerListsHelper.Run3TriggerNames))