CMS 3D CMS Logo

refitMuons_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 # Produces a collection recoMuons_refitMuons__* consisting of the
4 # reco::Muons from the src collection (default is the merged muons
5 # collection, only taking those Muons for which isGlobalMuon() is
6 # true) with the kinematics replaced by those from the refit tracks
7 # chosen. The default below chooses the tracks using the "cocktail"
8 # function found in DataFormats/MuonReco/src/MuonCocktails.cc.
9 
10 refitMuons = cms.EDProducer('MuonsFromRefitTracksProducer',
11  # The input MuonCollection from which the starting Muon objects
12  # will be taken. The module will only consider globalMuons from
13  # the merged muon collection, i.e. trackerMuons, stand-alone muons
14  # will be filtered out of the merged MuonCollection.
15  src = cms.InputTag('muons1stStep'),
16 
17  # The particular set of refit tracks to use. Could also be
18  # 'tevMuons:default', 'tevMuons:picky', or 'tevMuons:firstHit' to
19  # use the corresponding refits; 'none' to use this module as just
20  # a filter for globalMuons (as opposed to trackerMuons or
21  # caloMuons); to make Muons out of the cocktail tracks, 'tevMuons'
22  # by itself must be used (also specifying fromCocktail = True
23  # below).
24  tevMuonTracks = cms.string('tevMuons'),
25 
26  # Exactly one of the below boolean flags may be True (determines
27  # the refit track picked for each muon).
28 
29  # Whether to call muon::tevOptimized as in the above code and use
30  # the result of the cocktail choice.
31  fromCocktail = cms.bool(True),
32 
33  # Whether to replace the input muons' kinematics with that of the
34  # tracker-only fit. I.e., the muon's momentum, vertex, and charge are
35  # taken from the track accessed by reco::Muon::innerTrack().
36  fromTrackerTrack = cms.bool(False),
37 
38  # Whether to replace the input muons' kinematics with that of the
39  # tracker-only fit. I.e., the muon's momentum, vertex, and charge are
40  # taken from the track accessed by reco::Muon::innerTrack().
41  fromGlobalTrack = cms.bool(False),
42 
43  # Whether to apply the TMR cocktail algorithm. For each muon track, we
44  # start with the first-muon-hit fit. If the difference in -ln(chi^2
45  # tail probability) between the first-muon-hit and tracker-only is
46  # greater than the below prescribed cut value, the tracker-only fit
47  # replaces the first-muon-hit. For further details see XXX.
48  fromTMR = cms.bool(False),
49 
50  # The cut value used in the TMR cocktail.
51  TMRcut = cms.double(4.0),
52 
53  # Whether to use Adam Everett's sigma-switch method, choosing
54  # between the global track and the tracker track.
55  fromSigmaSwitch = cms.bool(False),
56 
57  # The number of sigma to switch on in the above method.
58  nSigmaSwitch = cms.double(2),
59 
60  # The pT threshold to switch at in the above method.
61  ptThreshold = cms.double(200),
62 )