CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
BTVHLTOfflineSource_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
4 
5 BTVHLTOfflineSource = DQMEDAnalyzer("BTVHLTOfflineSource",
6 
7  dirname = cms.untracked.string("HLT/BTV"),
8  processname = cms.string("HLT"),
9  verbose = cms.untracked.bool(False),
10 
11  triggerSummaryLabel = cms.InputTag("hltTriggerSummaryAOD", "", "HLT"),
12  triggerResultsLabel = cms.InputTag("TriggerResults", "", "HLT"),
13  onlineDiscrLabelPF = cms.InputTag("hltDeepCombinedSecondaryVertexBJetTagsPF", "probb"),
14  onlineDiscrLabelCalo = cms.InputTag("hltDeepCombinedSecondaryVertexBJetTagsCalo", "probb"),
15  offlineDiscrLabelb = cms.InputTag("pfDeepCSVJetTags", "probb"),
16  offlineDiscrLabelbb = cms.InputTag("pfDeepCSVJetTags", "probbb"),
17  hltFastPVLabel = cms.InputTag("hltFastPrimaryVertex"),
18  hltPFPVLabel = cms.InputTag("hltVerticesPFSelector"),
19  hltCaloPVLabel = cms.InputTag("hltVerticesL3"),
20  offlinePVLabel = cms.InputTag("offlinePrimaryVertices"),
21  offlineIPLabel = cms.InputTag("pfImpactParameterTagInfos"),
22  turnon_threshold_loose = cms.double(0.2),
23  turnon_threshold_medium = cms.double(0.5),
24  turnon_threshold_tight = cms.double(0.8),
25  minDecayLength = cms.double(-9999.0),
26  maxDecayLength = cms.double(5.0),
27  minJetDistance = cms.double(0.0),
28  maxJetDistance = cms.double(0.07),
29  dRTrackMatch = cms.double(0.01),
30 
31 
32  pathPairs = cms.VPSet(
33 
34  cms.PSet(
35  pathname = cms.string("HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PFBtagDeepCSV_1p5_v"),
36  pathtype = cms.string("PF"),
37  ),
38  cms.PSet(
39  pathname = cms.string("HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_CaloDiJet30_CaloBtagDeepCSV_1p5_v"),
40  pathtype = cms.string("Calo"),
41  ),
42  cms.PSet(
43  pathname = cms.string("HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v"),
44  pathtype = cms.string("PF"),
45  ),
46  cms.PSet(
47  pathname = cms.string("HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v"),
48  pathtype = cms.string("Calo"),
49  ),
50  ),
51 )
52 
53 #
54 # Relative Online-Offline Track Monitoring
55 #
56 from DQM.TrackingMonitorSource.trackToTrackComparisonHists_cfi import trackToTrackComparisonHists
57 
58 referenceTracksForHLTBTag = cms.EDFilter('TrackSelector',
59  src = cms.InputTag('generalTracks'),
60  cut = cms.string("quality('highPurity')")
61 )
62 
63 bTagHLTTrackMonitoring_EmuCalo = trackToTrackComparisonHists.clone()
64 bTagHLTTrackMonitoring_EmuCalo.dzWRTPvCut = cms.double(0.1)
65 bTagHLTTrackMonitoring_EmuCalo.monitoredTrack = cms.InputTag("hltMergedTracksForBTag")
66 bTagHLTTrackMonitoring_EmuCalo.referenceTrack = cms.InputTag("referenceTracksForHLTBTag")
67 bTagHLTTrackMonitoring_EmuCalo.monitoredBeamSpot = cms.InputTag("hltOnlineBeamSpot")
68 bTagHLTTrackMonitoring_EmuCalo.referenceBeamSpot = cms.InputTag("offlineBeamSpot")
69 bTagHLTTrackMonitoring_EmuCalo.topDirName = cms.string("HLT/BTV/HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_CaloDiJet30_CaloBtagDeepCSV_1p5Calo")
70 bTagHLTTrackMonitoring_EmuCalo.referencePrimaryVertices = cms.InputTag("offlinePrimaryVertices")
71 bTagHLTTrackMonitoring_EmuCalo.monitoredPrimaryVertices = cms.InputTag("hltVerticesL3")
72 bTagHLTTrackMonitoring_EmuCalo.genericTriggerEventPSet.hltPaths = cms.vstring("HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_CaloDiJet30_CaloBtagDeepCSV_1p5*")
73 
74 bTagHLTTrackMonitoring_SixJetCalo = bTagHLTTrackMonitoring_EmuCalo.clone()
75 bTagHLTTrackMonitoring_SixJetCalo.topDirName = cms.string("HLT/BTV/HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94PF")
76 bTagHLTTrackMonitoring_SixJetCalo.genericTriggerEventPSet.hltPaths = cms.vstring("HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*")
77 
78 
79 bTagHLTTrackMonitoring_EmuPF = bTagHLTTrackMonitoring_EmuCalo.clone()
80 bTagHLTTrackMonitoring_EmuPF.monitoredTrack = cms.InputTag("hltMergedTracks")
81 bTagHLTTrackMonitoring_EmuPF.monitoredPrimaryVertices = cms.InputTag("hltVerticesPFSelector")
82 bTagHLTTrackMonitoring_EmuPF.topDirName = cms.string("HLT/BTV/HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PFBtagDeepCSV_1p5PF")
83 bTagHLTTrackMonitoring_EmuPF.genericTriggerEventPSet.hltPaths = cms.vstring("HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PFBtagDeepCSV_1p5*")
84 
85 
86 bTagHLTTrackMonitoring_SixJetPF = bTagHLTTrackMonitoring_EmuPF.clone()
87 bTagHLTTrackMonitoring_SixJetPF.monitoredTrack = cms.InputTag("hltMergedTracks")
88 bTagHLTTrackMonitoring_SixJetPF.monitoredPrimaryVertices = cms.InputTag("hltVerticesPFSelector")
89 bTagHLTTrackMonitoring_SixJetPF.topDirName = cms.string("HLT/BTV/HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94PF")
90 bTagHLTTrackMonitoring_SixJetPF.genericTriggerEventPSet.hltPaths = cms.vstring("HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*")
91 
92 
93 
94 
95 bTagHLTTrackMonitoringSequence = cms.Sequence(
96  cms.ignore(referenceTracksForHLTBTag)
97  + bTagHLTTrackMonitoring_EmuCalo
98  + bTagHLTTrackMonitoring_SixJetCalo
99  + bTagHLTTrackMonitoring_EmuPF
100  + bTagHLTTrackMonitoring_SixJetPF
101 )
102 
103 
104