212 from DerivationFrameworkPhys.TriggerListsHelper
import TriggerListsHelper
213 JETM1TriggerListsHelper = TriggerListsHelper(flags)
216 acc.merge(
JETM1KernelCfg(flags, name=
"JETM1Kernel", StreamName =
'StreamDAOD_JETM1', TriggerListsHelper = JETM1TriggerListsHelper))
221 from OutputStreamAthenaPool.OutputStreamConfig
import OutputStreamCfg
222 from xAODMetaDataCnv.InfileMetaDataConfig
import SetupMetaDataForStreamCfg
223 from DerivationFrameworkCore.SlimmingHelper
import SlimmingHelper
225 JETM1SlimmingHelper =
SlimmingHelper(
"JETM1SlimmingHelper", NamesAndTypes = flags.Input.TypedCollections, flags = flags)
227 JETM1SlimmingHelper.SmartCollections = [
"Electrons",
"Photons",
"Muons",
"PrimaryVertices",
228 "InDetTrackParticles",
230 "AntiKt10UFOCSSKJets",
231 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets",
232 "BTagging_AntiKt4EMPFlow"]
234 JETM1SlimmingHelper.ExtraVariables = [
"AntiKt4EMTopoJets.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1",
235 "AntiKt4EMPFlowJets.DFCommonJets_QGTagger_NTracks.DFCommonJets_QGTagger_TracksWidth.DFCommonJets_QGTagger_TracksC1",
236 "AntiKt4EMPFlowJets.passOnlyBJVT.DFCommonJets_bJvt.isJvtHS.isJvtPU",
237 "InDetTrackParticles.truthMatchProbability",
238 "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets.zg.rg.NumTrkPt1000.TrackWidthPt1000.GhostMuonSegmentCount.EnergyPerSampling.GhostTrack",
239 "AntiKt10UFOCSSKJets.NumTrkPt1000.TrackWidthPt1000.GhostMuonSegmentCount.EnergyPerSampling.GhostTrack"]
241 JETM1SlimmingHelper.AllVariables = [
"MuonSegments",
"EventInfo",
242 "Kt4EMTopoOriginEventShape",
"Kt4EMPFlowEventShape",
"Kt4EMPFlowPUSBEventShape",
"Kt4EMPFlowNeutEventShape",
"Kt4UFOCSSKEventShape",
"Kt4UFOCSSKNeutEventShape",
243 "AntiKt4EMPFlowJets"]
248 from DerivationFrameworkMCTruth.MCTruthCommonConfig
import addTruth3ContentToSlimmerTool
251 JETM1SlimmingHelper.AppendToDictionary.update({
'TruthParticles':
'xAOD::TruthParticleContainer',
252 'TruthParticlesAux':
'xAOD::TruthParticleAuxContainer'})
254 JETM1SlimmingHelper.SmartCollections += [
"AntiKt4TruthWZJets"]
255 JETM1SlimmingHelper.AllVariables += [
"TruthTopQuarkWithDecayParticles",
"TruthTopQuarkWithDecayVertices",
256 "AntiKt4TruthJets",
"InTimeAntiKt4TruthJets",
"OutOfTimeAntiKt4TruthJets",
"TruthParticles"]
257 JETM1SlimmingHelper.ExtraVariables += [
"TruthVertices.barcode.z"]
259 JETM1SlimmingHelper.AppendToDictionary.update({
'Kt4UFOCSSKEventShape':
'xAOD::EventShape',
260 'Kt4UFOCSSKEventShapeAux':
'xAOD::EventShapeAuxInfo',
261 'Kt4UFOCSSKNeutEventShape':
'xAOD::EventShape',
262 'Kt4UFOCSSKNeutEventShapeAux':
'xAOD::EventShapeAuxInfo'})
265 JETM1SlimmingHelper.IncludeTriggerNavigation =
False
266 JETM1SlimmingHelper.IncludeJetTriggerContent =
True
267 JETM1SlimmingHelper.IncludeMuonTriggerContent =
False
268 JETM1SlimmingHelper.IncludeEGammaTriggerContent =
False
269 JETM1SlimmingHelper.IncludeTauTriggerContent =
False
270 JETM1SlimmingHelper.IncludeEtMissTriggerContent =
False
271 JETM1SlimmingHelper.IncludeBJetTriggerContent =
False
272 JETM1SlimmingHelper.IncludeBPhysTriggerContent =
False
273 JETM1SlimmingHelper.IncludeMinBiasTriggerContent =
False
275 if flags.Trigger.EDMVersion == 2:
276 triggerNames = [
"a4tcemsubjesFS",
"a4tcemsubjesISFS",
"a10tclcwsubjesFS",
"a10tclcwsubFS",
"a10ttclcwjesFS",
"GSCJet"]
277 for trigger
in triggerNames:
278 JETM1SlimmingHelper.FinalItemList.append(
'xAOD::AuxContainerBase!#HLT_xAOD__JetContainer_'+trigger+
'Aux.pt.eta.phi.m')
280 jetOutputList = [
"AntiKt4PV0TrackJets",
"AntiKt4UFOCSSKJets"]
282 jetOutputList = [
"AntiKt4PV0TrackJets",
"AntiKt4UFOCSSKNoPtCutJets",
"AntiKt4EMPFlowNoPtCutJets",
"AntiKt4EMTopoNoPtCutJets"]
283 from DerivationFrameworkJetEtMiss.JetCommonConfig
import addJetsToSlimmingTool
287 JETM1ItemList = JETM1SlimmingHelper.GetItemList()
288 acc.merge(
OutputStreamCfg(flags,
"DAOD_JETM1", ItemList=JETM1ItemList, AcceptAlgs=[
"JETM1Kernel"]))
289 acc.merge(
SetupMetaDataForStreamCfg(flags,
"DAOD_JETM1", AcceptAlgs=[
"JETM1Kernel"], createMetadata=[MetadataCategory.CutFlowMetaData]))