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  pathPairs = cms.VPSet(
32 
33  cms.PSet(
34  pathname = cms.string("HLT_Mu12_DoublePFJets40_PFBTagDeepCSV_p71_v"),
35  pathtype = cms.string("PF")
36  ),
37  cms.PSet(
38  pathname = cms.string("HLT_Mu12_DoublePFJets40MaxDeta1p6_DoublePFBTagDeepCSV_p71_v"),
39  pathtype = cms.string("Calo")
40  ),
41  ),
42 )
43 
44 #
45 # Relative Online-Offline Track Monitoring
46 #
47 from DQM.TrackingMonitorSource.trackToTrackComparisonHists_cfi import trackToTrackComparisonHists
48 
49 referenceTracksForHLTBTag = cms.EDFilter('TrackSelector',
50  src = cms.InputTag('generalTracks'),
51  cut = cms.string("quality('highPurity')")
52 )
53 
54 bTagHLTTrackMonitoring_muPF1 = trackToTrackComparisonHists.clone(
55  dzWRTPvCut = 0.1,
56  monitoredTrack = "hltMergedTracks",
57  referenceTrack = "referenceTracksForHLTBTag",
58  monitoredBeamSpot = "hltOnlineBeamSpot",
59  referenceBeamSpot = "offlineBeamSpot",
60  topDirName = "HLT/BTV/HLT_Mu12_DoublePFJets40_PFBTagDeepCSV_p71PF",
61  referencePrimaryVertices = "offlinePrimaryVertices",
62  monitoredPrimaryVertices = "hltVerticesPFSelector",
63  genericTriggerEventPSet = dict(hltPaths = ["HLT_Mu12_DoublePFJets40_PFBTagDeepCSV_p71*"])
64 )
65 
66 bTagHLTTrackMonitoring_muPF2 = bTagHLTTrackMonitoring_muPF1.clone(
67  topDirName = "HLT/BTV/HLT_Mu12_DoublePFJets40MaxDeta1p6_DoublePFBTagDeepCSV_p71PF",
68  genericTriggerEventPSet = dict(hltPaths = ["HLT_Mu12_DoublePFJets40MaxDeta1p6_DoublePFBTagDeepCSV_p71*"])
69 )
70 
71 bTagHLTTrackMonitoringSequence = cms.Sequence(
72  cms.ignore(referenceTracksForHLTBTag)
73  + bTagHLTTrackMonitoring_muPF1
74  + bTagHLTTrackMonitoring_muPF2
75 )
76