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  recoMaxEtaCut = cms.untracked.double(2.4),
9  recoMinEtaCut = cms.untracked.double(0.0),
10  recoGlbMuCut = cms.untracked.bool(True),
11  hltMaxEtaCut = cms.untracked.double(2.4),
12  hltMinEtaCut = cms.untracked.double(0.0),
13 )
14 
15 globalAnalyzerTnP = hltMuonOfflineAnalyzer.clone()
16 globalAnalyzerTnP.destination = "HLT/Muon/DistributionsGlobal"
17 globalAnalyzerTnP.targetParams = globalMuonParams
18 #globalAnalyzerTnP.probeParams = cms.PSet()
19 
20 refPathsList = cms.vstring(
21  "HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v",
22  "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ_v",
23  "HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_v",
24  "HLT_Mu17_TrkIsoVVL_TkMu8_TrkIsoVVL_v",
25  "HLT_TkMu17_TrkIsoVVL_TkMu8_TrkIsoVVL_v",
26  "HLT_TkMu17_TrkIsoVVL_TkMu8_TrkIsoVVL_DZ_v"
27  "HLT_Mu18_Mu9_DZ_v",
28  "HLT_Mu18_Mu9_v",
29  "HLT_Mu18_Mu9_SameSign_DZ_v",
30  "HLT_Mu18_Mu9_SameSign_v"
31  )
32 
33 globalAnalyzerRef = hltMuonOfflineAnalyzer.clone()
34 globalAnalyzerRef.destination = "HLT/Muon/DistributionsGlobal"
35 globalAnalyzerRef.targetParams = globalMuonParams
36 globalAnalyzerRef.hltPathsToCheck = refPathsList
37 globalAnalyzerRef.requiredTriggers = cms.untracked.vstring(
38  "HLT_Mu17_TrkIsoVVL_v")
39 
40 #globalAnalyzerRef.probeParams = cms.PSet()
41 
42 refPathsList19 = cms.vstring(
43  "HLT_Mu23_Mu12_DZ_v",
44  "HLT_Mu23_Mu12_v"
45  )
46 
47 globalAnalyzerRef19 = hltMuonOfflineAnalyzer.clone()
48 globalAnalyzerRef19.destination = "HLT/Muon/DistributionsGlobal"
49 globalAnalyzerRef19.targetParams = globalMuonParams
50 globalAnalyzerRef19.hltPathsToCheck = refPathsList19
51 globalAnalyzerRef19.requiredTriggers = cms.untracked.vstring(
52  "HLT_Mu19_TrkIsoVVL_v")
53 
54 #globalAnalyzerRef19.probeParams = cms.PSet()
55 
56 hltMuonOfflineAnalyzers = cms.Sequence(
57  globalAnalyzerTnP *
58  globalAnalyzerRef *
59  globalAnalyzerRef19
60 )
61 
62 from Configuration.Eras.Modifier_pA_2016_cff import pA_2016
63 from Configuration.Eras.Modifier_ppRef_2017_cff import ppRef_2017
64 from Configuration.ProcessModifiers.pp_on_AA_cff import pp_on_AA
65 
66 for muAna in [globalAnalyzerTnP.targetParams,
67  globalAnalyzerRef.targetParams]:
68  for e in [pA_2016, ppRef_2017, pp_on_AA]:
69  e.toModify(muAna, ptCut_Jpsi = cms.untracked.double( 5.0))
70 for muAna in [globalAnalyzerTnP.binParams,
71  globalAnalyzerRef.binParams]:
72  for e in [pA_2016, ppRef_2017, pp_on_AA]:
73  e.toModify(muAna, ptCoarse = cms.untracked.vdouble(0.,1.,2.,3.,4.,5.,7.,9.,12.,15.,20.,30.,40.))