forked from cms-sw/cmssw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add flags to enable/disable monitoring for GEM stations. This fix is …
…related to cms-sw#36860
- Loading branch information
1 parent
9c3a5ca
commit ff05356
Showing
15 changed files
with
131 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from DQM.GEM.gemEfficiencyAnalyzer_cfi import * | ||
|
||
gemEfficiencyAnalyzerCosmics = gemEfficiencyAnalyzer.clone( | ||
isCosmics = True, | ||
) | ||
|
||
gemEfficiencyAnalyzerCosmicsTwoLeg = gemEfficiencyAnalyzerCosmics.clone( | ||
muonTag = 'muons', | ||
name = 'Cosmic 2-Leg STA Muon', | ||
folder = 'GEM/Efficiency/type1' | ||
) | ||
|
||
gemEfficiencyAnalyzerCosmicsOneLeg = gemEfficiencyAnalyzerCosmics.clone( | ||
muonTag = 'muons1Leg', | ||
name = 'Cosmic 1-Leg STA Muon', | ||
folder = 'GEM/Efficiency/type2' | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from DQM.GEM.gemEfficiencyAnalyzer_cfi import * | ||
|
||
gemOfflineDQMTightGlbMuons = cms.EDFilter("MuonSelector", | ||
src = cms.InputTag('muons'), | ||
cut = cms.string( | ||
'(pt > 20)' | ||
'&& isGlobalMuon' | ||
'&& globalTrack.isNonnull' | ||
'&& passed(\'CutBasedIdTight\')' | ||
), | ||
filter = cms.bool(False) | ||
) | ||
|
||
gemOfflineDQMStaMuons = cms.EDFilter("MuonSelector", | ||
src = cms.InputTag('muons'), | ||
cut = cms.string( | ||
'(pt > 20)' | ||
'&& isStandAloneMuon' | ||
'&& outerTrack.isNonnull' | ||
), | ||
filter = cms.bool(False) | ||
) | ||
|
||
gemEfficiencyAnalyzerTightGlb = gemEfficiencyAnalyzer.clone( | ||
folder = 'GEM/Efficiency/type1', | ||
muonTag = 'gemOfflineDQMTightGlbMuons', | ||
name = 'Tight GLB Muon', | ||
useGlobalMuon = True | ||
) | ||
|
||
gemEfficiencyAnalyzerSta = gemEfficiencyAnalyzer.clone( | ||
muonTag = "gemOfflineDQMStaMuons", | ||
folder = 'GEM/Efficiency/type2', | ||
name = 'STA Muon', | ||
useGlobalMuon = False | ||
) | ||
|
||
gemEfficiencyAnalyzerTightGlbSeq = cms.Sequence( | ||
cms.ignore(gemOfflineDQMTightGlbMuons) * | ||
gemEfficiencyAnalyzerTightGlb) | ||
|
||
gemEfficiencyAnalyzerStaSeq = cms.Sequence( | ||
cms.ignore(gemOfflineDQMStaMuons) * | ||
gemEfficiencyAnalyzerSta) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,16 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer | ||
from RecoMuon.TrackingTools.MuonServiceProxy_cff import MuonServiceProxy | ||
from DQM.GEM.gemEfficiencyAnalyzerDefault_cfi import gemEfficiencyAnalyzerDefault as _gemEfficiencyAnalyzerDefault | ||
from RecoMuon.TrackingTools.MuonServiceProxy_cff import * | ||
from TrackingTools.TransientTrack.TransientTrackBuilder_cfi import * | ||
|
||
gemOfflineDQMTightGlbMuons = cms.EDFilter("MuonSelector", | ||
src = cms.InputTag('muons'), | ||
cut = cms.string( | ||
'(pt > 20)' | ||
'&& isGlobalMuon' | ||
'&& globalTrack.isNonnull' | ||
'&& passed(\'CutBasedIdTight\')' | ||
), | ||
filter = cms.bool(False) | ||
) | ||
|
||
gemOfflineDQMStaMuons = cms.EDFilter("MuonSelector", | ||
src = cms.InputTag('muons'), | ||
cut = cms.string( | ||
'(pt > 20)' | ||
'&& isStandAloneMuon' | ||
'&& outerTrack.isNonnull' | ||
), | ||
filter = cms.bool(False) | ||
) | ||
|
||
gemEfficiencyAnalyzerTightGlb = _gemEfficiencyAnalyzerDefault.clone( | ||
gemEfficiencyAnalyzer = _gemEfficiencyAnalyzerDefault.clone( | ||
ServiceParameters = MuonServiceProxy.ServiceParameters.clone(), | ||
folder = 'GEM/Efficiency/type1', | ||
muonTag = 'gemOfflineDQMTightGlbMuons', | ||
name = 'Tight GLB Muon', | ||
useGlobalMuon = True | ||
) | ||
|
||
gemEfficiencyAnalyzerSta = _gemEfficiencyAnalyzerDefault.clone( | ||
ServiceParameters = MuonServiceProxy.ServiceParameters.clone(), | ||
muonTag = "gemOfflineDQMStaMuons", | ||
folder = 'GEM/Efficiency/type2', | ||
name = 'STA Muon', | ||
useGlobalMuon = False | ||
) | ||
|
||
from Configuration.Eras.Modifier_phase2_GEM_cff import phase2_GEM | ||
phase2_GEM.toModify( | ||
gemEfficiencyAnalyzerTightGlb, | ||
etaNbins=cms.untracked.int32(15), | ||
etaUp=cms.untracked.double(3.0)) | ||
|
||
phase2_GEM.toModify( | ||
gemEfficiencyAnalyzerSta, | ||
etaNbins=cms.untracked.int32(15), | ||
etaUp=cms.untracked.double(3.0)) | ||
|
||
gemEfficiencyAnalyzerTightGlbSeq = cms.Sequence( | ||
cms.ignore(gemOfflineDQMTightGlbMuons) * | ||
gemEfficiencyAnalyzerTightGlb) | ||
|
||
gemEfficiencyAnalyzerStaSeq = cms.Sequence( | ||
cms.ignore(gemOfflineDQMStaMuons) * | ||
gemEfficiencyAnalyzerSta) | ||
phase2_GEM.toModify(gemEfficiencyAnalyzer, | ||
monitorGE21 = True, | ||
monitorGE0 = True, | ||
etaNbins = 15, | ||
etaUp = 3.0, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from DQM.GEM.gemEfficiencyHarvester_cfi import gemEfficiencyHarvester | ||
from DQM.GEM.gemEfficiencyAnalyzerCosmics_cff import gemEfficiencyAnalyzerCosmicsTwoLeg as _gemEfficiencyAnalyzerCosmicsTwoLeg | ||
from DQM.GEM.gemEfficiencyAnalyzerCosmics_cff import gemEfficiencyAnalyzerCosmicsOneLeg as _gemEfficiencyAnalyzerCosmicsOneLeg | ||
|
||
gemEfficiencyHarvesterCosmicsTwoLeg = gemEfficiencyHarvester.clone( | ||
folder = _gemEfficiencyAnalyzerCosmicsTwoLeg.folder.value() | ||
) | ||
|
||
gemEfficiencyHarvesterCosmicsOneLeg = gemEfficiencyHarvester.clone( | ||
folder = _gemEfficiencyAnalyzerCosmicsOneLeg.folder.value() | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from DQM.GEM.gemEfficiencyHarvester_cfi import gemEfficiencyHarvester | ||
from DQM.GEM.gemEfficiencyAnalyzer_cff import gemEfficiencyAnalyzerTightGlb as _gemEfficiencyAnalyzerTightGlb | ||
from DQM.GEM.gemEfficiencyAnalyzer_cff import gemEfficiencyAnalyzerSta as _gemEfficiencyAnalyzerSta | ||
|
||
gemEfficiencyHarvesterTightGlb = gemEfficiencyHarvester.clone( | ||
folder = _gemEfficiencyAnalyzerTightGlb.folder.value() | ||
) | ||
|
||
gemEfficiencyHarvesterSta = gemEfficiencyHarvester.clone( | ||
folder = _gemEfficiencyAnalyzerSta.folder.value() | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from DQM.GEM.GEMDQMHarvester_cfi import * | ||
from DQM.GEM.gemEfficiencyHarvesterCosmics_cfi import * | ||
from DQM.GEM.gemEfficiencyHarvesterCosmics_cff import * | ||
|
||
gemClientsCosmics = cms.Sequence( | ||
GEMDQMHarvester * | ||
gemEfficiencyHarvesterCosmics * | ||
gemEfficiencyHarvesterCosmicsTwoLeg * | ||
gemEfficiencyHarvesterCosmicsOneLeg | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters