From 81cb199b433c00b7da4d4aaaef6cdf2e4f36d14c Mon Sep 17 00:00:00 2001 From: Artur Lobanov Date: Thu, 4 Apr 2024 14:03:30 +0200 Subject: [PATCH] Add L1 objects into Run3Scouting Nano --- .../NanoAOD/python/custom_run3scouting_cff.py | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/PhysicsTools/NanoAOD/python/custom_run3scouting_cff.py b/PhysicsTools/NanoAOD/python/custom_run3scouting_cff.py index 1966114d5d290..7c24300d9df8f 100644 --- a/PhysicsTools/NanoAOD/python/custom_run3scouting_cff.py +++ b/PhysicsTools/NanoAOD/python/custom_run3scouting_cff.py @@ -14,15 +14,35 @@ ak4JetTableTask = cms.Task(ak4ScoutingJets,ak4ScoutingJetParticleNetJetTagInfos,ak4ScoutingJetParticleNetJetTags,ak4ScoutingJetTable) ak8JetTableTask = cms.Task(ak8ScoutingJets,ak8ScoutingJetsSoftDrop,ak8ScoutingJetsSoftDropMass,ak8ScoutingJetEcfNbeta1,ak8ScoutingJetNjettiness,ak8ScoutingJetParticleNetJetTagInfos,ak8ScoutingJetParticleNetJetTags,ak8ScoutingJetParticleNetMassRegressionJetTags,ak8ScoutingJetTable) +## L1 decisions gtStage2DigisScouting = gtStage2Digis.clone(InputLabel="hltFEDSelectorL1") l1bitsScouting = l1bits.clone(src="gtStage2DigisScouting") patTriggerScouting = patTrigger.clone(l1tAlgBlkInputTag="gtStage2DigisScouting",l1tExtBlkInputTag="gtStage2DigisScouting") + +## L1 objects +from PhysicsTools.NanoAOD.l1trig_cff import * +l1MuScoutingTable = l1MuTable.clone(src=cms.InputTag("gtStage2DigisScouting","Muon")) +l1JetScoutingTable = l1JetTable.clone(src=cms.InputTag("gtStage2DigisScouting","Jet")) +l1EGScoutingTable = l1EGTable.clone(src=cms.InputTag("gtStage2DigisScouting","EGamma")) +l1TauScoutingTable = l1TauTable.clone(src=cms.InputTag("gtStage2DigisScouting","Tau")) +l1EtSumScoutingTable = l1EtSumTable.clone(src=cms.InputTag("gtStage2DigisScouting","EtSum")) + +#reduce the variables to the core variables as only these are available in gtStage2Digis +l1EGScoutingTable.variables = cms.PSet(l1EGReducedVars) +l1MuScoutingTable.variables = cms.PSet(l1MuonReducedVars) +l1JetScoutingTable.variables = cms.PSet(l1JetReducedVars) +l1TauScoutingTable.variables = cms.PSet(l1TauReducedVars) +l1EtSumScoutingTable.variables = cms.PSet(l1EtSumReducedVars) + selectedPatTriggerScouting = selectedPatTrigger.clone(src="patTriggerScouting") slimmedPatTriggerScouting = slimmedPatTrigger.clone(src="selectedPatTriggerScouting") unpackedPatTriggerScouting = unpackedPatTrigger.clone(patTriggerObjectsStandAlone="slimmedPatTriggerScouting") triggerObjectTableScouting = triggerObjectTable.clone(src="unpackedPatTriggerScouting") -triggerTask = cms.Task(gtStage2DigisScouting,unpackedPatTriggerScouting,triggerObjectTableScouting,l1bitsScouting) +triggerTask = cms.Task( + gtStage2DigisScouting, l1MuScoutingTable, l1EGScoutingTable, l1TauScoutingTable, l1JetScoutingTable, l1EtSumScoutingTable, + unpackedPatTriggerScouting,triggerObjectTableScouting,l1bitsScouting +) triggerSequence = cms.Sequence(L1TRawToDigi+patTriggerScouting+selectedPatTriggerScouting+slimmedPatTriggerScouting+cms.Sequence(triggerTask)) # MC tasks