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))