6 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
7 from AthenaConfiguration.ComponentFactory
import CompFactory
8 from AthenaCommon.Logging
import logging
9 logJETM42 = logging.getLogger(
'JETM42')
13 """Configure the derivation framework driving algorithm (kernel) for JETM42"""
16 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
19 TriggerListsHelper = kwargs[
'TriggerListsHelper'],
23 'DiTauLowPtThinningToolName' :
"PHYSDiTauLowPtThinningTool",
26 from DerivationFrameworkPhys.PhysCommonThinningConfig
import PhysCommonThinningCfg
31 for key
in thinningToolsArgs:
32 thinningTools.append(acc.getPublicTool(thinningToolsArgs[key]))
35 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
39 from JetRecConfig.JetRecConfig
import JetRecCfg, getInputAlgs
40 from JetRecConfig.StandardJetConstits
import stdConstitDic
as cst, standardReco, stdInputExtDic
as inpext
41 from ROOT
import xAODType
47 from JetRecConfig.JetDefinition
import JetDefinition, JetInputConstitSeq, JetInputExternal
48 from JetRecConfig.StandardSmallRJets
import standardghosts, flavourghosts, truthmods, clustermods
50 inpext[
"TC422"] = JetInputExternal(
"CaloTopoClusters422", xAODType.CaloCluster, algoBuilder=
standardReco(
"CaloClusters"))
51 inpext[
"TopoTowers"] = JetInputExternal(
"CaloCalAllTopoTowers", xAODType.CaloCluster, algoBuilder=
standardReco(
"CaloClusters"))
52 cst[
"EMTopo422"] = JetInputConstitSeq(
"EMTopo422", xAODType.CaloCluster, [
"EM"],
53 "CaloTopoClusters422",
"EMTopoClusters422", jetinputtype=
"EMTopo",
55 cst[
"EMTopo422SK"] = JetInputConstitSeq(
"EMTopo422SK", xAODType.CaloCluster, [
"EM",
"SK"],
56 "CaloTopoClusters422",
"EMTopoClusters422SK", jetinputtype=
"EMTopo",
58 cst[
"TopoTower"] = JetInputConstitSeq(
"TopoTower", xAODType.CaloCluster, [
"EM"],
59 "CaloCalAllTopoTowers",
"TopoTowers", jetinputtype=
"TopoTower",
61 cst[
"TopoTowerSK"] = JetInputConstitSeq(
"TopoTowerSK", xAODType.CaloCluster, [
"EM",
"SK"],
62 "CaloCalAllTopoTowers",
"TopoTowersSK", jetinputtype=
"TopoTower",
69 AntiKt4EMTopo422 = JetDefinition(
"AntiKt",0.4,cst[
"EMTopo422"],
70 ghostdefs = standardghosts+[
"TrackLRT"]+flavourghosts,
71 modifiers = truthmods+clustermods+(
"Filter:15000",
"LArHVCorr",),
74 AntiKt4EMTopo422SK = JetDefinition(
"AntiKt",0.4,cst[
"EMTopo422SK"],
75 ghostdefs = standardghosts+[
"TrackLRT"]+flavourghosts,
76 modifiers = truthmods+clustermods+(
"Filter:15000",
"LArHVCorr",),
79 AntiKt4TopoTowers = JetDefinition(
"AntiKt",0.4,cst[
"TopoTower"],
80 ghostdefs = standardghosts+[
"TrackLRT"]+flavourghosts,
81 modifiers = truthmods+clustermods+(
"Filter:15000",
"LArHVCorr",),
84 AntiKt4TopoTowersSK = JetDefinition(
"AntiKt",0.4,cst[
"TopoTowerSK"],
85 ghostdefs = standardghosts+[
"TrackLRT"]+flavourghosts,
86 modifiers = truthmods+clustermods+(
"Filter:15000",
"LArHVCorr",),
90 jetList = [AntiKt4EMTopo422, AntiKt4EMTopo422SK, AntiKt4TopoTowers, AntiKt4TopoTowersSK]
96 augmentationTools = []
105 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
106 acc.addEventAlgo(
DerivationKernel(name, AugmentationTools = augmentationTools, ThinningTools = thinningTools, SkimmingTools = skimmingTools))
114 from DerivationFrameworkPhys.PHYS
import PHYSCoreCfg
115 acc.merge(
PHYSCoreCfg(flags, name, StreamName = StreamName, TriggerListsHelper = TriggerListsHelper))
117 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
118 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
120 JETM42SlimmingHelper =
SlimmingHelper(name+
"SlimmingHelper", flags=flags, NamesAndTypes = flags.Input.TypedCollections)
122 JETM42SlimmingHelper.AllVariables = [
"CaloCalTopoClusters",
"CaloTopoClusters422",
"CaloCalAllTopoTowers",
123 "EMTopoClusters422",
"EMTopoClusters422SK",
"TopoTowers",
"TopoTowersSK",
126 JETM42SlimmingHelper.AppendToDictionary.update({
'EMTopoClusters422':
'xAOD::CaloClusterContainer',
127 'EMTopoClusters422Aux':
'xAOD::ShallowAuxContainer',
128 'EMTopoClusters422SK':
'xAOD::CaloClusterContainer',
129 'EMTopoClusters422SKAux':
'xAOD::ShallowAuxContainer',
130 'TopoTowers':
'xAOD::CaloClusterContainer',
131 'TopoTowersAux':
'xAOD::ShallowAuxContainer',
132 'TopoTowersSK':
'xAOD::CaloClusterContainer',
133 'TopoTowersSKAux':
'xAOD::ShallowAuxContainer',
137 jetOutputList = [
"AntiKt4EMTopo422Jets",
"AntiKt4EMTopo422SKJets",
"AntiKt4TopoTowerJets",
"AntiKt4TopoTowerSKJets"]
138 from DerivationFrameworkJetEtMiss.JetCommonConfig
import addJetsToSlimmingTool
142 JETM42SlimmingHelper.IncludeFullTriggerEDMLevel =
"ESD"
145 JETM42ItemList = JETM42SlimmingHelper.GetItemList()
146 acc.merge(
OutputStreamCfg(flags,
"DAOD_"+name, ItemList=JETM42ItemList, AcceptAlgs=[name+
"Kernel"]))
155 JETM42_name_tag =
'JETM42'
162 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
163 JETM42TriggerListsHelper = TriggerListsHelper(flags)
167 name= JETM42_name_tag +
"Kernel",
168 StreamName =
'StreamDAOD_'+JETM42_name_tag,
169 TriggerListsHelper = JETM42TriggerListsHelper,
174 name=JETM42_name_tag,
175 StreamName =
'StreamDAOD_'+JETM42_name_tag,
176 TriggerListsHelper = JETM42TriggerListsHelper,