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

Exclude neutrinos from heavy-ion genJets in miniAOD #47210

Merged
merged 1 commit into from
Jan 30, 2025
Merged
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
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import FWCore.ParameterSet.Config as cms

from RecoHI.HiJetAlgos.hiSignalParticleProducer_cfi import hiSignalParticleProducer as hiSignalGenParticles
from RecoJets.Configuration.GenJetParticles_cff import genParticlesForJets
from RecoJets.Configuration.GenJetParticles_cff import genParticlesForJetsNoNu
from RecoHI.HiJetAlgos.HiGenCleaner_cff import hiPartons
from RecoHI.HiJetAlgos.HiGenJets_cff import ak4HiGenJets
ak4HiGenJetsNoNu = ak4HiGenJets.clone(src = "genParticlesForJetsNoNu")
from RecoHI.HiJetAlgos.HiGenCleaner_cff import heavyIonCleanedGenJets
from RecoHI.HiJetAlgos.hiSignalGenJetProducer_cfi import hiSignalGenJetProducer
ak4HiSignalGenJets = hiSignalGenJetProducer.clone(src = "ak4HiGenJets")
ak4HiSignalGenJets = hiSignalGenJetProducer.clone(src = "ak4HiGenJetsNoNu")

allPartons = cms.EDProducer(
"PartonSelector",
Expand All @@ -23,13 +24,13 @@

hiGenJetsTask = cms.Task(
hiSignalGenParticles,
genParticlesForJets,
genParticlesForJetsNoNu,
allPartons,
ak4HiGenJets,
ak4HiGenJetsNoNu,
ak4HiSignalGenJets
)

ak4HiGenJetsCleaned = heavyIonCleanedGenJets.clone(src = "ak4HiGenJets")
ak4HiGenJetsCleaned = heavyIonCleanedGenJets.clone(src = "ak4HiGenJetsNoNu")
hiCleanedGenJetsTask_ = hiGenJetsTask.copyAndExclude([hiSignalGenParticles,ak4HiSignalGenJets])
hiCleanedGenJetsTask_.add(cleanedPartons,ak4HiGenJetsCleaned)
genJetSubEvent.toReplaceWith(hiGenJetsTask,hiCleanedGenJetsTask_)
Expand Down