Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add L1Ntuple customisation for MiniAOD #45543

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions L1Trigger/L1TNtuples/python/L1NtupleMINI_cff.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import FWCore.ParameterSet.Config as cms

from L1Trigger.L1TNtuples.l1EventTree_cfi import *
from L1Trigger.L1TNtuples.l1UpgradeTree_cfi import *
from L1Trigger.L1TNtuples.l1uGTTree_cfi import *
from L1Trigger.L1TNtuples.l1uGTTestcrateTree_cfi import *

# use L1 objects from unpacked uGT output
l1UpgradeTree.egToken = cms.untracked.InputTag("caloStage2Digis","EGamma")
l1UpgradeTree.tauTokens = cms.untracked.VInputTag(cms.InputTag("caloStage2Digis","Tau"))
l1UpgradeTree.jetToken = cms.untracked.InputTag("caloStage2Digis","Jet")
l1UpgradeTree.muonToken = cms.untracked.InputTag("gmtStage2Digis","Muon")
l1UpgradeTree.sumToken = cms.untracked.InputTag("caloStage2Digis","EtSum")

L1NtupleMINI = cms.Sequence(
l1EventTree
+l1UpgradeTree
# +l1uGTTestcrateTree
+l1uGTTree
)
13 changes: 13 additions & 0 deletions L1Trigger/L1TNtuples/python/customiseL1Ntuple.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ def L1NtupleNanoDST(process):

return process

def L1NtupleMINI(process):

L1NtupleTFileOut(process)

process.load('L1Trigger.L1TNtuples.L1NtupleMINI_cff')
process.l1ntuplenano = cms.Path(
process.L1NtupleMINI
)
process.schedule.append(process.l1ntuplenano)

return process


def L1NtupleNANO(process):

L1NtupleTFileOut(process)
Expand Down