1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
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 HLTrigger.NGTScouting.hltVertices_cfi import *
from HLTrigger.NGTScouting.hltEGammaPacker_cfi import *
from HLTrigger.NGTScouting.hltPhotons_cfi import *
from HLTrigger.NGTScouting.hltElectrons_cfi import *
from HLTrigger.NGTScouting.hltMuons_cfi import *
from HLTrigger.NGTScouting.hltTracks_cfi import *
from HLTrigger.NGTScouting.hltJets_cfi import *
from HLTrigger.NGTScouting.hltTriggerAcceptFilter_cfi import hltTriggerAcceptFilter,dstTriggerAcceptFilter
hltNanoProducer = cms.Sequence(
prunedGenParticles
+ finalGenParticles
+ genParticleTable
+ hltTriggerAcceptFilter
+ hltVertexTable
+ hltPixelTrackTable
+ hltGeneralTrackTable
+ hltEgammaPacker
+ hltPhotonTable
+ hltElectronTable
+ hltPhase2L3MuonIdTracks
+ hltMuonTable
+ hltPFCandidateTable
+ hltJetTable
)
dstNanoProducer = cms.Sequence(
prunedGenParticles
+ finalGenParticles
+ genParticleTable
+ dstTriggerAcceptFilter
+ hltVertexTable
+ hltPixelTrackTable
+ hltGeneralTrackTable
+ hltEgammaPacker
+ hltPhotonTable
+ hltElectronTable
+ hltPhase2L3MuonIdTracks
+ hltMuonTable
+ hltPFCandidateTable
+ hltJetTable
)
def hltNanoCustomize(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.SelectEvents = cms.untracked.PSet(
SelectEvents = cms.vstring(
[p for p in process.paths if p.startswith('HLT_') or p.startswith('DST_')]
)
)
return process
|