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