CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
singleMuonSkim_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 #from HLTrigger.HLTfilters.hltHighLevel_cfi import *
4 #exoticaMuHLT = hltHighLevel
5 #Define the HLT path to be used.
6 #exoticaMuHLT.HLTPaths =['HLT_L1MuOpen']
7 #exoticaMuHLT.TriggerResultsTag = cms.InputTag("TriggerResults","","HLT8E29")
8 
9 #Define the HLT quality cut
10 #exoticaHLTMuonFilter = cms.EDFilter("HLTSummaryFilter",
11 # summary = cms.InputTag("hltTriggerSummaryAOD","","HLT8E29"), # trigger summary
12 # member = cms.InputTag("hltL3MuonCandidates","","HLT8E29"), # filter or collection
13 # cut = cms.string("pt>0"), # cut on trigger object
14 # minN = cms.int32(0) # min. # of passing objects needed
15 # )
16 
17 
18 #Define the Reco quality cut
19 singleRecoMuonPt20Filter = cms.EDFilter("MuonRefSelector",
20  src = cms.InputTag("muons"),
21  cut = cms.string('pt > 20.0 && abs(eta) < 2.1' ),
22  filter = cms.bool(True),
23  minN = cms.int32(1)
24  )
25 
26 singleRecoMuonPt15Filter = cms.EDFilter("MuonRefSelector",
27  src = cms.InputTag("muons"),
28  cut = cms.string('pt > 15.0 && abs(eta) < 2.1' ),
29  filter = cms.bool(True),
30  minN = cms.int32(1)
31  )
32 
33 singleRecoMuonPt10Filter = cms.EDFilter("MuonRefSelector",
34  src = cms.InputTag("muons"),
35  cut = cms.string('pt > 10.0 && abs(eta) < 2.1' ),
36  filter = cms.bool(True),
37  minN = cms.int32(1)
38  )
39 
40 singleRecoMuonPt5Filter = cms.EDFilter("MuonRefSelector",
41  src = cms.InputTag("muons"),
42  cut = cms.string('pt > 0.5 && abs(eta) < 2.1 && isGlobalMuon == 1 && abs (track().d0) < 2 ' ),
43  filter = cms.bool(True),
44  minN = cms.int32(1)
45  )
46 
47 
48 muonSCMerger = cms.EDFilter("EgammaSuperClusterMerger",
49  src = cms.VInputTag(cms.InputTag('correctedHybridSuperClusters'),
50  cms.InputTag('correctedMulti5x5SuperClustersWithPreshower'))
51  )
52 muonSCCands = cms.EDProducer("ConcreteEcalCandidateProducer",
53  src = cms.InputTag("muonSCMerger"),
54  particleType = cms.string('mu+')
55  )
56 
57 goodMuonSCs = cms.EDFilter("CandViewRefSelector",
58  src = cms.InputTag("muonSCCands"),
59  cut = cms.string('et > 2.0')
60  )
61 
62 muonSCPt5Filter = cms.EDFilter("CandViewCountFilter",
63  src = cms.InputTag("goodMuonSCs"),
64  minNumber = cms.uint32(2)
65  )
66 
67 muonEmClusters = cms.Sequence(
68  muonSCMerger+muonSCCands+goodMuonSCs+muonSCPt5Filter
69  )
70 
71 
72 #Define group sequence, using HLT/Reco quality cut.
73 #singleMuHLTQualitySeq = cms.Sequence()
74 singleMuPt20RecoQualitySeq = cms.Sequence(
75  #singleMuHLT+
76  singleRecoMuonPt20Filter
77 )
78 
79 singleMuPt15RecoQualitySeq = cms.Sequence(
80  #singleMuHLT+
81  singleRecoMuonPt15Filter
82 )
83 
84 singleMuPt10RecoQualitySeq = cms.Sequence(
85  #singleMuHLT+
86  singleRecoMuonPt10Filter
87 )
88 
89 singleMuPt5RecoQualitySeq = cms.Sequence(
90  #singleMuHLT+
91 # muonEmClusters+
92  singleRecoMuonPt5Filter
93  )