1 |
import FWCore.ParameterSet.Config as cms
|
2 |
|
3 |
#---------------------------------------------------------------
|
4 |
# produce tcMET and JPT jet collections
|
5 |
#---------------------------------------------------------------
|
6 |
|
7 |
#produce tcMET
|
8 |
# load muon corrections for !MET module
|
9 |
from JetMETCorrections.Type1MET.MetMuonCorrections_cff import *
|
10 |
# load track-corrected MET module
|
11 |
from RecoMET.METProducers.TCMET_cfi import *
|
12 |
|
13 |
from UserCode.HbbAnalysis.producePatLayer1_cff import *
|
14 |
|
15 |
from JetMETCorrections.Configuration.JetPlusTrackCorrections_cff import *
|
16 |
from JetMETCorrections.Configuration.ZSPJetCorrections219_cff import *
|
17 |
|
18 |
from RecoJets.Configuration.GenJetParticles_cff import *
|
19 |
genParticlesForJets.ignoreParticleIDs = cms.vuint32(
|
20 |
1000022, 2000012, 2000014,
|
21 |
2000016, 1000039, 5000039,
|
22 |
4000012, 9900012, 9900014,
|
23 |
9900016, 39, 12, 14, 16
|
24 |
)
|
25 |
|
26 |
from RecoJets.JetProducers.iterativeCone5GenJets_cff import iterativeCone5GenJets
|
27 |
iterativeCone5GenJetsNoNuBSM = iterativeCone5GenJets
|
28 |
|
29 |
|
30 |
|
31 |
#--------------------------------------------------------------------------
|
32 |
# Common Paths
|
33 |
#--------------------------------------------------------------------------
|
34 |
|
35 |
pJPTcor = cms.Sequence( ZSPJetCorrections
|
36 |
*JetPlusTrackCorrections)
|
37 |
|
38 |
pgenjets = cms.Sequence( genParticlesForJets
|
39 |
*iterativeCone5GenJetsNoNuBSM
|
40 |
)
|
41 |
|
42 |
# run sequence of muon+track MET corrections
|
43 |
ptcmet = cms.Sequence( MetMuonCorrections
|
44 |
*tcMet
|
45 |
)
|
46 |
|
47 |
|
48 |
|
49 |
ppat = cms.Sequence( producePatLayer1ForTauAnalyses )
|
50 |
|
51 |
commonPath = cms.Sequence ( pJPTcor
|
52 |
*pgenjets
|
53 |
*ptcmet
|
54 |
*ppat
|
55 |
)
|
56 |
|
57 |
|
58 |
#--------------------------------------------------------------------------
|
59 |
# Skimming Paths
|
60 |
# keep event in case it passed either the muon + pfTau or muon + caloTau selection
|
61 |
# or e + pfTau or e + caloTau or e + e or mu + mu
|
62 |
#--------------------------------------------------------------------------------
|
63 |
|
64 |
from UserCode.HbbAnalysis.objectSelectors_cfi import *
|
65 |
|
66 |
muPFTauSkimSequence = cms.Sequence(
|
67 |
(selectedPFTaus + selectedMuons)
|
68 |
*muPFTauPairs
|
69 |
*selectedMuPFTauPairs
|
70 |
*commonPath
|
71 |
)
|
72 |
|
73 |
muCaloTauSkimSequence = cms.Sequence(
|
74 |
(selectedCaloTaus + selectedMuons)
|
75 |
*muCaloTauPairs
|
76 |
*selectedMuCaloTauPairs
|
77 |
*commonPath
|
78 |
)
|
79 |
|
80 |
|
81 |
elecPFTauSkimSequence = cms.Sequence(
|
82 |
(selectedPFTaus + selectedElectrons)
|
83 |
*selectedElectronHLT
|
84 |
*elecPFTauPairs
|
85 |
*selectedElecPFTauPairs
|
86 |
*commonPath
|
87 |
)
|
88 |
|
89 |
elecCaloTauSkimSequence = cms.Sequence(
|
90 |
(selectedCaloTaus + selectedElectrons)
|
91 |
*selectedElectronHLT
|
92 |
*elecCaloTauPairs
|
93 |
*selectedElecCaloTauPairs
|
94 |
*commonPath
|
95 |
)
|
96 |
|
97 |
|
98 |
mumuSkimSequence = cms.Sequence(
|
99 |
selectedMuons
|
100 |
*mumuPairs
|
101 |
*selectedMuMuPairs
|
102 |
*commonPath
|
103 |
)
|
104 |
|
105 |
eeSkimSequence = cms.Sequence(
|
106 |
selectedElectrons
|
107 |
*selectedElectronHLT
|
108 |
*eePairs
|
109 |
*selectedeePairs
|
110 |
*commonPath
|
111 |
)
|
112 |
|
113 |
|