CMS 3D CMS Logo

gemEfficiencyAnalyzer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
3 from RecoMuon.TrackingTools.MuonServiceProxy_cff import MuonServiceProxy
4 from DQMOffline.Muon.gemEfficiencyAnalyzerDefault_cfi import gemEfficiencyAnalyzerDefault as _gemEfficiencyAnalyzerDefault
5 
6 gemOfflineDQMTightGlbMuons = cms.EDFilter("MuonSelector",
7  src = cms.InputTag('muons'),
8  cut = cms.string(
9  '(pt > 20)'
10  '&& isGlobalMuon'
11  '&& globalTrack.isNonnull'
12  '&& passed(\'CutBasedIdTight\')'
13  ),
14  filter = cms.bool(False)
15 )
16 
17 gemOfflineDQMStaMuons = cms.EDFilter("MuonSelector",
18  src = cms.InputTag('muons'),
19  cut = cms.string(
20  '(pt > 20)'
21  '&& isStandAloneMuon'
22  '&& outerTrack.isNonnull'
23  ),
24  filter = cms.bool(False)
25 )
26 
27 gemEfficiencyAnalyzerTightGlb = _gemEfficiencyAnalyzerDefault.clone(
28  ServiceParameters = MuonServiceProxy.ServiceParameters.clone(),
29  folder = cms.untracked.string('GEM/Efficiency/type1'),
30  muonTag = cms.InputTag('gemOfflineDQMTightGlbMuons'),
31  name = cms.untracked.string('Tight GLB Muon'),
32  useGlobalMuon = cms.untracked.bool(True),
33 )
34 
35 gemEfficiencyAnalyzerSta = _gemEfficiencyAnalyzerDefault.clone(
36  ServiceParameters = MuonServiceProxy.ServiceParameters.clone(),
37  muonTag = cms.InputTag("gemOfflineDQMStaMuons"),
38  folder = cms.untracked.string('GEM/Efficiency/type2'),
39  name = cms.untracked.string('STA Muon'),
40  useGlobalMuon = cms.untracked.bool(False),
41 )
42 
43 from Configuration.Eras.Modifier_phase2_GEM_cff import phase2_GEM
44 phase2_GEM.toModify(
45  gemEfficiencyAnalyzerTightGlb,
46  etaNbins=cms.untracked.int32(15),
47  etaUp=cms.untracked.double(3.0))
48 
49 phase2_GEM.toModify(
50  gemEfficiencyAnalyzerSta,
51  etaNbins=cms.untracked.int32(15),
52  etaUp=cms.untracked.double(3.0))
53 
54 gemEfficiencyAnalyzerTightGlbSeq = cms.Sequence(
55  cms.ignore(gemOfflineDQMTightGlbMuons) *
56  gemEfficiencyAnalyzerTightGlb)
57 
58 gemEfficiencyAnalyzerStaSeq = cms.Sequence(
59  cms.ignore(gemOfflineDQMStaMuons) *
60  gemEfficiencyAnalyzerSta)
MuonServiceProxy_cff