CMS 3D CMS Logo

HLTMuonOfflineAnalyzer_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 hltMuonOfflineAnalyzer = cms.EDAnalyzer("HLTMuonOfflineAnalyzer",
4 
5  ## Used when fetching triggerSummary and triggerResults
6  hltProcessName = cms.string("HLT"),
7 
8  ## Location of plots in DQM
9  destination = cms.untracked.string("HLT/Muon/Distributions/globalMuons"),
10 
11  ## HLT paths passing any one of these regular expressions will be included
12  hltPathsToCheck = cms.vstring(
13  "HLT_Mu45_eta2p1_v1",
14  "HLT_Mu50_v",
15  "HLT_IsoMu24_v",
16  "HLT_IsoTkMu24_v",
17 # "HLT_Mu17_Mu8_DZ_v",
18 # "HLT_Mu17_TkMu8_DZ_v",
19  "HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v",
20  "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ_v",
21  "HLT_IsoMu20_eta2p1_v",
22  "HLT_IsoTkMu20_eta2p1_v",
23  "HLT_IsoMu24_eta2p1_v",
24  "HLT_IsoTkMu24_eta2p1_v",
25  "HLT_IsoMu27_v",
26  "HLT_IsoTkMu27_v",
27  "HLT_IsoMu20_v",
28  "HLT_IsoTkMu20_v",
29  "HLT_IsoMu22_v",
30  "HLT_IsoTkMu22_v",
31  "HLT_IsoMu22_eta2p1_v",
32  "HLT_IsoTkMu22_eta2p1_v",
33  "HLT_IsoMu18_v",
34  "HLT_IsoTkMu18_v",
35  "HLT_PAL1DoubleMuOpen_v", #for HI
36  "HLT_PAL1DoubleMuOpen_OS_v", #for HI
37  "HLT_PAL1DoubleMuOpen_SS_v", #for HI
38  "HLT_PAL1DoubleMu0_v", #for HI
39  "HLT_PAL1DoubleMu0_HighQ_v", #for HI
40  "HLT_PAL1DoubleMu0_MGT1_v", #for HI
41  "HLT_PAL1DoubleMu10_v", #for HI
42  "HLT_PAL2DoubleMu0_v", #for HI
43  "HLT_PAL2DoubleMu10_v", #for HI
44  "HLT_PAL3DoubleMu0_v", #for HI
45  "HLT_PAL3DoubleMu0_HIon_v", #for HI
46  "HLT_PAL3DoubleMu10_v", #for HI
47  "HLT_PAL2Mu12_v", #for HI
48  "HLT_PAL2Mu15_v", #for HI
49  "HLT_PAL3Mu3_v", #for HI
50  "HLT_PAL3Mu5_v", #for HI
51  "HLT_PAL3Mu7_v", #for HI
52  "HLT_PAL3Mu12_v", #for HI
53  "HLT_PAL3Mu15_v", #for HI
54  "HLT_PASingleMuOpen_PixelTrackGt0_FullTrackLt10_v", #for HI Forward
55  "HLT_PASingleMuOpen_PixelTrackGt0_FullTrackLt15_v", #for HI Forward
56  "HLT_PASingleMuOpen_PixelTrackGt0Lt10_v", #for HI Forward
57  "HLT_PASingleMuOpen_PixelTrackGt0Lt15_v", #for HI Forward
58  "HLT_PASingleMuOpen_HFOneTowerVeto_SingleTrack_v", #for HI Forward
59  "HLT_PASingleMuOpen_HFOneTowerVeto_v", #for HI Forward
60  "HLT_PASingleMuOpen_HFTwoTowerVeto_SingleTrack_v", #for HI Forward
61  "HLT_PASingleMuOpen_HFTwoTowerVeto_v", #for HI Forward
62  "HLT_PADoubleMuOpen_HFOneTowerVeto_SingleTrack_v", #for HI Forward
63  "HLT_PADoubleMuOpen_HFOneTowerVeto_v", #for HI Forward
64  "HLT_PADoubleMuOpen_HFTwoTowerVeto_SingleTrack_v", #for HI Forward
65  "HLT_PADoubleMuOpen_HFTwoTowerVeto_v" #for HI Forward
66  ),
67 
68 #HLT_Mu15_eta2p1_TriCentral_40_20_20_BTagIP3D1stTrack_v3 matches HLT_Mu15_eta2p1_v
69 
70  ## All input tags are specified in this pset for convenience
71  inputTags = cms.PSet(
72  recoMuon = cms.InputTag("muons"),
73  beamSpot = cms.InputTag("offlineBeamSpot"),
74  offlinePVs = cms.InputTag("offlinePrimaryVertices"),
75  triggerSummary = cms.InputTag("hltTriggerSummaryAOD"),
76  triggerResults = cms.InputTag("TriggerResults")
77  ),
78 
79  ## Both 1D and 2D plots use the binnings defined here
80  binParams = cms.untracked.PSet(
81  ## parameters for fixed-width plots
82  NVertex = cms.untracked.vdouble( 20, 1, 50),
83  eta = cms.untracked.vdouble( 20, -2.40, 2.40),
84  phi = cms.untracked.vdouble( 20, -3.14, 3.14),
85  z0 = cms.untracked.vdouble( 10, -15.00, 15.00),
86  d0 = cms.untracked.vdouble( 10, -0.50, 0.50),
87  zMass = cms.untracked.vdouble( 50, 65.00, 115.00),
88  jpsiMass = cms.untracked.vdouble( 60, 0.00, 6.00),
89  charge = cms.untracked.vdouble( 2, -2.00, 2.00),
90  deltaR = cms.untracked.vdouble( 20, 0.00, 0.05),
91  phiCoarse = cms.untracked.vdouble( 10, -3.14, 3.14),
92  resolutionRel = cms.untracked.vdouble( 40, -0.30, 0.30),
93  resolutionEta = cms.untracked.vdouble( 20, -0.01, 0.01),
94  resolutionPhi = cms.untracked.vdouble( 20, -0.01, 0.01),
95  ## parameters for variable-width plots
96  etaCoarse = cms.untracked.vdouble(-2.4, -2.1, -1.6, -1.2, -0.8, 0.0,
97  0.8, 1.2, 1.6, 2.1, 2.4),
98  ptCoarse = cms.untracked.vdouble(10.0, 20.0, 40.0, 60.0, 80.0, 100.0, 200.0),
99  pt = cms.untracked.vdouble( 0.0, 2.0, 4.0,
100  6.0, 8.0, 10.0,
101  20.0, 30.0, 40.0,
102  100.0, 200.0, 400.0),
103  ),
104 
105  ## These parameters define which objects are used to fill plots
106  plotCuts = cms.PSet(
107  ## not applied on eta plots
108  maxEta = cms.untracked.double(2.10),
109  ## only fill plots for muons with pt > ceil(hltThreshold * minPtFactor)
110  ## ex: for HLT_Mu17, ceil(17 * 1.2 ) = 21, so we require pT > 21
111  minPtFactor = cms.untracked.double(1.20),
112  ## deltaR cuts
113  L1DeltaR = cms.untracked.double(0.30),
114  L2DeltaR = cms.untracked.double(0.30),
115  L3DeltaR = cms.untracked.double(0.05),
116  ),
117 
118  ## Only events passing all these triggers will be considered
119  requiredTriggers = cms.untracked.vstring(),
120 
121  ## This collection is used to fill most distributions
122  targetParams = cms.PSet(
123  ## The d0 and z0 cuts are required for the inner track of the
124  ## reco muons, taken with respect to the beamspot
125  d0Cut = cms.untracked.double(2.0),
126  z0Cut = cms.untracked.double(25.0),
127  ## cuts
128  recoCuts = cms.untracked.string("isGlobalMuon && abs(eta) < 2.4"),
129  hltCuts = cms.untracked.string("abs(eta) < 2.4"),
130  ),
131 
132  ## If this PSet is empty, then no "tag and probe" plots are produced;
133  ## the cuts used for the tags are specified by targetParams
134  probeParams = cms.PSet(
135  ## The d0 and z0 cuts are required for the inner track of the
136  ## reco muons, taken with respect to the beamspot
137  d0Cut = cms.untracked.double(2.0),
138  z0Cut = cms.untracked.double(25.0),
139  ## cuts
140  recoCuts = cms.untracked.string("isGlobalMuon && abs(eta) < 2.0"),
141  hltCuts = cms.untracked.string("abs(eta) < 2.0"),
142  ),
143 
144 )