Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-23 00:28:14

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0004 
0005 BTVHLTOfflineSource = DQMEDAnalyzer("BTVHLTOfflineSource",
0006 
0007     dirname                 = cms.untracked.string("HLT/BTV"),
0008     processname             = cms.string("HLT"),
0009     verbose                 = cms.untracked.bool(False),
0010 
0011     triggerSummaryLabel     = cms.InputTag("hltTriggerSummaryAOD", "", "HLT"),
0012     triggerResultsLabel     = cms.InputTag("TriggerResults", "", "HLT"),
0013     onlineDiscrLabelPF      = cms.InputTag("hltDeepCombinedSecondaryVertexBJetTagsPF", "probb"),
0014     onlineDiscrLabelCalo    = cms.InputTag("hltDeepCombinedSecondaryVertexBJetTagsCalo", "probb"),
0015     offlineDiscrLabelb      = cms.InputTag("pfDeepCSVJetTags", "probb"),
0016     offlineDiscrLabelbb     = cms.InputTag("pfDeepCSVJetTags", "probbb"),
0017     hltFastPVLabel          = cms.InputTag("hltFastPrimaryVertex"),
0018     hltPFPVLabel            = cms.InputTag("hltVerticesPFSelector"),
0019     hltCaloPVLabel          = cms.InputTag("hltVerticesL3"),
0020     offlinePVLabel          = cms.InputTag("offlinePrimaryVertices"),
0021     offlineIPLabel          = cms.InputTag("pfImpactParameterTagInfos"),
0022     turnon_threshold_loose  = cms.double(0.2),
0023     turnon_threshold_medium = cms.double(0.5),
0024     turnon_threshold_tight  = cms.double(0.8),
0025     minDecayLength          = cms.double(-9999.0),
0026     maxDecayLength          = cms.double(5.0),
0027     minJetDistance          = cms.double(0.0),
0028     maxJetDistance          = cms.double(0.07),
0029     dRTrackMatch            = cms.double(0.01),
0030 
0031     pathPairs = cms.VPSet(
0032 
0033         cms.PSet(
0034             pathname = cms.string("HLT_Mu12_DoublePFJets40_PFBTagDeepCSV_p71_v"),
0035             pathtype = cms.string("PF")
0036         ),
0037         cms.PSet(
0038             pathname = cms.string("HLT_Mu12_DoublePFJets40MaxDeta1p6_DoublePFBTagDeepCSV_p71_v"),
0039             pathtype = cms.string("Calo")
0040         ),
0041    ),
0042 )
0043 
0044 #
0045 #  Relative Online-Offline Track Monitoring
0046 #
0047 from DQM.TrackingMonitorSource.trackToTrackComparisonHists_cfi import trackToTrackComparisonHists
0048 
0049 referenceTracksForHLTBTag = cms.EDFilter('TrackSelector',
0050     src = cms.InputTag('generalTracks'),
0051     cut = cms.string("quality('highPurity')")
0052 )
0053 
0054 bTagHLTTrackMonitoring_muPF1 = trackToTrackComparisonHists.clone(
0055     dzWRTPvCut               = 0.1,
0056     monitoredTrack           = "hltMergedTracks",
0057     referenceTrack           = "referenceTracksForHLTBTag",
0058     monitoredBeamSpot        = "hltOnlineBeamSpot",
0059     referenceBeamSpot        = "offlineBeamSpot",
0060     topDirName               = "HLT/BTV/HLT_Mu12_DoublePFJets40_PFBTagDeepCSV_p71PF",
0061     referencePrimaryVertices = "offlinePrimaryVertices",
0062     monitoredPrimaryVertices = "hltVerticesPFSelector",
0063     genericTriggerEventPSet = dict(hltPaths = ["HLT_Mu12_DoublePFJets40_PFBTagDeepCSV_p71*"])
0064 )
0065 
0066 bTagHLTTrackMonitoring_muPF2 = bTagHLTTrackMonitoring_muPF1.clone( 
0067     topDirName = "HLT/BTV/HLT_Mu12_DoublePFJets40MaxDeta1p6_DoublePFBTagDeepCSV_p71PF",
0068     genericTriggerEventPSet = dict(hltPaths = ["HLT_Mu12_DoublePFJets40MaxDeta1p6_DoublePFBTagDeepCSV_p71*"])
0069 )
0070 
0071 bTagHLTTrackMonitoringSequence = cms.Sequence(
0072     cms.ignore(referenceTracksForHLTBTag)
0073     + bTagHLTTrackMonitoring_muPF1
0074     + bTagHLTTrackMonitoring_muPF2
0075 )
0076