7 |
|
import FWCore.ParameterSet.Config as cms |
8 |
|
import copy |
9 |
|
|
10 |
– |
###################################################################################### |
11 |
– |
#### JetMET corrections |
12 |
– |
###################################################################################### |
13 |
– |
from UserCode.HbbAnalysis.jetConfig_cff import * |
14 |
– |
|
15 |
– |
# sequence patAODJetMETCorrectionsForTauAnalyses |
16 |
– |
|
17 |
– |
|
18 |
– |
###################################################################################### |
19 |
– |
#### PAT layer 0 |
20 |
– |
###################################################################################### |
21 |
– |
|
22 |
– |
from PhysicsTools.PatAlgos.cleaningLayer0.caloMetCleaner_cfi import * |
23 |
– |
|
24 |
– |
allLayer0METsForTauAnalyses = copy.deepcopy(allLayer0METs) |
25 |
– |
allLayer0METsForTauAnalyses.metSource = cms.InputTag('corMetType1Icone5MuonsForTauAnalyses') |
26 |
– |
|
27 |
– |
|
28 |
– |
###################################################################################### |
29 |
– |
#### PAT layer 1 |
30 |
– |
###################################################################################### |
31 |
– |
|
32 |
– |
from PhysicsTools.PatAlgos.producersLayer1.metProducer_cff import * |
33 |
– |
|
34 |
– |
allLayer1METsForTauAnalyses = copy.deepcopy(allLayer1METs) |
35 |
– |
allLayer1METsForTauAnalyses.metSource = cms.InputTag("allLayer0METsForTauAnalyses") |
36 |
– |
allLayer1METsForTauAnalyses.addMuonCorrections = cms.bool(True) |
37 |
– |
allLayer1METsForTauAnalyses.muonSource = cms.InputTag("muons") ## muon input source for corrections |
38 |
– |
|
39 |
– |
allLayer1METsForTauAnalyses.addTrigMatch = cms.bool(False) |
40 |
– |
#allLayer1METsForTauAnalyses.trigPrimMatch = cms.VInputTag(cms.InputTag("metTrigMatchHLT1MET65")), |
41 |
– |
|
42 |
– |
allLayer1METsForTauAnalyses.addGenMET = cms.bool(True) |
43 |
– |
allLayer1METsForTauAnalyses.genMETSource = cms.InputTag("genMETWithMuForTauAnalyses") ## GenMET source to be used for the matching |
44 |
– |
|
45 |
– |
|
46 |
– |
###################################################################################### |
47 |
– |
#### Final PAT sequences |
48 |
– |
###################################################################################### |
49 |
– |
|
50 |
– |
patMetForTauAnalyses = cms.Sequence( patAODJetMETCorrectionsForTauAnalyses |
51 |
– |
*allLayer0METsForTauAnalyses |
52 |
– |
*allLayer1METsForTauAnalyses |
53 |
– |
) |