1 import FWCore.ParameterSet.Config
as cms
3 from DQMOffline.Trigger.HLTMuonOfflineAnalyzer_cfi
import hltMuonOfflineAnalyzer
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"),
12 trackerMuonParams = cms.PSet(
13 d0Cut = cms.untracked.double(2.0),
14 z0Cut = cms.untracked.double(25.0),
15 recoCuts = cms.untracked.string(
"isTrackerMuon && abs(eta) < 2.4"),
16 hltCuts = cms.untracked.string(
"abs(eta) < 2.4"),
20 tightMuonParams = cms.PSet(
21 d0Cut = cms.untracked.double(0.2),
22 z0Cut = cms.untracked.double(0.5),
23 recoCuts = cms.untracked.string(
' && '.
join([
24 "isGlobalMuon && isPFMuon && isTrackerMuon",
26 "innerTrack.hitPattern.numberOfValidPixelHits > 0",
27 "innerTrack.hitPattern.trackerLayersWithMeasurement > 5",
28 "(pfIsolationR04().sumChargedHadronPt + max(pfIsolationR04().sumNeutralHadronEt + pfIsolationR04().sumPhotonEt - pfIsolationR04().sumPUPt/2,0.0))/pt < 0.12",
29 "globalTrack.hitPattern.numberOfValidMuonHits > 0",
30 "globalTrack.normalizedChi2 < 10",
33 hltCuts = cms.untracked.string(
"abs(eta) < 2.4"),
38 looseMuonParams = cms.PSet(
39 d0Cut = cms.untracked.double(50),
40 z0Cut = cms.untracked.double(100),
41 recoCuts = cms.untracked.string(
' && '.
join([
42 "isPFMuon && (isTrackerMuon || isGlobalMuon)",
43 "(pfIsolationR04().sumChargedHadronPt + max(pfIsolationR04().sumNeutralHadronEt + pfIsolationR04().sumPhotonEt - pfIsolationR04().sumPUPt/2,0.0))/pt < 0.20"
45 hltCuts = cms.untracked.string(
"abs(eta) < 2.4"),
49 globalAnalyzer = hltMuonOfflineAnalyzer.clone()
50 globalAnalyzer.destination =
"HLT/Muon/DistributionsGlobal"
51 globalAnalyzer.targetParams = globalMuonParams
54 trackerAnalyzer = hltMuonOfflineAnalyzer.clone()
55 trackerAnalyzer.destination =
"HLT/Muon/DistributionsTracker"
56 trackerAnalyzer.targetParams = trackerMuonParams
59 tightAnalyzer = hltMuonOfflineAnalyzer.clone()
60 tightAnalyzer.destination =
"HLT/Muon/DistributionsTight"
61 tightAnalyzer.targetParams = tightMuonParams
64 looseAnalyzer = hltMuonOfflineAnalyzer.clone()
65 looseAnalyzer.destination =
"HLT/Muon/DistributionsLoose"
66 looseAnalyzer.targetParams = looseMuonParams
71 hltMuonOfflineAnalyzers = cms.Sequence(
78 from Configuration.StandardSequences.Eras
import eras
79 for muAna
in [globalAnalyzer.targetParams, trackerAnalyzer.targetParams, tightAnalyzer.targetParams, looseAnalyzer.targetParams]:
80 eras.pA_2016.toModify(muAna, ptCut_Jpsi = cms.untracked.double( 5.0))
81 for muAna
in [globalAnalyzer.binParams, trackerAnalyzer.binParams, tightAnalyzer.binParams, looseAnalyzer.binParams]:
82 eras.pA_2016.toModify(muAna, ptCoarse = cms.untracked.vdouble(0.,1.,2.,3.,4.,5.,7.,9.,12.,15.,20.,30.,40.))
static std::string join(char **cmd)