CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_2_9/src/PhysicsTools/PatAlgos/python/triggerLayer1/triggerMatcher_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # Examples for configurations of the trigger match for various physics objects
00004 #
00005 # A detailed description is given in
00006 # https://twiki.cern.ch/twiki/bin/view/CMS/SWGuidePATTrigger#PATTriggerMatcher
00007 # Cuts on the parameters
00008 # - 'maxDPtRel' and
00009 # - 'maxDeltaR'
00010 # are NOT tuned (using old values from TQAF MC match, January 2008)
00011 
00012 
00013 ## Default example matches ##
00014 
00015 # firing trigger objects used in succeeding HLT path 'HLT_Mu20'
00016 cleanMuonTriggerMatchHLTMu20 = cms.EDProducer(
00017   "PATTriggerMatcherDRDPtLessByR"                 # match by DeltaR only, best match by DeltaR
00018 , src     = cms.InputTag( "cleanPatMuons" )
00019 , matched = cms.InputTag( "patTrigger" )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00020 , matchedCuts = cms.string( 'path( "HLT_Mu20_v*" )' )
00021 , maxDPtRel = cms.double( 0.5 )
00022 , maxDeltaR = cms.double( 0.5 )
00023 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00024 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00025 )
00026 
00027 # firing trigger objects used in succeeding HLT path 'HLT_DoubleMu6'
00028 cleanMuonTriggerMatchHLTDoubleMu6 = cms.EDProducer(
00029   "PATTriggerMatcherDRDPtLessByR"                 # match by DeltaR only, best match by DeltaR
00030 , src     = cms.InputTag( "cleanPatMuons" )
00031 , matched = cms.InputTag( "patTrigger" )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00032 , matchedCuts = cms.string( 'path( "HLT_DoubleMu6_v*" )' )
00033 , maxDPtRel = cms.double( 0.5 )
00034 , maxDeltaR = cms.double( 0.5 )
00035 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00036 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00037 )
00038 
00039 # firing trigger objects used in succeeding HLT path 'HLT_Photon26_IsoVL_Photon18'
00040 cleanPhotonTriggerMatchHLTPhoton26IsoVLPhoton18 = cms.EDProducer(
00041   "PATTriggerMatcherDRDPtLessByR"                 # match by DeltaR only, best match by DeltaR
00042 , src     = cms.InputTag( "cleanPatPhotons" )
00043 , matched = cms.InputTag( "patTrigger" )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00044 , matchedCuts = cms.string( 'path( "HLT_Photon26_IsoVL_Photon18_v*" )' )
00045 , maxDPtRel = cms.double( 0.5 )
00046 , maxDeltaR = cms.double( 0.5 )
00047 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00048 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00049 )
00050 
00051 # firing trigger objects used in succeeding HLT path 'HLT_Ele27_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT'
00052 cleanElectronTriggerMatchHLTEle27CaloIdVTCaloIsoTTrkIdTTrkIsoT = cms.EDProducer(
00053   "PATTriggerMatcherDRDPtLessByR"                 # match by DeltaR only, best match by DeltaR
00054 , src     = cms.InputTag( "cleanPatElectrons" )
00055 , matched = cms.InputTag( "patTrigger" )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00056 , matchedCuts = cms.string( 'path( "HLT_Ele27_CaloIdVT_CaloIsoT_TrkIdT_TrkIsoT_v*" )' )
00057 , maxDPtRel = cms.double( 0.5 )
00058 , maxDeltaR = cms.double( 0.5 )
00059 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00060 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00061 )
00062 
00063 # firing trigger objects used in succeeding HLT path 'HLT_DoubleIsoPFTau20_Trk5'
00064 cleanTauTriggerMatchHLTDoubleIsoPFTau20Trk5 = cms.EDProducer(
00065   "PATTriggerMatcherDRDPtLessByR"                 # match by DeltaR only, best match by DeltaR
00066 , src     = cms.InputTag( "cleanPatTaus" )
00067 , matched = cms.InputTag( "patTrigger" )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00068 , matchedCuts = cms.string( 'path( "HLT_DoubleIsoPFTau20_Trk5_v*" )' )
00069 , maxDPtRel = cms.double( 0.5 )
00070 , maxDeltaR = cms.double( 0.5 )
00071 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00072 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00073 )
00074 
00075 # firing trigger objects used in succeeding HLT path 'HLT_Jet240'
00076 cleanJetTriggerMatchHLTJet240 = cms.EDProducer(
00077   "PATTriggerMatcherDRLessByR"                    # match by DeltaR only, best match by DeltaR
00078 , src     = cms.InputTag( 'cleanPatJets' )
00079 , matched = cms.InputTag( 'patTrigger' )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00080 , matchedCuts = cms.string( 'path( "HLT_Jet240_v*" )' )
00081 , maxDPtRel = cms.double( 3.0 )
00082 , maxDeltaR = cms.double( 0.4 )
00083 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00084 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00085 )
00086 
00087 # firing trigger objects used in succeeding HLT path 'HLT_MET100'
00088 metTriggerMatchHLTMET100 = cms.EDProducer(
00089   "PATTriggerMatcherDRLessByR"                    # match by DeltaR only, best match by DeltaR
00090 , src     = cms.InputTag( 'patMETs' )
00091 , matched = cms.InputTag( 'patTrigger' )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00092 , matchedCuts = cms.string( 'path( "HLT_MET100_v*" )' )
00093 , maxDPtRel = cms.double( 3.0 )
00094 , maxDeltaR = cms.double( 0.4 )
00095 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00096 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00097 )
00098 
00099 # firing trigger objects used in succeeding HLT path 'HLT_Mu17_CentralJet30_v' (x-trigger)
00100 cleanMuonTriggerMatchHLTMu17CentralJet30 = cms.EDProducer(
00101   "PATTriggerMatcherDRDPtLessByR"                 # match by DeltaR only, best match by DeltaR
00102 , src     = cms.InputTag( "cleanPatMuons" )
00103 , matched = cms.InputTag( "patTrigger" )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00104 , matchedCuts = cms.string( 'type( "TriggerMuon" ) && path( "HLT_Mu17_CentralJet30_v*" )' )
00105 , maxDPtRel = cms.double( 0.5 )
00106 , maxDeltaR = cms.double( 0.5 )
00107 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00108 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00109 )
00110 cleanJetTriggerMatchHLTMu17CentralJet30 = cms.EDProducer(
00111   "PATTriggerMatcherDRDPtLessByR"                 # match by DeltaR only, best match by DeltaR
00112 , src     = cms.InputTag( "cleanPatJets" )
00113 , matched = cms.InputTag( "patTrigger" )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00114 , matchedCuts = cms.string( 'type( "TriggerJet" ) && path( "HLT_Mu17_CentralJet30_v*" )' )
00115 , maxDPtRel = cms.double( 3.0 )
00116 , maxDeltaR = cms.double( 0.4 )
00117 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00118 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00119 )
00120 
00121 
00122 triggerMatchingDefaultSequence = cms.Sequence(
00123   cleanMuonTriggerMatchHLTMu20
00124 + cleanMuonTriggerMatchHLTDoubleMu6
00125 + cleanPhotonTriggerMatchHLTPhoton26IsoVLPhoton18
00126 + cleanElectronTriggerMatchHLTEle27CaloIdVTCaloIsoTTrkIdTTrkIsoT
00127 + cleanTauTriggerMatchHLTDoubleIsoPFTau20Trk5
00128 + cleanJetTriggerMatchHLTJet240
00129 + metTriggerMatchHLTMET100
00130 + cleanMuonTriggerMatchHLTMu17CentralJet30
00131 + cleanJetTriggerMatchHLTMu17CentralJet30
00132 )
00133 
00134 
00135 ## Further examples ##
00136 
00137 # L1 e/gammas by original collection
00138 cleanElectronTriggerMatchL1EGammaCollection = cms.EDProducer(
00139   "PATTriggerMatcherDRLessByR"                  # match by DeltaR only, best match by DeltaR
00140 , src     = cms.InputTag( 'cleanPatElectrons' )
00141 , matched = cms.InputTag( 'patTrigger' )        # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00142 , matchedCuts = cms.string( 'coll( "l1extraParticles:NonIsolated" ) || coll( "l1extraParticles:Isolated" )' )
00143 , maxDPtRel = cms.double( 0.5 )
00144 , maxDeltaR = cms.double( 0.5 )
00145 , resolveAmbiguities    = cms.bool( True )      # only one match per trigger object
00146 , resolveByMatchQuality = cms.bool( False )     # take first match found per reco object
00147 )
00148 
00149 # L1 and HLT muons by ID
00150 cleanMuonTriggerMatchTriggerMuon = cms.EDProducer(
00151   "PATTriggerMatcherDRDPtLessByR"           # match by DeltaR and DeltaPt, best match by DeltaR
00152 , src     = cms.InputTag( 'cleanPatMuons' )
00153 , matched = cms.InputTag( 'patTrigger' )    # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00154 , matchedCuts = cms.string( 'type( "TriggerL1Mu" ) || type( "TriggerMuon" )' )
00155 , maxDPtRel = cms.double( 0.5 )
00156 , maxDeltaR = cms.double( 0.5 )
00157 , resolveAmbiguities    = cms.bool( True )  # only one match per trigger object
00158 , resolveByMatchQuality = cms.bool( False ) # take first match found per reco object
00159 )
00160 
00161 # firing trigger objects used in succeeding HLT paths of PD /SingleMu
00162 cleanMuonTriggerMatchPDSingleMu = cms.EDProducer(
00163   "PATTriggerMatcherDRDPtLessByR"                 # match by DeltaR and DeltaPt, best match by DeltaR
00164 , src     = cms.InputTag( 'cleanPatMuons' )
00165 , matched = cms.InputTag( 'patTrigger' )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00166 , matchedCuts = cms.string( 'path( "HLT_IsoMu12_v*" ) || path( "HLT_IsoMu15_v*" ) || path( "HLT_IsoMu17_v*" ) || path( "HLT_IsoMu24_v*" ) || path( "HLT_IsoMu30_v*" ) || path( "HLT_L1SingleMu10_v*" ) || path( "HLT_L1SingleMu20_v*" ) || path( "HLT_L2Mu10_v*" ) || path( "HLT_L2Mu20_v*" ) || path( "HLT_Mu3_v*" ) || path( "HLT_Mu5_v*" ) || path( "HLT_Mu8_v*" ) || path( "HLT_Mu12_v*" ) || path( "HLT_Mu15_v*" ) || path( "HLT_Mu20_v*" ) || path( "HLT_Mu24_v*" ) || path( "HLT_Mu30_v*" )' )
00167 , maxDPtRel = cms.double( 0.5 )
00168 , maxDeltaR = cms.double( 0.5 )
00169 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00170 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00171 )
00172 
00173 # all trigger objects used in HLT path 'HLT_Mu20' (fake MET)
00174 metTriggerMatchHLTMu20 = cms.EDProducer(
00175   "PATTriggerMatcherDRLessByR"                    # match by DeltaR only, best match by DeltaR
00176 , src     = cms.InputTag( 'patMETs' )
00177 , matched = cms.InputTag( 'patTrigger' )          # default producer label as defined in PhysicsTools/PatAlgos/python/triggerLayer1/triggerProducer_cfi.py
00178 , matchedCuts = cms.string( 'path( "HLT_Mu20_v*" )' )
00179 , maxDPtRel = cms.double( 0.5 )
00180 , maxDeltaR = cms.double( 0.5 )
00181 , resolveAmbiguities    = cms.bool( True )        # only one match per trigger object
00182 , resolveByMatchQuality = cms.bool( True )        # take best match found per reco object: by DeltaR here (s. above)
00183 )