1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
4 from DQMOffline.Muon.gemEfficiencyAnalyzerDefault_cfi
import gemEfficiencyAnalyzerDefault
as _gemEfficiencyAnalyzerDefault
7 gemOfflineDQMTightGlbMuons = cms.EDFilter(
"MuonSelector",
8 src = cms.InputTag(
'muons'),
12 '&& globalTrack.isNonnull'
13 '&& passed(\'CutBasedIdTight\')'
15 filter = cms.bool(
False)
18 gemOfflineDQMStaMuons = cms.EDFilter(
"MuonSelector",
19 src = cms.InputTag(
'muons'),
23 '&& outerTrack.isNonnull'
25 filter = cms.bool(
False)
28 gemEfficiencyAnalyzerTightGlb = _gemEfficiencyAnalyzerDefault.clone(
29 ServiceParameters = MuonServiceProxy.ServiceParameters.clone(),
30 folder =
'GEM/Efficiency/type1',
31 muonTag =
'gemOfflineDQMTightGlbMuons',
32 name =
'Tight GLB Muon',
36 gemEfficiencyAnalyzerSta = _gemEfficiencyAnalyzerDefault.clone(
37 ServiceParameters = MuonServiceProxy.ServiceParameters.clone(),
38 muonTag = cms.InputTag(
"gemOfflineDQMStaMuons"),
39 folder =
'GEM/Efficiency/type2',
41 useGlobalMuon =
False,
44 from Configuration.Eras.Modifier_phase2_GEM_cff
import phase2_GEM
45 phase2_GEM.toModify(gemEfficiencyAnalyzerTightGlb,
52 phase2_GEM.toModify(gemEfficiencyAnalyzerSta,
59 gemEfficiencyAnalyzerTightGlbSeq = cms.Sequence(
60 cms.ignore(gemOfflineDQMTightGlbMuons) *
61 gemEfficiencyAnalyzerTightGlb)
63 gemEfficiencyAnalyzerStaSeq = cms.Sequence(
64 cms.ignore(gemOfflineDQMStaMuons) *
65 gemEfficiencyAnalyzerSta)