3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
14 from DerivationFrameworkJetEtMiss.PFlowCommonConfig
import PFlowCommonCfg
17 acc.merge(
METTriggerDerivationKernelCfg(ConfigFlags, name, StreamName=StreamName, skimmingTools=skimmingTools, trackThreshold=1*GeV, trackSel=
"Loose"))
29 acc.merge(
METTriggerDerivationKernelCfg(ConfigFlags, name, StreamName=StreamName, skimmingTools=skimmingTools, trackThreshold=10*GeV, trackSel=
None))
38 from DerivationFrameworkInDet.InDetToolsConfig
import TrackParticleThinningCfg, MuonTrackParticleThinningCfg, EgammaTrackParticleThinningCfg, TauTrackParticleThinningCfg
40 thinning_expression =
"InDetTrackParticles.pt > {0}".
format(kwargs[
'trackThreshold'])
41 if kwargs[
'trackSel']
is not None:
42 thinning_expression =
"("+thinning_expression+
" || (InDetTrackParticles.DFMETTrig"+kwargs[
'trackSel']+
"))"
46 name = kwargs[
'StreamName']+
"TrackParticleThinningTool",
47 StreamName = kwargs[
'StreamName'],
48 SelectionString = thinning_expression,
49 InDetTrackParticlesKey =
"InDetTrackParticles"))
53 name = kwargs[
'StreamName']+
"MuonTPThinningTool",
54 StreamName = kwargs[
'StreamName'],
56 InDetTrackParticlesKey =
"InDetTrackParticles"))
60 name = kwargs[
'StreamName']+
"ElectronTPThinningTool",
61 StreamName = kwargs[
'StreamName'],
63 InDetTrackParticlesKey =
"InDetTrackParticles"))
67 name = kwargs[
'StreamName']+
"PhotonTPThinningTool",
68 StreamName = kwargs[
'StreamName'],
70 InDetTrackParticlesKey =
"InDetTrackParticles",
71 GSFConversionVerticesKey =
"GSFConversionVertices"))
75 name = kwargs[
'StreamName']+
"TauTPThinningTool",
76 StreamName = kwargs[
'StreamName'],
78 InDetTrackParticlesKey =
"InDetTrackParticles",
79 DoTauTracksThinning =
True,
80 TauTracksKey =
"TauTracks"))
82 thinningTools = [trackParticleThinningTool,
84 electronTPThinningTool,
88 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
90 ThinningTools = thinningTools,
91 SkimmingTools = kwargs[
'skimmingTools']))
100 from DerivationFrameworkJetEtMiss.JetToolConfig
import TVAAugmentationToolCfg
103 augTools = [tva_tool]
105 if kwargs[
"trackSel"]
is not None:
106 from DerivationFrameworkInDet.InDetToolsConfig
import InDetTrackSelectionToolWrapperCfg
109 name =
"DFCommonTrackSelection"+kwargs[
'trackSel'],
110 CutLevel = kwargs[
'trackSel'],
111 DecorationName =
"DFMETTrig"+kwargs[
'trackSel']))
113 augTools.append(DFCommonTrackSelection)
115 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(kwargs[
'StreamName']+
"CommonKernel", AugmentationTools = augTools))
122 slimmingHelper.SmartCollections = [
"Electrons",
"Muons",
"Photons",
"TauJets",
"PrimaryVertices",
"InDetTrackParticles",
"EventInfo",
123 "AntiKt4EMTopoJets",
"AntiKt4EMPFlowJets",
"BTagging_AntiKt4EMPFlow",
124 "MET_Baseline_AntiKt4EMTopo",
"MET_Baseline_AntiKt4EMPFlow"]
127 slimmingHelper.AllVariables = [
"HLT_xAOD__TrigMissingETContainer_TrigEFMissingET",
128 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_mht",
129 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_topocl_PS",
130 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_topocl_PUC",
131 "HLT_xAOD__TrigMissingETContainer_TrigEFMissingET_topocl",
135 "MET_Core_AntiKt4EMTopo",
"MET_Core_AntiKt4EMPFlow",
136 "METAssoc_AntiKt4EMTopo",
"METAssoc_AntiKt4EMPFlow"]
138 slimmingHelper.ExtraVariables = [
"AntiKt4EMTopoJets.Timing",
"AntiKt4EMPFlowJets.Timing",
139 "InDetTrackParticles.DFMETTrigNominalTVA"]
142 slimmingHelper.AllVariables += [
"HLT_xAOD__MuonContainer_MuonEFInfo",
143 "CaloCalTopoClusters",
144 "GlobalChargedParticleFlowObjects",
145 "GlobalNeutralParticleFlowObjects",
146 "CHSGChargedParticleFlowObjects",
147 "CHSGNeutralParticleFlowObjects",
148 "Kt4EMPFlowEventShape"]
150 slimmingHelper.ExtraVariables += [
"InDetTrackParticles.DFMETTrigLoose"]
152 slimmingHelper.AppendToDictionary.update({
'GlobalChargedParticleFlowObjects':
'xAOD::FlowElementContainer',
'GlobalChargedParticleFlowObjectsAux':
'xAOD::FlowElementAuxContainer',
153 'GlobalNeutralParticleFlowObjects':
'xAOD::FlowElementContainer',
'GlobalNeutralParticleFlowObjectsAux':
'xAOD::FlowElementAuxContainer',
154 'CHSGChargedParticleFlowObjects':
'xAOD::FlowElementContainer',
'CHSGChargedParticleFlowObjectsAux':
'xAOD::ShallowAuxContainer',
155 'CHSGNeutralParticleFlowObjects':
'xAOD::FlowElementContainer',
'CHSGNeutralParticleFlowObjectsAux':
'xAOD::ShallowAuxContainer'})