test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
goodZToMuMuSameCharge_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 import copy
3 
5 
6 # same charge dimuons....
7 dimuonsGlobalSameCharge = 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 
16 goodZToMuMuSameChargeLoose = cms.EDFilter(
17  "ZToMuMuIsolatedIDSelector",
18  zSelectionLoose,
19  src = cms.InputTag("dimuonsGlobalSameCharge"),
20  filter = cms.bool(True)
21 )
22 
23 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 ")
24 
25 goodZToMuMuSameCharge = cms.EDFilter(
26  "ZToMuMuIsolatedIDSelector",
27  zSelection,
28  src = cms.InputTag("dimuonsGlobalSameCharge"),
29  filter = cms.bool(True)
30 )
31 
32 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 ")
33 
34 
35 
36 
37 
38 goodZToMuMuSameChargeAtLeast1HLTLoose = 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 
46 goodZToMuMuSameChargeAtLeast1HLT = 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 
58 goodZToMuMuSameCharge2HLTLoose = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLTLoose)
59 goodZToMuMuSameCharge2HLTLoose.condition= cms.string("bothMatched")
60 
61 goodZToMuMuSameCharge1HLT = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLT)
62 goodZToMuMuSameCharge1HLT.condition= cms.string("bothMatched")
63 
64 goodZToMuMuSameCharge1HLTLoose = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLTLoose)
65 goodZToMuMuSameCharge1HLTLoose.condition= cms.string("exactlyOneMatched")
66 
67 
68 goodZToMuMuSameCharge2HLT = copy.deepcopy(goodZToMuMuSameChargeAtLeast1HLT)
69 goodZToMuMuSameCharge2HLT.condition= cms.string("exactlyOneMatched")