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("pfIsolatedMuons"),
10  linkToPFSource = cms.InputTag(""),
11 
12  # add TeV refit tracks
13  addTeVRefits = cms.bool(True),
14  pickySrc = cms.InputTag("tevMuons", "picky"),
15  tpfmsSrc = cms.InputTag("tevMuons", "firstHit"),
16 
17  # add user data
18  userData = cms.PSet(
19  # add custom classes here
20  userClasses = cms.PSet(
21  src = cms.VInputTag('')
22  ),
23  # add doubles here
24  userFloats = cms.PSet(
25  src = cms.VInputTag('')
26  ),
27  # add ints here
28  userInts = cms.PSet(
29  src = cms.VInputTag('')
30  ),
31  # add candidate ptrs here
32  userCands = cms.PSet(
33  src = cms.VInputTag('')
34  ),
35  # add "inline" functions here
36  userFunctions = cms.vstring(),
37  userFunctionLabels = cms.vstring()
38  ),
39 
40  # embedding objects
41  embedTrack = cms.bool(False), ## embed in AOD externally stored tracker track
42  embedCombinedMuon = cms.bool(True), ## embed in AOD externally stored combined muon track
43  embedStandAloneMuon = cms.bool(True), ## embed in AOD externally stored standalone muon track
44  embedPickyMuon = cms.bool(True), ## embed in AOD externally stored TeV-refit picky muon track
45  embedTpfmsMuon = cms.bool(True), ## embed in AOD externally stored TeV-refit TPFMS muon track
46  embedPFCandidate = cms.bool(True), ## embed in AOD externally stored particle flow candidate
47 
48  # embedding of muon MET corrections for caloMET
49  embedCaloMETMuonCorrs = cms.bool(True),
50  caloMETMuonCorrs = cms.InputTag("muonMETValueMapProducer" , "muCorrData"),
51  # embedding of muon MET corrections for tcMET
52  embedTcMETMuonCorrs = cms.bool(True),
53  tcMETMuonCorrs = cms.InputTag("muonTCMETValueMapProducer", "muCorrData"),
54 
55  # embed IsoDeposits
56  isoDeposits = cms.PSet(
57  #user = cms.VInputTag(
58  # cms.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
59  # cms.InputTag("muIsoDepositJets")
60  # ),
61  ),
62 
63  # user defined isolation variables the variables defined here will be accessible
64  # via pat::Muon::userIsolation(IsolationKeys key) with the key as defined in
65  # DataFormats/PatCandidates/interface/Isolation.h
66  userIsolation = cms.PSet(
67  #user = cms.VPSet(cms.PSet(
68  # src = cms.InputTag("muIsoDepositCalByAssociatorTowers","ho"),
69  # deltaR = cms.double(0.3)
70  # ),
71  # cms.PSet(
72  # src = cms.InputTag("muIsoDepositJets"),
73  # deltaR = cms.double(0.3)
74  # )),
75  ),
76 
77  # mc matching
78  addGenMatch = cms.bool(True),
79  embedGenMatch = cms.bool(True),
80  genParticleMatch = cms.InputTag("muonMatch"), ## particles source to be used for the matching
81 
82  # efficiencies
83  addEfficiencies = cms.bool(False),
84  efficiencies = cms.PSet(),
85 
86  # resolution configurables
87  addResolutions = cms.bool(False),
88  resolutions = cms.PSet(),
89 
90  # high level selections
91  embedHighLevelSelection = cms.bool(True),
92  usePV = cms.bool(True),
93  beamLineSrc = cms.InputTag("offlineBeamSpot"),
94  pvSrc = cms.InputTag("offlinePrimaryVertices")
95 )
96 
97 
98 
99 
100 
101 
102 
103 
104 
105 
106 
107 
108 
109 
110 
111 
112 
113 
114 
115 
116 
117