CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
muonProducer_cfi.py
Go to the documentation of this file.
2 
3 patMuons = cms.EDProducer("PATMuonProducer",
4  # input
5  muonSource = cms.InputTag("muons"),
6 
7  # use particle flow instead of std reco
8  useParticleFlow = cms.bool( False ),
9  pfMuonSource = cms.InputTag("particleFlow"),
10 
11  # add user data
12  userData = cms.PSet(
13  # add custom classes here
14  userClasses = cms.PSet(
15  src = cms.VInputTag('')
16  ),
17  # add doubles here
18  userFloats = cms.PSet(
19  src = cms.VInputTag('')
20  ),
21  # add ints here
22  userInts = cms.PSet(
23  src = cms.VInputTag('')
24  ),
25  # add candidate ptrs here
26  userCands = cms.PSet(
27  src = cms.VInputTag('')
28  ),
29  # add "inline" functions here
30  userFunctions = cms.vstring(),
31  userFunctionLabels = cms.vstring()
32  ),
33 
34  # embedding objects
35  embedMuonBestTrack = cms.bool(True), ## embed in AOD externally stored muon best track
36  embedImprovedMuonBestTrack = cms.bool(True), ## embed in AOD externally stored muon best track, with new tuneP (option available only in 53X)
37  embedTrack = cms.bool(False), ## embed in AOD externally stored tracker track
38  embedCombinedMuon = cms.bool(True), ## embed in AOD externally stored combined muon track
39  embedStandAloneMuon = cms.bool(True), ## embed in AOD externally stored standalone muon track
40  embedPickyMuon = cms.bool(True), ## embed in AOD externally stored TeV-refit picky muon track
41  embedTpfmsMuon = cms.bool(True), ## embed in AOD externally stored TeV-refit TPFMS muon track
42  embedDytMuon = cms.bool(True), ## embed in AOD externally stored TeV-refit DYT muon track
43  embedPFCandidate = cms.bool(True), ## embed in AOD externally stored particle flow candidate
44 
45  # embedding of muon MET corrections for caloMET
46  embedCaloMETMuonCorrs = cms.bool(True),
47  caloMETMuonCorrs = cms.InputTag("muonMETValueMapProducer" , "muCorrData"),
48  # embedding of muon MET corrections for tcMET
49  embedTcMETMuonCorrs = cms.bool(True),
50  tcMETMuonCorrs = cms.InputTag("muonTCMETValueMapProducer", "muCorrData"),
51 
52  # embed IsoDeposits
53  isoDeposits = cms.PSet(
54  #user = cms.VInputTag(
55  # cms.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
56  # cms.InputTag("muIsoDepositJets")
57  # ),
58  ),
59 
60  # user defined isolation variables the variables defined here will be accessible
61  # via pat::Muon::userIsolation(IsolationKeys key) with the key as defined in
62  # DataFormats/PatCandidates/interface/Isolation.h
63  userIsolation = cms.PSet(
64  #user = cms.VPSet(cms.PSet(
65  # src = cms.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
66  # deltaR = cms.double(0.3)
67  # ),
68  # cms.PSet(
69  # src = cms.InputTag("muIsoDepositJets"),
70  # deltaR = cms.double(0.3)
71  # )),
72  ),
73 
74  # mc matching
75  addGenMatch = cms.bool(True),
76  embedGenMatch = cms.bool(True),
77  genParticleMatch = cms.InputTag("muonMatch"), ## particles source to be used for the matching
78 
79  # efficiencies
80  addEfficiencies = cms.bool(False),
81  efficiencies = cms.PSet(),
82 
83  # resolution configurables
84  addResolutions = cms.bool(False),
85  resolutions = cms.PSet(),
86 
87  # high level selections
88  embedHighLevelSelection = cms.bool(True),
89  usePV = cms.bool(True),
90  beamLineSrc = cms.InputTag("offlineBeamSpot"),
91  pvSrc = cms.InputTag("offlinePrimaryVertices")
92 )
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 
113 
114