1 import FWCore.ParameterSet.Config
as cms
2 from DQMServices.Core.DQMEDAnalyzer
import DQMEDAnalyzer
6 gemOfflineDQMTightGlbMuons = cms.EDFilter(
"MuonSelector",
7 src = cms.InputTag(
'muons'),
11 '&& globalTrack.isNonnull'
12 '&& passed(\'CutBasedIdTight\')'
14 filter = cms.bool(
False)
18 gemOfflineDQMStaMuons = cms.EDFilter(
"MuonSelector",
19 src = cms.InputTag(
'muons'),
23 '&& outerTrack.isNonnull'
25 filter = cms.bool(
False)
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'),
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')
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))
56 gemEfficiencyAnalyzerTightSeq = cms.Sequence(
57 cms.ignore(gemOfflineDQMTightGlbMuons) *
58 gemEfficiencyAnalyzerTight)
60 gemEfficiencyAnalyzerSTASeq = cms.Sequence(
61 cms.ignore(gemOfflineDQMStaMuons) *
62 gemEfficiencyAnalyzerSTA)