CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
metBenchmark_cff.py
Go to the documentation of this file.
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 metJESCorAK5CaloJet
10 
11 metMuonJESCorAK5 = metJESCorAK5CaloJet.clone()
12 metMuonJESCorAK5.inputUncorMetLabel = "corMetGlobalMuons"
13 
14 metCorSequence = cms.Sequence(metMuonJESCorAK5)
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 = 'metMuonJESCorAK5'
27 caloMetBenchmark.BenchmarkLabel = 'metMuonJESCorAK5'
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 = 'metMuonJESCorAK5'
44 MatchCaloMetBenchmark.MatchCollection = 'genMetTrue'
45 MatchCaloMetBenchmark.mode = 2
46 #MatchCaloMetBenchmark.BenchmarkLabel = 'met'
47 MatchCaloMetBenchmark.BenchmarkLabel = 'metMuonJESCorAK5'
48 
49 UncorrCaloMetBenchmark = metBenchmark.clone()
50 UncorrCaloMetBenchmark.InputCollection = 'corMetGlobalMuons'
51 UncorrCaloMetBenchmark.BenchmarkLabel = 'corMetGlobalMuons'
52 UncorrCaloMetBenchmark.mode = 2
53 
54 metBenchmarkSequence = cms.Sequence( metCorSequence+pfMetBenchmark+caloMetBenchmark+trueMetBenchmark+MatchPfMetBenchmark+MatchCaloMetBenchmark )
55 metBenchmarkSequenceData = cms.Sequence( metCorSequence+pfMetBenchmark+caloMetBenchmark+UncorrCaloMetBenchmark )