1 import FWCore.ParameterSet.Config
as cms
8 chsForTkMet = cms.EDFilter(
"CandPtrSelector", src = cms.InputTag(
"packedPFCandidates"), cut = cms.string(
'charge()!=0 && pvAssociationQuality()>=5 && vertexRef().key()==0'))
9 tkMet = cms.EDProducer(
"PFMETProducer",
10 src = cms.InputTag(
"chsForTkMet"),
11 alias = cms.string(
'tkMet'),
12 globalThreshold = cms.double(0.0),
13 calculateSignificance = cms.bool(
False),
19 metTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
20 src = cms.InputTag(
"slimmedMETs"),
21 name = cms.string(
"MET"),
22 doc = cms.string(
"slimmedMET, type-1 corrected PF MET"),
23 singleton = cms.bool(
True),
24 extension = cms.bool(
False),
25 variables = cms.PSet(PTVars,
26 sumEt =
Var(
"sumEt()", float, doc=
"scalar sum of Et",precision=10),
27 covXX =
Var(
"getSignificanceMatrix().At(0,0)",float,doc=
"xx element of met covariance matrix", precision=8),
28 covXY =
Var(
"getSignificanceMatrix().At(0,1)",float,doc=
"xy element of met covariance matrix", precision=8),
29 covYY =
Var(
"getSignificanceMatrix().At(1,1)",float,doc=
"yy element of met covariance matrix", precision=8),
30 significance =
Var(
"metSignificance()", float, doc=
"MET significance",precision=10),
31 MetUnclustEnUpDeltaX =
Var(
"shiftedPx('UnclusteredEnUp')-px()", float, doc=
"Delta (METx_mod-METx) Unclustered Energy Up",precision=10),
32 MetUnclustEnUpDeltaY =
Var(
"shiftedPy('UnclusteredEnUp')-py()", float, doc=
"Delta (METy_mod-METy) Unclustered Energy Up",precision=10),
38 rawMetTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
40 name = cms.string(
"RawMET"),
41 doc = cms.string(
"raw PF MET"),
42 singleton = cms.bool(
True),
43 extension = cms.bool(
False),
45 pt =
Var(
"uncorPt", float, doc=
"pt", precision=10),
46 phi =
Var(
"uncorPhi", float, doc=
"phi", precision=10),
47 sumEt =
Var(
"uncorSumEt", float, doc=
"scalar sum of Et", precision=10),
52 caloMetTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
54 name = cms.string(
"CaloMET"),
55 doc = cms.string(
"Offline CaloMET (muon corrected)"),
56 singleton = cms.bool(
True),
57 extension = cms.bool(
False),
59 pt =
Var(
"caloMETPt", float, doc=
"pt", precision=10),
60 phi =
Var(
"caloMETPhi", float, doc=
"phi", precision=10),
61 sumEt =
Var(
"caloMETSumEt", float, doc=
"scalar sum of Et", precision=10),
65 puppiMetTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
66 src = cms.InputTag(
"slimmedMETsPuppi"),
67 name = cms.string(
"PuppiMET"),
68 doc = cms.string(
"PUPPI MET"),
69 singleton = cms.bool(
True),
70 extension = cms.bool(
False),
71 variables = cms.PSet(PTVars,
72 sumEt =
Var(
"sumEt()", float, doc=
"scalar sum of Et",precision=10),
76 tkMetTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
77 src = cms.InputTag(
"tkMet"),
78 name = cms.string(
"TkMET"),
79 doc = cms.string(
"Track MET computed with tracks from PV0 ( pvAssociationQuality()>=5 ) "),
80 singleton = cms.bool(
True),
81 extension = cms.bool(
False),
82 variables = cms.PSet(PTVars,
83 sumEt =
Var(
"sumEt()", float, doc=
"scalar sum of Et",precision=10),
88 metMCTable = cms.EDProducer(
"SimpleCandidateFlatTableProducer",
90 name = cms.string(
"GenMET"),
91 doc = cms.string(
"Gen MET"),
92 singleton = cms.bool(
True),
93 extension = cms.bool(
False),
95 pt =
Var(
"genMET.pt", float, doc=
"pt", precision=10),
96 phi =
Var(
"genMET.phi", float, doc=
"phi", precision=10),
102 metSequence = cms.Sequence(chsForTkMet+tkMet)
103 metTables = cms.Sequence( metTable + rawMetTable + caloMetTable + puppiMetTable + tkMetTable)
104 metMC = cms.Sequence( metMCTable )
def Var(expr, valtype, compression=None, doc=None, mcOnly=False, precision=-1)