hltTrackAssociatorByHits.ThreeHitTracksAreSpecial = cms.bool( False ) hltTrackAssociatorByDeltaR = SimTracker.TrackAssociatorProducers.trackAssociatorByPosition_cfi.trackAssociatorByPosition.clone() hltTrackAssociatorByDeltaR.method = cms.string('momdr') hltTrackAssociatorByDeltaR.QCut = cms.double(0.5) hltTrackAssociatorByDeltaR.ConsiderAllSimHits = cms.bool(True) # Note: the TrackAssociatorEDProducers defined below, and # tpToHLTtracksAssociationSequence sequence, are not currently needed # to run MTV for HLT, as it is configured to produce the # track-TrackingParticle association on the fly. The configuration # snippets below are, however, kept for reference. tpToHLTpixelTrackAssociation = _trackingParticleRecoTrackAsssociation.clone( label_tr = cms.InputTag("hltPixelTracks"), associator = cms.InputTag('hltTrackAssociatorByHits'), ignoremissingtrackcollection = cms.untracked.bool(True) ) tpToHLTiter0tracksAssociation = tpToHLTpixelTrackAssociation.clone( label_tr = cms.InputTag("hltIter0PFlowCtfWithMaterialTracks"), # associator = cms.InputTag('hltTrackAssociatorByDeltaR'), ) tpToHLTiter0HPtracksAssociation = tpToHLTpixelTrackAssociation.clone( label_tr = cms.InputTag("hltIter0PFlowTrackSelectionHighPurity"), # associator = cms.InputTag('hltTrackAssociatorByDeltaR'), ) tpToHLTiter1tracksAssociation = tpToHLTpixelTrackAssociation.clone( label_tr = cms.InputTag("hltIter1PFlowCtfWithMaterialTracks"),
import FWCore.ParameterSet.Config as cms # TrackingParticle selectors from Validation.RecoMuon.selectors_cff import * # reco::Track selectors from Validation.RecoMuon.track_selectors_cff import * # quickTrackAssociatorByHits on probeTracks used as monitor wrt MuonAssociatorByHits import SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi trackAssociatorByHits = SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHits.clone( ) from SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cfi import trackingParticleRecoTrackAsssociation as _trackingParticleRecoTrackAsssociation tpToTkmuTrackAssociation = _trackingParticleRecoTrackAsssociation.clone( associator=cms.InputTag('trackAssociatorByHits'), # label_tr = cms.InputTag('generalTracks') label_tr=cms.InputTag('probeTracks')) # # MuonAssociatorByHits used for all track collections # import SimMuon.MCTruth.MuonAssociatorByHits_cfi MABH = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone() # DEFAULTS ################################### # EfficiencyCut_track = cms.double(0.), # PurityCut_track = cms.double(0.), # EfficiencyCut_muon = cms.double(0.), # PurityCut_muon = cms.double(0.), # includeZeroHitMuons = cms.bool(True), # acceptOneStubMatchings = cms.bool(False), ##############################################
pixelVertexAnalysisTrackingOnly = vertexAnalysis.clone( do_generic_sim_plots=False, trackAssociatorMap="trackingParticlePixelTrackAsssociation", vertexRecoCollections=["pixelVertices", "selectedPixelVertices"]) ########## vertexAnalysisSelection = cms.Sequence( cms.ignore(selectedOfflinePrimaryVertices) + cms.ignore(selectedOfflinePrimaryVerticesWithBS)) ########## vertexAnalysisSequence = cms.Sequence(vertexAnalysisSelection + vertexAnalysis) vertexAnalysisSequenceTrackingOnly = cms.Sequence(vertexAnalysisSelection + vertexAnalysisTrackingOnly) from SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cfi import trackingParticleRecoTrackAsssociation as _trackingParticleRecoTrackAsssociation trackingParticlePixelTrackAsssociation = _trackingParticleRecoTrackAsssociation.clone( label_tr="pixelTracks") _vertexAnalysisSequenceTrackingOnly_trackingLowPU = vertexAnalysisSequenceTrackingOnly.copy( ) _vertexAnalysisSequenceTrackingOnly_trackingLowPU += ( trackingParticlePixelTrackAsssociation + selectedPixelVertices + pixelVertexAnalysisTrackingOnly) trackingLowPU.toReplaceWith(vertexAnalysisSequenceTrackingOnly, _vertexAnalysisSequenceTrackingOnly_trackingLowPU)
cms.ignore(selectedOfflinePrimaryVertices) + cms.ignore(selectedOfflinePrimaryVerticesWithBS) ) ########## vertexAnalysisSequence = cms.Sequence( vertexAnalysisSelection + vertexAnalysis ) vertexAnalysisSequenceTrackingOnly = cms.Sequence( vertexAnalysisSelection + vertexAnalysisTrackingOnly ) from SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cfi import trackingParticleRecoTrackAsssociation as _trackingParticleRecoTrackAsssociation trackingParticlePixelTrackAsssociation = _trackingParticleRecoTrackAsssociation.clone( label_tr = "pixelTracks" ) _vertexAnalysisSequenceTrackingOnly_trackingLowPU = vertexAnalysisSequenceTrackingOnly.copy() _vertexAnalysisSequenceTrackingOnly_trackingLowPU += ( trackingParticlePixelTrackAsssociation + selectedPixelVertices + pixelVertexAnalysisTrackingOnly ) trackingLowPU.toReplaceWith(vertexAnalysisSequenceTrackingOnly, _vertexAnalysisSequenceTrackingOnly_trackingLowPU) trackingPhase1PU70.toReplaceWith(vertexAnalysisSequenceTrackingOnly, _vertexAnalysisSequenceTrackingOnly_trackingLowPU) trackingPhase2PU140.toReplaceWith(vertexAnalysisSequenceTrackingOnly, _vertexAnalysisSequenceTrackingOnly_trackingLowPU)
import FWCore.ParameterSet.Config as cms # TrackingParticle selectors from Validation.RecoMuon.selectors_cff import * # reco::Track selectors from Validation.RecoMuon.track_selectors_cff import * # quickTrackAssociatorByHits on probeTracks used as monitor wrt MuonAssociatorByHits import SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi trackAssociatorByHits = SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHits.clone( ) from SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cfi import trackingParticleRecoTrackAsssociation as _trackingParticleRecoTrackAsssociation tpToTkmuTrackAssociation = _trackingParticleRecoTrackAsssociation.clone( associator='trackAssociatorByHits', # label_tr = 'generalTracks', label_tr='probeTracks') # # MuonAssociatorByHits used for all track collections # import SimMuon.MCTruth.MuonAssociatorByHits_cfi MABH = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone( # DEFAULTS ################################### # EfficiencyCut_track = 0., # PurityCut_track = 0., # EfficiencyCut_muon = 0., # PurityCut_muon = 0., # includeZeroHitMuons = True, # acceptOneStubMatchings = False, # rejectBadGlobal = True,
import FWCore.ParameterSet.Config as cms # TrackingParticle selectors from Validation.RecoMuon.selectors_cff import * # reco::Track selectors from Validation.RecoMuon.track_selectors_cff import * # quickTrackAssociatorByHits on probeTracks used as monitor wrt MuonAssociatorByHits import SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi trackAssociatorByHits = SimTracker.TrackAssociatorProducers.quickTrackAssociatorByHits_cfi.quickTrackAssociatorByHits.clone() from SimTracker.TrackAssociation.trackingParticleRecoTrackAsssociation_cfi import trackingParticleRecoTrackAsssociation as _trackingParticleRecoTrackAsssociation tpToTkmuTrackAssociation = _trackingParticleRecoTrackAsssociation.clone( associator = cms.InputTag('trackAssociatorByHits'), # label_tr = cms.InputTag('generalTracks') label_tr = cms.InputTag('probeTracks') ) # # MuonAssociatorByHits used for all track collections # import SimMuon.MCTruth.MuonAssociatorByHits_cfi MABH = SimMuon.MCTruth.MuonAssociatorByHits_cfi.muonAssociatorByHits.clone() # DEFAULTS ################################### # EfficiencyCut_track = cms.double(0.), # PurityCut_track = cms.double(0.), # EfficiencyCut_muon = cms.double(0.), # PurityCut_muon = cms.double(0.), # includeZeroHitMuons = cms.bool(True), # acceptOneStubMatchings = cms.bool(False), ##############################################