14 """Configure the derivation framework driving algorithm (kernel) for JETM42"""
17 from DerivationFrameworkPhys.PhysCommonConfig
import PhysCommonAugmentationsCfg
20 TriggerListsHelper = kwargs[
'TriggerListsHelper'],
21 TauJets_EleRM_in_input = kwargs[
'TauJets_EleRM_in_input']
25 'DiTauLowPtThinningToolName' :
"PHYSDiTauLowPtThinningTool",
28 from DerivationFrameworkPhys.PhysCommonThinningConfig
import PhysCommonThinningCfg
33 for key
in thinningToolsArgs:
34 thinningTools.append(acc.getPublicTool(thinningToolsArgs[key]))
37 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
41 from JetRecConfig.JetRecConfig
import JetRecCfg, getInputAlgs
42 from JetRecConfig.StandardJetConstits
import stdConstitDic
as cst, standardReco, stdInputExtDic
as inpext
43 from ROOT
import xAODType
49 from JetRecConfig.JetDefinition
import JetDefinition, JetInputConstitSeq, JetInputExternal
50 from JetRecConfig.StandardSmallRJets
import standardghosts, flavourghosts, truthmods, clustermods
52 inpext[
"TC422"] = JetInputExternal(
"CaloTopoClusters422", xAODType.CaloCluster, algoBuilder=
standardReco(
"CaloClusters"))
53 inpext[
"TopoTowers"] = JetInputExternal(
"CaloCalAllTopoTowers", xAODType.CaloCluster, algoBuilder=
standardReco(
"CaloClusters"))
54 cst[
"EMTopo422"] = JetInputConstitSeq(
"EMTopo422", xAODType.CaloCluster, [
"EM"],
55 "CaloTopoClusters422",
"EMTopoClusters422", jetinputtype=
"EMTopo",
57 cst[
"EMTopo422SK"] = JetInputConstitSeq(
"EMTopo422SK", xAODType.CaloCluster, [
"EM",
"SK"],
58 "CaloTopoClusters422",
"EMTopoClusters422SK", jetinputtype=
"EMTopo",
60 cst[
"TopoTower"] = JetInputConstitSeq(
"TopoTower", xAODType.CaloCluster, [
"EM"],
61 "CaloCalAllTopoTowers",
"TopoTowers", jetinputtype=
"TopoTower",
63 cst[
"TopoTowerSK"] = JetInputConstitSeq(
"TopoTowerSK", xAODType.CaloCluster, [
"EM",
"SK"],
64 "CaloCalAllTopoTowers",
"TopoTowersSK", jetinputtype=
"TopoTower",
71 AntiKt4EMTopo422 = JetDefinition(
"AntiKt",0.4,cst[
"EMTopo422"],
72 ghostdefs = standardghosts+[
"TrackLRT"]+flavourghosts,
73 modifiers = truthmods+clustermods+(
"Filter:15000",
"LArHVCorr",),
76 AntiKt4EMTopo422SK = JetDefinition(
"AntiKt",0.4,cst[
"EMTopo422SK"],
77 ghostdefs = standardghosts+[
"TrackLRT"]+flavourghosts,
78 modifiers = truthmods+clustermods+(
"Filter:15000",
"LArHVCorr",),
81 AntiKt4TopoTowers = JetDefinition(
"AntiKt",0.4,cst[
"TopoTower"],
82 ghostdefs = standardghosts+[
"TrackLRT"]+flavourghosts,
83 modifiers = truthmods+clustermods+(
"Filter:15000",
"LArHVCorr",),
86 AntiKt4TopoTowersSK = JetDefinition(
"AntiKt",0.4,cst[
"TopoTowerSK"],
87 ghostdefs = standardghosts+[
"TrackLRT"]+flavourghosts,
88 modifiers = truthmods+clustermods+(
"Filter:15000",
"LArHVCorr",),
92 jetList = [AntiKt4EMTopo422, AntiKt4EMTopo422SK, AntiKt4TopoTowers, AntiKt4TopoTowersSK]
98 augmentationTools = []
107 DerivationKernel = CompFactory.DerivationFramework.DerivationKernel
108 acc.addEventAlgo(
DerivationKernel(name, AugmentationTools = augmentationTools, ThinningTools = thinningTools, SkimmingTools = skimmingTools))