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