CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 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"),
17 )
18 
19 
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",
25  "abs(eta) < 2.4",
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",
31  "numberOfMatches > 1"
32  ])),
33  hltCuts = cms.untracked.string("abs(eta) < 2.4"),
34 )
35 
36 
37 
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"
44  ])),
45  hltCuts = cms.untracked.string("abs(eta) < 2.4"),
46 )
47 
48 
49 globalAnalyzer = hltMuonOfflineAnalyzer.clone()
50 globalAnalyzer.destination = "HLT/Muon/DistributionsGlobal"
51 globalAnalyzer.targetParams = globalMuonParams
52 #globalAnalyzer.probeParams = cms.PSet()
53 
54 trackerAnalyzer = hltMuonOfflineAnalyzer.clone()
55 trackerAnalyzer.destination = "HLT/Muon/DistributionsTracker"
56 trackerAnalyzer.targetParams = trackerMuonParams
57 #trackerAnalyzer.probeParams = cms.PSet()
58 
59 tightAnalyzer = hltMuonOfflineAnalyzer.clone()
60 tightAnalyzer.destination = "HLT/Muon/DistributionsTight"
61 tightAnalyzer.targetParams = tightMuonParams
62 #tightAnalyzer.probeParams = cms.PSet()
63 
64 looseAnalyzer = hltMuonOfflineAnalyzer.clone()
65 looseAnalyzer.destination = "HLT/Muon/DistributionsLoose"
66 looseAnalyzer.targetParams = looseMuonParams
67 #tightAnalyzer.probeParams = cms.PSet()
68 
69 
70 
71 hltMuonOfflineAnalyzers = cms.Sequence(
72  globalAnalyzer *
73  trackerAnalyzer *
74  tightAnalyzer *
75  looseAnalyzer
76 )
77 
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)
Definition: RemoteFile.cc:18