CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_4_5_patch3/src/ElectroWeakAnalysis/ZMuMu/python/goodZToMuMuSameCharge_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 import copy
00003 
00004 from ElectroWeakAnalysis.ZMuMu.zSelection_cfi import *
00005 
00006 # same charge dimuons....
00007 dimuonsGlobalSameCharge = cms.EDFilter(
00008     "CandViewRefSelector",
00009     ### added UserData
00010     src = cms.InputTag("userDataDimuons"),
00011     ##src = cms.InputTag("dimuons"),
00012     cut = cms.string('charge!=0 & mass > 0 & daughter(0).isGlobalMuon = 1 & daughter(1).isGlobalMuon = 1')
00013     )
00014 
00015 
00016 goodZToMuMuSameChargeLoose = cms.EDFilter(
00017     "ZToMuMuIsolatedIDSelector",
00018     zSelectionLoose,
00019     src = cms.InputTag("dimuonsGlobalSameCharge"),
00020     filter = cms.bool(True) 
00021 )
00022 
00023 goodZToMuMuSameChargeLoose.cut=cms.string("charge!=0 & daughter(0).pt > 10 & daughter(1).pt > 10 & abs(daughter(0).eta)<2.1 & abs(daughter(1).eta)<2.1 ")
00024 
00025 goodZToMuMuSameCharge = cms.EDFilter(
00026     "ZToMuMuIsolatedIDSelector",
00027     zSelection,
00028     src = cms.InputTag("dimuonsGlobalSameCharge"),
00029     filter = cms.bool(True) 
00030 )
00031 
00032 goodZToMuMuSameCharge.cut=cms.string("charge!=0 & daughter(0).pt > 20 & daughter(1).pt > 20 & abs(daughter(0).eta)<2.1 & abs(daughter(1).eta)<2.1 ")
00033 
00034 
00035 
00036 
00037 
00038 goodZToMuMuSameChargeAtLeast1HLTLoose = cms.EDFilter(
00039     "ZHLTMatchFilter",
00040     src = cms.InputTag("goodZToMuMuSameChargeLoose"),
00041     condition =cms.string("atLeastOneMatched"),
00042     hltPath = cms.string("HLT_Mu9"),
00043     filter = cms.bool(True) 
00044 )
00045 
00046 goodZToMuMuSameChargeAtLeast1HLT = cms.EDFilter(
00047     "ZHLTMatchFilter",
00048     src = cms.InputTag("goodZToMuMuSameCharge"),
00049     condition =cms.string("atLeastOneMatched"),
00050     hltPath = cms.string("HLT_Mu9"),
00051     filter = cms.bool(True) 
00052 )
00053 
00054 
00055 
00056 
00057 
00058 goodZToMuMuSameCharge2HLTLoose = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLTLoose)
00059 goodZToMuMuSameCharge2HLTLoose.condition= cms.string("bothMatched")
00060 
00061 goodZToMuMuSameCharge1HLT = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLT)
00062 goodZToMuMuSameCharge1HLT.condition= cms.string("bothMatched")
00063 
00064 goodZToMuMuSameCharge1HLTLoose = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLTLoose)
00065 goodZToMuMuSameCharge1HLTLoose.condition= cms.string("exactlyOneMatched")
00066 
00067 
00068 goodZToMuMuSameCharge2HLT = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLT)
00069 goodZToMuMuSameCharge2HLT.condition= cms.string("exactlyOneMatched")