PageRenderTime 29ms CodeModel.GetById 16ms app.highlight 9ms RepoModel.GetById 2ms app.codeStats 0ms

/ElectroWeakAnalysis/ZMuMu/python/goodZToMuMuSameCharge_cfi.py

https://github.com/aivanov-cern/cmssw
Python | 69 lines | 44 code | 22 blank | 3 comment | 0 complexity | e0514863ee5f5f08cea33128ddf59a61 MD5 | raw file
 1import FWCore.ParameterSet.Config as cms
 2import copy
 3
 4from ElectroWeakAnalysis.ZMuMu.zSelection_cfi import *
 5
 6# same charge dimuons....
 7dimuonsGlobalSameCharge = cms.EDFilter(
 8    "CandViewRefSelector",
 9    ### added UserData
10    src = cms.InputTag("userDataDimuons"),
11    ##src = cms.InputTag("dimuons"),
12    cut = cms.string('charge!=0 & mass > 0 & daughter(0).isGlobalMuon = 1 & daughter(1).isGlobalMuon = 1')
13    )
14
15
16goodZToMuMuSameChargeLoose = cms.EDFilter(
17    "ZToMuMuIsolatedIDSelector",
18    zSelectionLoose,
19    src = cms.InputTag("dimuonsGlobalSameCharge"),
20    filter = cms.bool(True) 
21)
22
23goodZToMuMuSameChargeLoose.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 ")
24
25goodZToMuMuSameCharge = cms.EDFilter(
26    "ZToMuMuIsolatedIDSelector",
27    zSelection,
28    src = cms.InputTag("dimuonsGlobalSameCharge"),
29    filter = cms.bool(True) 
30)
31
32goodZToMuMuSameCharge.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 ")
33
34
35
36
37
38goodZToMuMuSameChargeAtLeast1HLTLoose = cms.EDFilter(
39    "ZHLTMatchFilter",
40    src = cms.InputTag("goodZToMuMuSameChargeLoose"),
41    condition =cms.string("atLeastOneMatched"),
42    hltPath = cms.string("HLT_Mu9"),
43    filter = cms.bool(True) 
44)
45
46goodZToMuMuSameChargeAtLeast1HLT = cms.EDFilter(
47    "ZHLTMatchFilter",
48    src = cms.InputTag("goodZToMuMuSameCharge"),
49    condition =cms.string("atLeastOneMatched"),
50    hltPath = cms.string("HLT_Mu9"),
51    filter = cms.bool(True) 
52)
53
54
55
56
57
58goodZToMuMuSameCharge2HLTLoose = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLTLoose)
59goodZToMuMuSameCharge2HLTLoose.condition= cms.string("bothMatched")
60
61goodZToMuMuSameCharge1HLT = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLT)
62goodZToMuMuSameCharge1HLT.condition= cms.string("bothMatched")
63
64goodZToMuMuSameCharge1HLTLoose = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLTLoose)
65goodZToMuMuSameCharge1HLTLoose.condition= cms.string("exactlyOneMatched")
66
67
68goodZToMuMuSameCharge2HLT = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLT)
69goodZToMuMuSameCharge2HLT.condition= cms.string("exactlyOneMatched")