CMS 3D CMS Logo

HLTMuonOfflineAnalyzer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 hltMuonOfflineAnalyzer = DQMEDAnalyzer('HLTMuonOfflineAnalyzer',
5 
6  ## Used when fetching triggerSummary and triggerResults
7  hltProcessName = cms.string("HLT"),
8 
9  ## Location of plots in DQM
10  destination = cms.untracked.string("HLT/Muon/Distributions/globalMuons"),
11 
12  ## HLT paths passing any one of these regular expressions will be included
13  hltPathsToCheck = cms.vstring(
14  "HLT_Mu8_TrkIsoVVL_v",
15  "HLT_Mu8_v",
16  "HLT_Mu17_TrkIsoVVL_v",
17  "HLT_Mu17_v",
18  "HLT_TkMu17_v",
19  "HLT_L2Mu10_v",
20  "HLT_L1SingleMu25_v",
21  "HLT_L1SingleMu18_v",
22  "HLT_Mu17_TrkIsoVVL_v",
23  "HLT_Mu45_eta2p1_v1",
24  "HLT_Mu50_v",
25  "HLT_IsoMu24_v",
26  "HLT_IsoTkMu24_v",
27 # "HLT_Mu17_Mu8_DZ_v",
28 # "HLT_Mu17_TkMu8_DZ_v",
29  "HLT_IsoMu20_eta2p1_v",
30  "HLT_IsoTkMu20_eta2p1_v",
31  "HLT_IsoMu24_eta2p1_v",
32  "HLT_IsoTkMu24_eta2p1_v",
33  "HLT_IsoMu27_v",
34  "HLT_IsoTkMu27_v",
35  "HLT_IsoMu20_v",
36  "HLT_IsoTkMu20_v",
37  "HLT_IsoMu22_v",
38  "HLT_IsoTkMu22_v",
39  "HLT_IsoMu22_eta2p1_v",
40  "HLT_IsoTkMu22_eta2p1_v",
41  "HLT_IsoMu18_v",
42  "HLT_IsoTkMu18_v",
43  "HLT_IsoMu30_v",
44  "HLT_Mu55_v",
45  "HLT_Mu19_TrkIsoVVL_v",
46  "HLT_Mu19_v",
47  "HLT_L2Mu50_v",
48  "HLT_OldMu100_v",
49  "HLT_TkMu100_v",
50  "HLT_DoubleL2Mu50_v",
51  "HLT_HIL1DoubleMuOpen_v1", #for HI
52  "HLT_HIL1DoubleMuOpen_OS_Centrality_40_100_v1", #for HI
53  "HLT_HIL1DoubleMuOpen_Centrality_50_100_v1", #for HI
54  "HLT_HIL1DoubleMu10_v1", #for HI
55  "HLT_HIL2_L1DoubleMu10_v1", #for HI
56  "HLT_HIL3_L1DoubleMu10_v1", #for HI
57  "HLT_HIL2DoubleMuOpen_v1", #for HI
58  "HLT_HIL3DoubleMuOpen_v1", #for HI
59  "HLT_HIL3DoubleMuOpen_M60120_v1", #for HI
60  "HLT_HIL3DoubleMuOpen_JpsiPsi_v1", #for HI
61  "HLT_HIL3DoubleMuOpen_Upsi_v1", #for HI
62  "HLT_HIL3Mu0_L2Mu0_v1", #for HI
63  "HLT_HIL3Mu0NHitQ10_L2Mu0_MAXdR3p5_M1to5_v1", #for HI
64  "HLT_HIL3Mu2p5NHitQ10_L2Mu2_M7toinf_v1", #for HI
65  "HLT_HIL1MuOpen_Centrality_70_100_v1", #for HI
66  "HLT_HIL1MuOpen_Centrality_80_100_v1", #for HI
67  "HLT_HIL2Mu3_NHitQ15_v1", #for HI
68  "HLT_HIL2Mu5_NHitQ15_v1", #for HI
69  "HLT_HIL2Mu7_NHitQ15_v1", #for HI
70  "HLT_HIL3Mu3_L1TripleMuOpen_v1", #for HI
71  "HLT_HIL3Mu12_v1", #for HI
72  "HLT_HIL3Mu15_v1", #for HI
73  "HLT_HIL3Mu20_v1", #for HI
74  "HLT_HIL3Mu3_NHitQ10_v1", #for HI
75  "HLT_HIL3Mu5_NHitQ10_v1", #for HI
76  "HLT_HIL3Mu7_NHitQ10_v1" #for HI
77  ),
78 
79 #HLT_Mu15_eta2p1_TriCentral_40_20_20_BTagIP3D1stTrack_v3 matches HLT_Mu15_eta2p1_v
80 
81  ## All input tags are specified in this pset for convenience
82  inputTags = cms.PSet(
83  recoMuon = cms.InputTag("muons"),
84  beamSpot = cms.InputTag("offlineBeamSpot"),
85  offlinePVs = cms.InputTag("offlinePrimaryVertices"),
86  triggerSummary = cms.InputTag("hltTriggerSummaryAOD"),
87  triggerResults = cms.InputTag("TriggerResults")
88  ),
89 
90  ## Both 1D and 2D plots use the binnings defined here
91  binParams = cms.untracked.PSet(
92  ## parameters for fixed-width plots
93  NVertex = cms.untracked.vdouble( 1,10,15,20,25,30,35,40,45,50,55,60,65,70,100),
94  NVertexFine= cms.untracked.vdouble( 1,5,10,12.5,15,17.5,20,22.5,25,27.5,30,32.5,35,37.5,40,42.5,45,47.5,50,52.5,55,57.5,60,62.5,65,67.5,70,85,100),
95  eta = cms.untracked.vdouble( 20, -2.40, 2.40),
96  phi = cms.untracked.vdouble( 20, -3.14, 3.14),
97  phiHEP17 = cms.untracked.vdouble( -3.14,-2.4,-1.8,-1.0,-0.4,0.0,0.4,1.0,1.8,2.4,3.14),
98  z0 = cms.untracked.vdouble( 10, -0.15, 0.15),
99  z0Fine = cms.untracked.vdouble( 20, -0.15, 0.15),
100  d0 = cms.untracked.vdouble( 10, -0.50, 0.50),
101  zMass = cms.untracked.vdouble( 50, 65.00, 115.00),
102  jpsiMass = cms.untracked.vdouble( 60, 0.00, 6.00),
103  charge = cms.untracked.vdouble( 2, -2.00, 2.00),
104  deltaR = cms.untracked.vdouble( 20, 0.00, 0.05),
105  deltaR2 = cms.untracked.vdouble( 20, 0.0, 4.5 ),
106  phiCoarse = cms.untracked.vdouble( 10, -3.14, 3.14),
107  resolutionRel = cms.untracked.vdouble( 40, -0.30, 0.30),
108  resolutionEta = cms.untracked.vdouble( 20, -0.01, 0.01),
109  resolutionPhi = cms.untracked.vdouble( 20, -0.01, 0.01),
110  ## parameters for variable-width plots
111  etaCoarse = cms.untracked.vdouble(-2.4, -2.1, -1.6, -1.2, -0.8, 0.0,
112  0.8, 1.2, 1.6, 2.1, 2.4),
113  etaFine = cms.untracked.vdouble(-2.4,-2.1,-1.6,-1.2,-0.9,-0.3,
114  -0.2,0.2,0.3,0.9,1.2,1.6,2.1,2.4),
115  phiFine = cms.untracked.vdouble(-3.14,-(11.0/12.0)*3.14,-(9.0/12.0)*3.14,-(7.0/12.0)*3.14,-(5.0/12.0)*3.14,-
116 (3.0/12.0)*3.14,-(1.0/12.0)*3.14,(1.0/12.0)*3.14,(3.0/12.0)*3.14,(5.0/12.0)*3.14,(7.0/12.0)*3.14,
117 (9.0/12.0)*3.14,(11.0/12.0)*3.14,3.14),
118  ptCoarse = cms.untracked.vdouble(10.0, 20.0, 40.0, 60.0, 80.0, 100.0, 200.0),
119  ptFine = cms.untracked.vdouble(10.0,15.0, 20.0,30.0, 40.0,50.0, 60.0,70.0, 80.0,90.0, 100.0,150., 200.0),
120  pt = cms.untracked.vdouble( 0.0, 2.0, 4.0,
121  6.0, 8.0, 10.0,
122  20.0, 30.0, 40.0,
123  100.0, 200.0, 400.0),
124  ),
125 
126  ## These parameters define which objects are used to fill plots
127  plotCuts = cms.PSet(
128  ## not applied on eta plots
129  maxEta = cms.untracked.double(2.10),
130  ## only fill plots for muons with pt > ceil(hltThreshold * minPtFactor)
131  ## ex: for HLT_Mu17, ceil(17 * 1.2 ) = 21, so we require pT > 21
132  minPtFactor = cms.untracked.double(1.20),
133  ## deltaR cuts
134  L1DeltaR = cms.untracked.double(0.30),
135  L2DeltaR = cms.untracked.double(0.30),
136  L3DeltaR = cms.untracked.double(0.05),
137  ),
138 
139  ## Only events passing all these triggers will be considered
140  requiredTriggers = cms.untracked.vstring(),
141 
142  ## This collection is used to fill most distributions
143  targetParams = cms.PSet(
144  ## The d0 and z0 cuts are required for the inner track of the
145  ## reco muons, taken with respect to the beamspot
146  d0Cut = cms.untracked.double(2.0),
147  z0Cut = cms.untracked.double(25.0),
148  ## cuts
149  recoCuts = cms.untracked.string("isGlobalMuon && abs(eta) < 2.4"),
150  hltCuts = cms.untracked.string("abs(eta) < 2.4"),
151  ),
152 
153  ## If this PSet is empty, then no "tag and probe" plots are produced;
154  ## the cuts used for the tags are specified by targetParams
155  probeParams = cms.PSet(
156  ## The d0 and z0 cuts are required for the inner track of the
157  ## reco muons, taken with respect to the beamspot
158  d0Cut = cms.untracked.double(2.0),
159  z0Cut = cms.untracked.double(25.0),
160  ## cuts
161  recoCuts = cms.untracked.string("isGlobalMuon && abs(eta) < 2.4"),
162  hltCuts = cms.untracked.string("abs(eta) < 2.4"),
163  ),
164 
165 )