40 augmentationTools = []
43 from DerivationFrameworkInDet.InDetToolsConfig
import (
44 TrackToVertexWrapperCfg)
45 IDTIDETrackToVertexWrapper = acc.getPrimaryAndMerge(
47 flags, name=
"IDTIDETrackToVertexWrapper",
48 DecorationPrefix=
"IDTIDE")
50 augmentationTools.append(IDTIDETrackToVertexWrapper)
52 from DerivationFrameworkInDet.InDetToolsConfig
import (
53 UsedInVertexFitTrackDecoratorCfg)
54 IDTIDEUsedInFitDecorator = acc.getPrimaryAndMerge(
56 augmentationTools.append(IDTIDEUsedInFitDecorator)
59 from DerivationFrameworkInDet.InDetToolsConfig
import (
60 TrackParametersAtPVCfg)
62 flags, name=
"IDTIDE_DFCommonZ0AtPV",
63 Z0SGEntryName=
"IDTIDEInDetTrackZ0AtPV")
65 augmentationTools.append(DFCommonZ0AtPV)
75 if not flags.Input.isMC:
77 sel_jet600 =
'AntiKt4EMPFlowJets.JetConstitScaleMomentum_pt >= 600.*GeV'
78 sel_jet800 =
'AntiKt4EMPFlowJets.JetConstitScaleMomentum_pt >= 800.*GeV'
79 sel_jet1000 =
'AntiKt4EMPFlowJets.JetConstitScaleMomentum_pt >= 1000.*GeV'
82 jetA_ph1 =
'( HLT_j110_pf_ftf_preselj80_L1jJ60 || HLT_j175_pf_ftf_preselj140_L1jJ90 || HLT_j260_pf_ftf_preselj200_L1jJ125 )'
83 jetC_ph1 =
'( HLT_j360_pf_ftf_preselj225_L1jJ160 )'
84 jetD_ph1 =
'( HLT_j400_pf_ftf_preselj225_L1jJ160 && !HLT_j460_pf_ftf_preselj225_L1jJ160 )'
85 jetE_ph1 =
'( HLT_j460_pf_ftf_preselj225_L1jJ160 )'
86 jetF_ph1 =
' HLT_j460_pf_ftf_preselj225_L1jJ160 '
87 jetG_ph1 =
' HLT_j460_pf_ftf_preselj225_L1jJ160 '
88 jetH_ph1 =
' HLT_j460_pf_ftf_preselj225_L1jJ160 '
91 desd_jetA = f
'( HLT_j110_pf_ftf_preselj80_L1J30 || HLT_j175_pf_ftf_preselj140_L1J50 || HLT_j260_pf_ftf_preselj200_L1J75 ) || {jetA_ph1} '
92 desd_jetC = f
'( HLT_j360_pf_ftf_preselj225_L1J100 ) || {jetC_ph1} '
93 desd_jetD = f
'( HLT_j420_pf_ftf_preselj225_L1J100 && !HLT_j460_pf_ftf_preselj225_L1J100 ) || {jetD_ph1} '
94 desd_jetE = f
'( HLT_j460_pf_ftf_preselj225_L1J100 ) || {jetE_ph1} '
96 f
'(( HLT_j460_pf_ftf_preselj225_L1J100 || {jetF_ph1} ) && count({sel_jet600})>0 && count({sel_jet800})==0 )'
98 f
'(( HLT_j460_pf_ftf_preselj225_L1J100 || {jetG_ph1} ) && count({sel_jet800})>0 && count({sel_jet1000})==0 )'
99 desd_jetH = f
'(( HLT_j460_pf_ftf_preselj225_L1J100 || {jetH_ph1} ) && count({sel_jet1000})>0 )'
110 from DerivationFrameworkTools.DerivationFrameworkToolsConfig
import (
111 xAODStringSkimmingToolCfg,
113 FilterCombinationANDCfg,
114 FilterCombinationORCfg)
116 IDTIDE_SkimmingToolA = acc.getPrimaryAndMerge(
118 expression=desd_jetA))
120 flags, name=
"IDTIDE_PrescaleToolA", Prescale=prescaleA))
122 flags, name=
"IDTIDE_ANDToolA",
123 FilterList=[IDTIDE_SkimmingToolA, IDTIDE_PrescaleToolA]))
125 IDTIDE_SkimmingToolC = acc.getPrimaryAndMerge(
127 expression=desd_jetC))
129 flags, name=
"IDTIDE_PrescaleToolC", Prescale=prescaleC))
131 flags, name=
"IDTIDE_ANDToolC",
132 FilterList=[IDTIDE_SkimmingToolC, IDTIDE_PrescaleToolC]))
134 IDTIDE_SkimmingToolD = acc.getPrimaryAndMerge(
136 expression=desd_jetD))
138 flags, name=
"IDTIDE_PrescaleToolD", Prescale=prescaleD))
140 flags, name=
"IDTIDE_ANDToolD",
141 FilterList=[IDTIDE_SkimmingToolD, IDTIDE_PrescaleToolD]))
143 IDTIDE_SkimmingToolE = acc.getPrimaryAndMerge(
145 expression=desd_jetE))
147 flags, name=
"IDTIDE_PrescaleToolE", Prescale=prescaleE))
149 flags, name=
"IDTIDE_ANDToolE",
150 FilterList=[IDTIDE_SkimmingToolE, IDTIDE_PrescaleToolE]))
152 IDTIDE_SkimmingToolF = acc.getPrimaryAndMerge(
154 expression=desd_jetF))
156 flags, name=
"IDTIDE_PrescaleToolF", Prescale=prescaleF))
158 flags, name=
"IDTIDE_ANDToolF",
159 FilterList=[IDTIDE_SkimmingToolF, IDTIDE_PrescaleToolF]))
161 IDTIDE_SkimmingToolG = acc.getPrimaryAndMerge(
163 expression=desd_jetG))
165 flags, name=
"IDTIDE_PrescaleToolG", Prescale=prescaleG))
167 flags, name=
"IDTIDE_ANDToolG",
168 FilterList=[IDTIDE_SkimmingToolG, IDTIDE_PrescaleToolG]))
170 IDTIDE_SkimmingToolH = acc.getPrimaryAndMerge(
172 expression=desd_jetH))
175 flags, name=
"IDTIDELogicalCombination",
176 FilterList=[IDTIDE_ANDToolA, IDTIDE_ANDToolC, IDTIDE_ANDToolD,
177 IDTIDE_ANDToolE, IDTIDE_ANDToolF,
178 IDTIDE_ANDToolG, IDTIDE_SkimmingToolH]))
180 skimmingTools.append(IDTIDE_ORTool)
184 CompFactory.DerivationFramework.DerivationKernel(
185 "IDTIDEKernelPresel", SkimmingTools=skimmingTools))
190 acc.addEventAlgo(CompFactory.DerivationFramework.DerivationKernel(
192 AugmentationTools=augmentationTools,
193 SkimmingTools=skimmingTools,
195 RunSkimmingFirst=
True,