CMS 3D CMS Logo

metBenchmark_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.PFTau.metBenchmark_cfi import metBenchmark
4 from DQMOffline.PFTau.metBenchmark_cfi import matchMetBenchmark
5 
6 ########
7 # Cor Calo MET
9 from JetMETCorrections.Type1MET.MetType1Corrections_cff import metJESCorAK4CaloJet
10 
11 metMuonJESCorAK4 = metJESCorAK4CaloJet.clone()
12 metMuonJESCorAK4.inputUncorMetLabel = "caloMetM"
13 
14 metCorSequence = cms.Sequence(metMuonJESCorAK4)
15 #########
16 
17 
18 pfMetBenchmark = metBenchmark.clone()
19 pfMetBenchmark.InputCollection = 'pfMet'
20 pfMetBenchmark.BenchmarkLabel = 'pfMet'
21 pfMetBenchmark.mode = 2
22 
23 caloMetBenchmark = metBenchmark.clone()
24 #caloMetBenchmark.InputCollection = 'met'
25 #caloMetBenchmark.BenchmarkLabel = 'met'
26 caloMetBenchmark.InputCollection = 'metMuonJESCorAK4'
27 caloMetBenchmark.BenchmarkLabel = 'metMuonJESCorAK4'
28 caloMetBenchmark.mode = 2
29 
30 trueMetBenchmark = metBenchmark.clone()
31 trueMetBenchmark.InputCollection = 'genMetTrue'
32 trueMetBenchmark.BenchmarkLabel = 'genMetTrue'
33 trueMetBenchmark.mode = 2
34 
35 MatchPfMetBenchmark = matchMetBenchmark.clone()
36 MatchPfMetBenchmark.InputCollection = 'pfMet'
37 MatchPfMetBenchmark.MatchCollection = 'genMetTrue'
38 MatchPfMetBenchmark.mode = 2
39 MatchPfMetBenchmark.BenchmarkLabel = 'pfMet'
40 
41 MatchCaloMetBenchmark = matchMetBenchmark.clone()
42 #MatchCaloMetBenchmark.InputCollection = 'met'
43 MatchCaloMetBenchmark.InputCollection = 'metMuonJESCorAK4'
44 MatchCaloMetBenchmark.MatchCollection = 'genMetTrue'
45 MatchCaloMetBenchmark.mode = 2
46 #MatchCaloMetBenchmark.BenchmarkLabel = 'met'
47 MatchCaloMetBenchmark.BenchmarkLabel = 'metMuonJESCorAK4'
48 
49 UncorrCaloMetBenchmark = metBenchmark.clone()
50 UncorrCaloMetBenchmark.InputCollection = 'caloMetM'
51 UncorrCaloMetBenchmark.BenchmarkLabel = 'caloMetM'
52 UncorrCaloMetBenchmark.mode = 2
53 
54 metBenchmarkSequence = cms.Sequence( metCorSequence+pfMetBenchmark+caloMetBenchmark+trueMetBenchmark+MatchPfMetBenchmark+MatchCaloMetBenchmark )
55 metBenchmarkSequenceData = cms.Sequence( metCorSequence+pfMetBenchmark+caloMetBenchmark+UncorrCaloMetBenchmark )