-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47069 from Parsifal-2045/hltMuonNtuples
[NGT] Implement `NanoAOD` ntuples production for HLT Muon objects
- Loading branch information
Showing
9 changed files
with
442 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from PhysicsTools.NanoAOD.common_cff import * | ||
|
||
from PhysicsTools.NanoAOD.genparticles_cff import * | ||
from PhysicsTools.PatAlgos.slimming.prunedGenParticles_cfi import * | ||
from DPGAnalysis.MuonTools.nano_mu_hlt_cff import * | ||
|
||
|
||
hltMuNanoProducer = cms.Sequence( | ||
prunedGenParticles + finalGenParticles + genParticleTable + hltMuonTriggerProducers | ||
) | ||
|
||
|
||
def hltMuNanoCustomize(process): | ||
|
||
if hasattr(process, "NANOAODSIMoutput"): | ||
process.prunedGenParticles.src = "genParticles" | ||
process.genParticleTable.externalVariables = cms.PSet() # remove iso as external variable from PhysicsTools/NanoAOD/python/genparticles_cff.py:37 (hopefully temporarily) | ||
process.NANOAODSIMoutput.outputCommands.append( | ||
"keep nanoaodFlatTable_*Table*_*_*" | ||
) | ||
process.NANOAODSIMoutput.outputCommands.append("drop edmTriggerResults_*_*_*") | ||
|
||
return process |
Oops, something went wrong.