CMS 3D CMS Logo

gemEfficiencyAnalyzer_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
3 
4 
7 
8 # FIXME
9 # the folowing expression doesn't work since 12_3_?:
10 # "&& passed('CutBasedIdTight')"
11 # so characters are replaced with the number
12 # CutBasedIdTight = 1UL << 3 = 8
13 # see https://github.com/cms-sw/cmssw/blob/master/DataFormats/MuonReco/interface/Muon.h#L205
14 
15 gemDQMTightGlbMuons = cms.EDFilter("MuonSelector",
16  src = cms.InputTag("muons"),
17  cut = cms.string(
18  "isGlobalMuon"
19  "&& globalTrack.isNonnull"
20  "&& passed(8)" # CutBasedIdTight = 1UL << 3 = 8
21  ),
22  filter = cms.bool(False)
23 )
24 
25 gemEfficiencyAnalyzerTightGlb = gemEfficiencyAnalyzer.clone(
26  muonTag = "gemDQMTightGlbMuons",
27  muonTrackType = "CombinedTrack",
28  startingStateType = "OutermostMeasurementState",
29  folder = "GEM/Efficiency/muonGLB",
30  muonName = "Tight GLB Muon",
31  propagationErrorRCut = 0.5, # cm
32  propagationErrorPhiCut = 0.1, # degree
33 )
34 
35 gemEfficiencyAnalyzerTightGlbSeq = cms.Sequence(
36  cms.ignore(gemDQMTightGlbMuons) *
37  gemEfficiencyAnalyzerTightGlb)
38 
39 
42 gemDQMStaMuons = cms.EDFilter("MuonSelector",
43  src = cms.InputTag("muons"),
44  cut = cms.string(
45  "isStandAloneMuon"
46  "&& outerTrack.isNonnull"
47  ),
48  filter = cms.bool(False)
49 )
50 
51 gemEfficiencyAnalyzerSta = gemEfficiencyAnalyzer.clone(
52  muonTag = "gemDQMStaMuons",
53  muonTrackType = "OuterTrack",
54  startingStateType = "OutermostMeasurementState",
55  folder = "GEM/Efficiency/muonSTA",
56  muonName = "STA Muon",
57  propagationErrorRCut = 0.5, # cm
58  propagationErrorPhiCut = 0.2, # degree
59 )
60 
61 gemEfficiencyAnalyzerStaSeq = cms.Sequence(
62  cms.ignore(gemDQMStaMuons) *
63  gemEfficiencyAnalyzerSta)