Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:33:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 #####################################################################################
0004 # Configurations for RecoMuonValidator
0005 #
0006 
0007 from RecoMuon.TrackingTools.MuonServiceProxy_cff import *
0008 from Validation.RecoMuon.RecoMuonValidator_cfi import *
0009 #
0010 from SimMuon.MCTruth.muonAssociatorByHitsNoSimHitsHelper_cfi import *
0011 from SimMuon.MCTruth.MuonAssociatorByHits_cfi import muonAssociatorByHitsCommonParameters
0012 
0013 #tracker
0014 muonAssociatorByHitsNoSimHitsHelperTrk = muonAssociatorByHitsNoSimHitsHelper.clone(
0015     UseTracker = True,
0016     UseMuon  = False
0017 )
0018 recoMuonVMuAssoc_trk = recoMuonValidator.clone(
0019     subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Trk',
0020     muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperTrk',
0021     trackType = 'inner',
0022     selection = "isTrackerMuon",
0023     simLabel = ("TPmu"),
0024     tpRefVector = True
0025 )
0026 recoMuonVMuAssoc_trk.tpSelector.src = ("TPmu")
0027 #standalone
0028 muonAssociatorByHitsNoSimHitsHelperStandalone = muonAssociatorByHitsNoSimHitsHelper.clone(
0029     UseTracker = False,
0030     UseMuon  = True
0031 )
0032 recoMuonVMuAssoc_sta = recoMuonValidator.clone(
0033     subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Sta',
0034     muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperStandalone',
0035     trackType = 'outer',
0036     selection = "isStandAloneMuon",
0037     simLabel = ("TPmu"),
0038     tpRefVector = True
0039 
0040 )
0041 recoMuonVMuAssoc_sta.tpSelector.src = ("TPmu")
0042 #global
0043 muonAssociatorByHitsNoSimHitsHelperGlobal = muonAssociatorByHitsNoSimHitsHelper.clone(
0044     UseTracker = True,
0045     UseMuon  = True
0046 )
0047 recoMuonVMuAssoc_glb = recoMuonValidator.clone(
0048     subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Glb',
0049     muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperGlobal',
0050     trackType = 'global',
0051     selection = "isGlobalMuon",
0052     simLabel = ("TPmu"),
0053     tpRefVector = True,
0054 )
0055 recoMuonVMuAssoc_glb.tpSelector.src = ("TPmu")
0056 #tight
0057 muonAssociatorByHitsNoSimHitsHelperTight = muonAssociatorByHitsNoSimHitsHelper.clone(
0058     UseTracker = True,
0059     UseMuon  = True
0060 )
0061 recoMuonVMuAssoc_tgt = recoMuonValidator.clone(
0062     subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_Tgt',
0063     muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperTight',
0064     trackType = 'global',
0065     selection = 'isGlobalMuon',
0066     wantTightMuon = True,
0067     beamSpot = 'offlineBeamSpot',
0068     primaryVertex = 'offlinePrimaryVertices',
0069     simLabel = ("TPmu"),
0070     tpRefVector = True,
0071 )
0072 recoMuonVMuAssoc_tgt.tpSelector.src = ("TPmu")
0073 ##########################################################################
0074 # Muon validation sequence using RecoMuonValidator
0075 #
0076 
0077 muonValidationRMV_seq = cms.Sequence(
0078     muonAssociatorByHitsNoSimHitsHelperTrk +recoMuonVMuAssoc_trk
0079     +muonAssociatorByHitsNoSimHitsHelperStandalone +recoMuonVMuAssoc_sta
0080     +muonAssociatorByHitsNoSimHitsHelperGlobal +recoMuonVMuAssoc_glb
0081     +muonAssociatorByHitsNoSimHitsHelperTight +recoMuonVMuAssoc_tgt
0082     )
0083 
0084 # not used
0085 #
0086 #tracker and PF
0087 #muonAssociatorByHitsNoSimHitsHelperTrkPF = muonAssociatorByHitsNoSimHitsHelper.clone()
0088 #muonAssociatorByHitsNoSimHitsHelperTrkPF.UseTracker = True
0089 #muonAssociatorByHitsNoSimHitsHelperTrkPF.UseMuon  = False
0090 #recoMuonVMuAssoc_trkPF = recoMuonValidator.clone()
0091 #recoMuonVMuAssoc_trkPF.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_TrkPF'
0092 #recoMuonVMuAssoc_trkPF.usePFMuon = True
0093 #recoMuonVMuAssoc_trkPF.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperTrkPF'
0094 #recoMuonVMuAssoc_trkPF.trackType = 'inner'
0095 #recoMuonVMuAssoc_trkPF.selection = "isTrackerMuon & isPFMuon"
0096 #
0097 #seed of StandAlone
0098 #muonAssociatorByHitsNoSimHitsHelperSeedStandalone = muonAssociatorByHitsNoSimHitsHelper.clone()
0099 #muonAssociatorByHitsNoSimHitsHelperSeedStandalone.UseTracker = False
0100 #muonAssociatorByHitsNoSimHitsHelperSeedStandalone.UseMuon  = True
0101 #recoMuonVMuAssoc_seedSta = recoMuonValidator.clone()
0102 #recoMuonVMuAssoc_seedSta.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_SeedSta'
0103 #recoMuonVMuAssoc_seedSta.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperStandalone'
0104 #recoMuonVMuAssoc_seedSta.trackType = 'outer'
0105 #recoMuonVMuAssoc_seedSta.selection = ""
0106 #
0107 #standalone and PF
0108 #muonAssociatorByHitsNoSimHitsHelperStandalonePF = muonAssociatorByHitsNoSimHitsHelper.clone()
0109 #muonAssociatorByHitsNoSimHitsHelperStandalonePF.UseTracker = False
0110 #muonAssociatorByHitsNoSimHitsHelperStandalonePF.UseMuon  = True
0111 #recoMuonVMuAssoc_staPF = recoMuonValidator.clone()
0112 #recoMuonVMuAssoc_staPF.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_StaPF'
0113 #recoMuonVMuAssoc_staPF.usePFMuon = True
0114 #recoMuonVMuAssoc_staPF.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperStandalonePF'
0115 #recoMuonVMuAssoc_staPF.trackType = 'outer'
0116 #recoMuonVMuAssoc_staPF.selection = "isStandAloneMuon & isPFMuon"
0117 #
0118 #global and PF
0119 #muonAssociatorByHitsNoSimHitsHelperGlobalPF = muonAssociatorByHitsNoSimHitsHelper.clone()
0120 #muonAssociatorByHitsNoSimHitsHelperGlobalPF.UseTracker = True
0121 #muonAssociatorByHitsNoSimHitsHelperGlobalPF.UseMuon  = True
0122 #recoMuonVMuAssoc_glbPF = recoMuonValidator.clone()
0123 #recoMuonVMuAssoc_glbPF.subDir = 'Muons/RecoMuonV/RecoMuon_MuonAssoc_GlbPF'
0124 #recoMuonVMuAssoc_glbPF.usePFMuon = True
0125 #recoMuonVMuAssoc_glbPF.muAssocLabel = 'muonAssociatorByHitsNoSimHitsHelperGlobalPF'
0126 #recoMuonVMuAssoc_glbPF.trackType = 'global'
0127 #recoMuonVMuAssoc_glbPF.selection = "isGlobalMuon & isPFMuon"
0128 #
0129 #muonValidationRMV_seq = cms.Sequence(
0130 #    muonAssociatorByHitsNoSimHitsHelperTrk +recoMuonVMuAssoc_trk
0131 #    +muonAssociatorByHitsNoSimHitsHelperStandalone +recoMuonVMuAssoc_sta
0132 #    +muonAssociatorByHitsNoSimHitsHelperGlobal +recoMuonVMuAssoc_glb
0133 #    +muonAssociatorByHitsNoSimHitsHelperTight +recoMuonVMuAssoc_tgt
0134 #     
0135 #    +muonAssociatorByHitsNoSimHitsHelperTrkPF +recoMuonVMuAssoc_trkPF
0136 #    +muonAssociatorByHitsNoSimHitsHelperStandalonePF +recoMuonVMuAssoc_staPF
0137 #    +muonAssociatorByHitsNoSimHitsHelperGlobalPF +recoMuonVMuAssoc_glbPF
0138 #    )
0139 #