CMS 3D CMS Logo

HLTMuonOfflineAnalyzer_cff.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMOffline.Trigger.HLTMuonOfflineAnalyzer_cfi import hltMuonOfflineAnalyzer
4 
5 globalMuonParams = cms.PSet(
6  d0Cut = cms.untracked.double(2.0),
7  z0Cut = cms.untracked.double(25.0),
8  recoCuts = cms.untracked.string("isGlobalMuon && abs(eta) < 2.4"),
9  hltCuts = cms.untracked.string("abs(eta) < 2.4"),
10 )
11 
12 globalAnalyzerTnP = hltMuonOfflineAnalyzer.clone()
13 globalAnalyzerTnP.destination = "HLT/Muon/DistributionsGlobal"
14 globalAnalyzerTnP.targetParams = globalMuonParams
15 #globalAnalyzerTnP.probeParams = cms.PSet()
16 
17 refPathsList = cms.vstring(
18  "HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v",
19  "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ_v",
20  "HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_v",
21  "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_v",
22  "HLT_TkMu17_TrkIsoVVL_TkMu8_TrkIsoVVL_v",
23  "HLT_TkMu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ_v"
24  "HLT_Mu18_Mu9_DZ_v",
25  "HLT_Mu18_Mu9_v",
26  "HLT_Mu18_Mu9_SameSign_DZ_v",
27  "HLT_Mu18_Mu9_SameSign_v"
28  )
29 
30 globalAnalyzerRef = hltMuonOfflineAnalyzer.clone()
31 globalAnalyzerRef.destination = "HLT/Muon/DistributionsGlobal"
32 globalAnalyzerRef.targetParams = globalMuonParams
33 globalAnalyzerRef.hltPathsToCheck = refPathsList
34 globalAnalyzerRef.requiredTriggers = cms.untracked.vstring(
35  "HLT_Mu17_TrkIsoVVL_v")
36 
37 #globalAnalyzerRef.probeParams = cms.PSet()
38 
39 refPathsList19 = cms.vstring(
40  "HLT_Mu23_Mu12_DZ_v",
41  "HLT_Mu23_Mu12_v"
42  )
43 
44 globalAnalyzerRef19 = hltMuonOfflineAnalyzer.clone()
45 globalAnalyzerRef19.destination = "HLT/Muon/DistributionsGlobal"
46 globalAnalyzerRef19.targetParams = globalMuonParams
47 globalAnalyzerRef19.hltPathsToCheck = refPathsList19
48 globalAnalyzerRef19.requiredTriggers = cms.untracked.vstring(
49  "HLT_Mu19_TrkIsoVVL_v")
50 
51 #globalAnalyzerRef19.probeParams = cms.PSet()
52 
53 hltMuonOfflineAnalyzers = cms.Sequence(
54  globalAnalyzerTnP *
55  globalAnalyzerRef *
56  globalAnalyzerRef19
57 )
58 
59 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
60 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
61 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
62 
63 for muAna in [globalAnalyzerTnP.targetParams,
64  globalAnalyzerRef.targetParams]:
65  for e in [pA_2016, ppRef_2017, pp_on_AA]:
66  e.toModify(muAna, ptCut_Jpsi = cms.untracked.double( 5.0))
67 for muAna in [globalAnalyzerTnP.binParams,
68  globalAnalyzerRef.binParams]:
69  for e in [pA_2016, ppRef_2017, pp_on_AA]:
70  e.toModify(muAna, ptCoarse = cms.untracked.vdouble(0.,1.,2.,3.,4.,5.,7.,9.,12.,15.,20.,30.,40.))