CMS 3D CMS Logo

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  dzWRTPvCut = 0.1,
65  monitoredTrack = "hltMergedTracksForBTag",
66  referenceTrack = "referenceTracksForHLTBTag",
67  monitoredBeamSpot = "hltOnlineBeamSpot",
68  referenceBeamSpot = "offlineBeamSpot",
69  topDirName = "HLT/BTV/HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_CaloDiJet30_CaloBtagDeepCSV_1p5Calo",
70  referencePrimaryVertices = "offlinePrimaryVertices",
71  monitoredPrimaryVertices = "hltVerticesL3",
72  genericTriggerEventPSet = dict(hltPaths = ["HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_CaloDiJet30_CaloBtagDeepCSV_1p5*"])
73 )
74 
75 bTagHLTTrackMonitoring_SixJetCalo = bTagHLTTrackMonitoring_EmuCalo.clone(
76  topDirName = "HLT/BTV/HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94PF",
77  genericTriggerEventPSet = dict(hltPaths = ["HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*"])
78 )
79 
80 bTagHLTTrackMonitoring_EmuPF = bTagHLTTrackMonitoring_EmuCalo.clone(
81  monitoredTrack = "hltMergedTracks",
82  monitoredPrimaryVertices = "hltVerticesPFSelector",
83  topDirName = "HLT/BTV/HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PFBtagDeepCSV_1p5PF",
84  genericTriggerEventPSet = dict(hltPaths = ["HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_PFDiJet30_PFBtagDeepCSV_1p5*"])
85 )
86 
87 bTagHLTTrackMonitoring_SixJetPF = bTagHLTTrackMonitoring_EmuPF.clone(
88  monitoredTrack = "hltMergedTracks",
89  monitoredPrimaryVertices = "hltVerticesPFSelector",
90  topDirName = "HLT/BTV/HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94PF",
91  genericTriggerEventPSet = dict(hltPaths = ["HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*"])
92 )
93 
94 bTagHLTTrackMonitoringSequence = cms.Sequence(
95  cms.ignore(referenceTracksForHLTBTag)
96  + bTagHLTTrackMonitoring_EmuCalo
97  + bTagHLTTrackMonitoring_SixJetCalo
98  + bTagHLTTrackMonitoring_EmuPF
99  + bTagHLTTrackMonitoring_SixJetPF
100 )
101 
102 
103