Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:02

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 # Produces a collection recoMuons_refitMuons__* consisting of the
0004 # reco::Muons from the src collection (default is the merged muons
0005 # collection, only taking those Muons for which isGlobalMuon() is
0006 # true) with the kinematics replaced by those from the refit tracks
0007 # chosen. The default below chooses the tracks using the "cocktail"
0008 # function found in DataFormats/MuonReco/src/MuonCocktails.cc.
0009 
0010 refitMuons = cms.EDProducer('MuonsFromRefitTracksProducer',
0011     # The input MuonCollection from which the starting Muon objects
0012     # will be taken. The module will only consider globalMuons from
0013     # the merged muon collection, i.e. trackerMuons, stand-alone muons
0014     # will be filtered out of the merged MuonCollection.
0015     src = cms.InputTag('muons1stStep'),
0016 
0017     # The particular set of refit tracks to use. Could also be
0018     # 'tevMuons:default', 'tevMuons:picky', or 'tevMuons:firstHit' to
0019     # use the corresponding refits; 'none' to use this module as just
0020     # a filter for globalMuons (as opposed to trackerMuons or
0021     # caloMuons); to make Muons out of the cocktail tracks, 'tevMuons'
0022     # by itself must be used (also specifying fromCocktail = True
0023     # below).
0024     tevMuonTracks = cms.string('tevMuons'),
0025 
0026     # Exactly one of the below boolean flags may be True (determines
0027     # the refit track picked for each muon).
0028 
0029     # Whether to call muon::tevOptimized as in the above code and use
0030     # the result of the cocktail choice.
0031     fromCocktail = cms.bool(True),
0032 
0033     # Whether to replace the input muons' kinematics with that of the
0034     # tracker-only fit. I.e., the muon's momentum, vertex, and charge are
0035     # taken from the track accessed by reco::Muon::innerTrack().
0036     fromTrackerTrack = cms.bool(False),
0037 
0038     # Whether to replace the input muons' kinematics with that of the
0039     # tracker-only fit. I.e., the muon's momentum, vertex, and charge are
0040     # taken from the track accessed by reco::Muon::innerTrack().
0041     fromGlobalTrack = cms.bool(False),
0042 
0043     # Whether to apply the TMR cocktail algorithm. For each muon track, we
0044     # start with the first-muon-hit fit. If the difference in -ln(chi^2
0045     # tail probability) between the first-muon-hit and tracker-only is
0046     # greater than the below prescribed cut value, the tracker-only fit
0047     # replaces the first-muon-hit. For further details see XXX.
0048     fromTMR = cms.bool(False),
0049 
0050     # The cut value used in the TMR cocktail.
0051     TMRcut = cms.double(4.0),
0052 
0053     # Whether to use Adam Everett's sigma-switch method, choosing
0054     # between the global track and the tracker track.
0055     fromSigmaSwitch = cms.bool(False),
0056 
0057     # The number of sigma to switch on in the above method.
0058     nSigmaSwitch = cms.double(2),
0059     
0060     # The pT threshold to switch at in the above method.
0061     ptThreshold = cms.double(200),
0062 )