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 
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 
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 
29 gemEfficiencyAnalyzerTight = DQMEDAnalyzer('GEMEfficiencyAnalyzer',
30  MuonServiceProxy,
31  muonTag = cms.InputTag('gemOfflineDQMTightGlbMuons'),
32  recHitTag = cms.InputTag('gemRecHits'),
33  residualXCut = cms.double(5.0),
34  ptBinning = cms.untracked.vdouble(20. ,30., 40., 50., 60., 70., 80., 90., 100., 120., 140., 200.),
35  etaNbins = cms.untracked.int32(7),
36  etaLow = cms.untracked.double(1.5),
37  etaUp = cms.untracked.double(2.2),
38  useGlobalMuon = cms.untracked.bool(True),
39  folder = cms.untracked.string('GEM/GEMEfficiency/TightGlobalMuon'),
40  logCategory = cms.untracked.string('GEMEfficiencyAnalyzerTight'),
41 )
42 
43 
44 gemEfficiencyAnalyzerSTA = gemEfficiencyAnalyzerTight.clone()
45 gemEfficiencyAnalyzerSTA.muonTag = cms.InputTag("gemOfflineDQMStaMuons")
46 gemEfficiencyAnalyzerSTA.useGlobalMuon = cms.untracked.bool(False)
47 gemEfficiencyAnalyzerSTA.folder = cms.untracked.string('GEM/GEMEfficiency/StandaloneMuon')
48 gemEfficiencyAnalyzerSTA.logCategory = cms.untracked.string('GEMEfficiencyAnalyzerSTA')
49 
50 
51 from Configuration.Eras.Modifier_phase2_GEM_cff import phase2_GEM
52 phase2_GEM.toModify(gemEfficiencyAnalyzerTight, etaNbins=cms.untracked.int32(15), etaHigh=cms.untracked.double(3.0))
53 phase2_GEM.toModify(gemEfficiencyAnalyzerSTA, etaNbins=cms.untracked.int32(15), etaHigh=cms.untracked.double(3.0))
54 
55 
56 gemEfficiencyAnalyzerTightSeq = cms.Sequence(
57  cms.ignore(gemOfflineDQMTightGlbMuons) *
58  gemEfficiencyAnalyzerTight)
59 
60 gemEfficiencyAnalyzerSTASeq = cms.Sequence(
61  cms.ignore(gemOfflineDQMStaMuons) *
62  gemEfficiencyAnalyzerSTA)
MuonServiceProxy_cff
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1