CMS 3D CMS Logo

metProducer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from RecoMET.METProducers.METSignificanceParams_cfi import METSignificanceParams
4 
5 
6 patMETs = cms.EDProducer("PATMETProducer",
7  # input
8  metSource = cms.InputTag("pfMetT1"),
9 
10  # add user data
11  userData = cms.PSet(
12  # add custom classes here
13  userClasses = cms.PSet(
14  src = cms.VInputTag('')
15  ),
16  # add doubles here
17  userFloats = cms.PSet(
18  src = cms.VInputTag('')
19  ),
20  # add ints here
21  userInts = cms.PSet(
22  src = cms.VInputTag('')
23  ),
24  # add candidate ptrs here
25  userCands = cms.PSet(
26  src = cms.VInputTag('')
27  ),
28  # add "inline" functions here
29  userFunctions = cms.vstring(),
30  userFunctionLabels = cms.vstring()
31  ),
32 
33  # muon correction
34  addMuonCorrections = cms.bool(False),
35  muonSource = cms.InputTag("muons"),
36 
37  # mc matching configurables
38  addGenMET = cms.bool(True),
39  genMETSource = cms.InputTag("genMetTrue"),
40 
41  # efficiencies
42  addEfficiencies = cms.bool(False),
43  efficiencies = cms.PSet(),
44 
45  # resolution
46  addResolutions = cms.bool(False),
47  resolutions = cms.PSet(),
48 
49  # significance
50  computeMETSignificance = cms.bool(False),
51  # significance computation parameters, not used
52  # if the significance is not computed
53  srcWeights = cms.InputTag(""),
54  srcJets = cms.InputTag("cleanedPatJets"),
55  srcPFCands = cms.InputTag("particleFlow"),
56  srcLeptons = cms.VInputTag("selectedPatElectrons", "selectedPatMuons", "selectedPatPhotons"),
57  srcJetSF = cms.string('AK4PFchs'),
58  srcJetResPt = cms.string('AK4PFchs_pt'),
59  srcJetResPhi = cms.string('AK4PFchs_phi'),
60  srcRho = cms.InputTag('fixedGridRhoAll'),
61  parameters = METSignificanceParams
62 )