Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-03-05 02:39:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from DQMOffline.Trigger.TopMonitor_cfi import hltTOPmonitoring
0004 
0005 from Configuration.Eras.Modifier_run2_HLTconditions_2018_cff import run2_HLTconditions_2018
0006 from Configuration.Eras.Modifier_run2_HLTconditions_2017_cff import run2_HLTconditions_2017
0007 from Configuration.Eras.Modifier_run2_HLTconditions_2016_cff import run2_HLTconditions_2016
0008 
0009 ###
0010 ### Ele+Jet
0011 ###
0012 
0013 topEleJet_jet = hltTOPmonitoring.clone(
0014     FolderName = 'HLT/TOP/EleJet/JetMonitor',
0015     nmuons = 0,
0016     nelectrons = 1,
0017     njets = 1,
0018     eleSelection = 'pt>50 & abs(eta)<2.1',
0019     jetSelection = 'pt>30 & abs(eta)<2.4',
0020     histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
0021                      eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
0022                      elePtBinning = [0,50,60,80,120,200,400],
0023                      elePtBinning2D = [0,50,70,120,200,400],
0024                      jetPtBinning = [0,30,35,37.5,40,50,60,80,120,200,400],
0025                      jetPtBinning2D = [0,30,35,40,50,60,80,100,200,400]),
0026     numGenericTriggerEventPSet= dict(hltPaths = ['HLT_Ele30_eta2p1_WPTight_Gsf_CentralPFJet35_EleCleaned_v*']),
0027     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele35_WPTight_Gsf_v*',
0028                                                   'HLT_Ele38_WPTight_Gsf_v*',
0029                                                   'HLT_Ele40_WPTight_Gsf_v*',])
0030 )
0031 ### ---
0032 
0033 topEleJet_ele = hltTOPmonitoring.clone(
0034     FolderName = 'HLT/TOP/EleJet/ElectronMonitor',
0035     nmuons = 0,
0036     nelectrons = 1,
0037     njets = 1,
0038     eleSelection = 'pt>25 & abs(eta)<2.1',
0039     jetSelection = 'pt>50 & abs(eta)<2.4',
0040     histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
0041                      eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
0042                      elePtBinning = [0,25,30,32.5,35,40,45,50,60,80,120,200,400],
0043                      elePtBinning2D = [0,25,30,40,50,60,80,100,200,400],
0044                      jetPtBinning = [0,50,60,80,120,200,400],
0045                      jetPtBinning2D = [0,50,60,80,100,200,400]),
0046     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele30_eta2p1_WPTight_Gsf_CentralPFJet35_EleCleaned_v*']),
0047     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFJet60_v*',
0048                                                   'HLT_PFJet80_v*',
0049                                                   'HLT_PFJet140_v*',
0050                                                   'HLT_PFJet200_v*',
0051                                                   'HLT_PFJet260_v*',
0052                                                   'HLT_PFJet320_v*',
0053                                                   'HLT_PFJet400_v*',
0054                                                   'HLT_PFJet450_v*',
0055                                                   'HLT_PFJet500_v*',
0056                                                   'HLT_PFJet550_v*'])
0057 )
0058 ### ---
0059 topEleJet_all = hltTOPmonitoring.clone(
0060     FolderName = 'HLT/TOP/EleJet/GlobalMonitor',
0061     nmuons = 0,
0062     nelectrons = 1,
0063     njets = 1,
0064     eleSelection = 'pt>25 & abs(eta)<2.1',
0065     jetSelection = 'pt>30 & abs(eta)<2.4',
0066     histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
0067                      eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
0068                      elePtBinning = [0,25,30,32.5,35,40,45,50,60,80,120,200,400],
0069                      elePtBinning2D = [0,25,30,40,50,60,80,100,200,400],
0070                      jetPtBinning = [0,30,35,37.5,40,50,60,80,120,200,400],
0071                      jetPtBinning2D = [0,30,35,40,50,60,80,100,200,400]),
0072     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele30_eta2p1_WPTight_Gsf_CentralPFJet35_EleCleaned_v*']),
0073     #denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu24_v*'])
0074 )
0075 ###
0076 ### Ele+HT
0077 ###
0078 
0079 topEleHT_ht = hltTOPmonitoring.clone(
0080     FolderName = 'HLT/TOP/EleHT/HTMonitor',
0081     nmuons = 0,
0082     nelectrons = 1,
0083     njets = 2,
0084     eleSelection = 'pt>50 & abs(eta)<2.1',
0085     jetSelection = 'pt>30 & abs(eta)<2.4',
0086     HTcut = 100,
0087     histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
0088                      eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
0089                      elePtBinning = [0,50,60,80,120,200,400],
0090                      elePtBinning2D = [0,50,70,120,200,400],
0091                      jetPtBinning = [0,30,40,50,60,80,120,200,400],
0092                      jetPtBinning2D = [0,30,40,60,80,100,200,400],
0093                      HTBinning  = [0,100,120,140,150,160,175,200,300,400,500,700],
0094                      HTBinning2D  = [0,100,125,150,175,200,400,700]),
0095     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele28_eta2p1_WPTight_Gsf_HT150_v*']),
0096     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele35_WPTight_Gsf_v*',
0097                                                   'HLT_Ele38_WPTight_Gsf_v*',
0098                                                   'HLT_Ele40_WPTight_Gsf_v*'])
0099 )
0100 ### ---
0101 
0102 topEleHT_ele = hltTOPmonitoring.clone(
0103     FolderName = 'HLT/TOP/EleHT/ElectronMonitor',
0104     nmuons = 0,
0105     nelectrons = 1,
0106     njets = 2,
0107     eleSelection = 'pt>25 & abs(eta)<2.1',
0108     jetSelection = 'pt>30 & abs(eta)<2.4',
0109     HTcut = 200,
0110     histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
0111                      eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
0112                      elePtBinning = [0,25,30,32.5,35,40,45,50,60,80,120,200,400],
0113                      elePtBinning2D = [0,25,30,40,50,60,80,100,200,400],
0114                      jetPtBinning = [0,30,40,50,60,80,120,200,400],
0115                      jetPtBinning2D = [0,30,40,60,80,100,200,400],
0116                      HTBinning  = [0,200,250,300,350,400,500,700],
0117                      HTBinning2D  = [0,200,250,300,400,500,700]),
0118     numGenericTriggerEventPSet =dict(hltPaths = ['HLT_Ele28_eta2p1_WPTight_Gsf_HT150_v*']),
0119     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT250_v*',
0120                                                   'HLT_PFHT370_v*',
0121                                                   'HLT_PFHT430_v*',
0122                                                   'HLT_PFHT510_v*',
0123                                                   'HLT_PFHT590_v*',
0124                                                   'HLT_PFHT680_v*',
0125                                                   'HLT_PFHT780_v*',
0126                                                   'HLT_PFHT890_v*'])
0127 )
0128 ### ---
0129 
0130 topEleHT_all = hltTOPmonitoring.clone(
0131     FolderName = 'HLT/TOP/EleHT/GlobalMonitor',
0132     nmuons = 0,
0133     nelectrons = 1,
0134     njets = 2,
0135     eleSelection = 'pt>25 & abs(eta)<2.1',
0136     jetSelection = 'pt>30 & abs(eta)<2.4',
0137     HTcut = 100,
0138     histoPSet = dict(eleEtaBinning = [-2.1,-1.5,-0.9,-0.6,-0.3,-0.1,0,0.1,0.3,0.6,0.9,1.5,2.1],
0139                      eleEtaBinning2D = [-2.1,-1.5,-0.6,0,0.6,1.5,2.1],
0140                      elePtBinning = [0,25,30,32.5,35,40,45,50,60,80,120,200,400],
0141                      elePtBinning2D = [0,25,30,40,50,60,80,100,200,400],
0142                      jetPtBinning = [0,30,40,50,60,80,120,200,400],
0143                      jetPtBinning2D = [0,30,40,60,80,100,200,400],
0144                      HTBinning  = [0,100,120,140,150,160,175,200,300,400,500,700],
0145                      HTBinning2D  = [0,100,125,150.175,200,400,700]),
0146     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele28_eta2p1_WPTight_Gsf_HT150_v*'])
0147     #denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu24_v*'])
0148 )
0149 ###
0150 ### SingleMuon
0151 ###
0152 
0153 topSingleMuonHLTMonitor_Mu24 = hltTOPmonitoring.clone(
0154     FolderName = 'HLT/TOP/SingleLepton/SingleMuon/Mu24/',
0155     nmuons = 1,
0156     nelectrons = 0,
0157     njets = 0,
0158     eleSelection = 'pt>30 & abs(eta)<2.4',
0159     muoSelection = 'pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & isTrackerMuon & numberOfMatches>1  & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0  & globalTrack.hitPattern.numberOfValidMuonHits>0 & globalTrack.normalizedChi2<10 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.) )/pt<0.15',
0160     jetSelection = 'pt>20 & abs(eta)<2.4',
0161     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu24_eta2p1_v*', 'HLT_IsoMu24_v*'])
0162 )
0163 ### ---
0164 
0165 topSingleMuonHLTMonitor_Mu27 = hltTOPmonitoring.clone(
0166     FolderName = 'HLT/TOP/SingleLepton/SingleMuon/Mu27/',
0167     nmuons = 1,
0168     nelectrons = 0,
0169     njets = 0,
0170     eleSelection = 'pt>30 & abs(eta)<2.4',
0171     muoSelection = 'pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & isTrackerMuon & numberOfMatches>1  & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0  & globalTrack.hitPattern.numberOfValidMuonHits>0 & globalTrack.normalizedChi2<10 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.) )/pt<0.15',
0172     jetSelection = 'pt>20 & abs(eta)<2.4',
0173     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
0174 )
0175 ### ---
0176 
0177 topSingleMuonHLTMonitor_Mu50 = hltTOPmonitoring.clone(
0178     FolderName = 'HLT/TOP/SingleLepton/SingleMuon/Mu50/',
0179     nmuons = 1,
0180     nelectrons = 0,
0181     njets = 0,
0182     eleSelection = 'pt>30 & abs(eta)<2.4',
0183     muoSelection = 'pt>26 & abs(eta)<2.1 & isPFMuon & isGlobalMuon & isTrackerMuon & numberOfMatches>1  & innerTrack.hitPattern.trackerLayersWithMeasurement>5 & innerTrack.hitPattern.numberOfValidPixelHits>0  & globalTrack.hitPattern.numberOfValidMuonHits>0 & globalTrack.normalizedChi2<10 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.) )/pt<0.15',
0184     jetSelection = 'pt>20 & abs(eta)<2.4',
0185     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu50_v*'])
0186 )
0187 ###
0188 ### DiElectron
0189 ###
0190 
0191 topDiElectronHLTMonitor = hltTOPmonitoring.clone(
0192     FolderName = 'HLT/TOP/DiLepton/DiElectron/Ele23Ele12/',
0193     nmuons = 0,
0194     nelectrons = 2,
0195     njets = 0,
0196     eleSelection = 'pt>15 & abs(eta)<2.4',
0197     muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25  & isPFMuon & (isTrackerMuon || isGlobalMuon)',
0198     jetSelection = 'pt>30 & abs(eta)<2.4',
0199     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*'])
0200 )
0201 ### ---
0202 
0203 topDiElectronHLTMonitor_Dz = topDiElectronHLTMonitor.clone(
0204     FolderName = 'HLT/TOP/DiLepton/DiElectron/Ele23Ele12_DzEfficiency/',
0205     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Ele23_Ele12_CaloIdL_TrackIdL_IsoVL_v*'])
0206 )
0207 ###
0208 ### DiMuon
0209 ###
0210 
0211 topDiMuonHLTMonitor_noDz = hltTOPmonitoring.clone(
0212     FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8/',
0213     nmuons = 2,
0214     nelectrons = 0,
0215     njets = 0,
0216     eleSelection = 'pt>15 & abs(eta)<2.4',
0217     muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25  & isPFMuon & (isTrackerMuon || isGlobalMuon)',
0218     jetSelection = 'pt>30 & abs(eta)<2.4',
0219     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_v*'])
0220 )
0221 ### ---
0222 
0223 topDiMuonHLTMonitor_Dz = hltTOPmonitoring.clone(
0224     FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8_Dz/',
0225     nmuons = 2,
0226     nelectrons = 0,
0227     njets = 0,
0228     eleSelection = 'pt>15 & abs(eta)<2.4',              
0229     muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25  & isPFMuon & (isTrackerMuon || isGlobalMuon)',
0230     jetSelection = 'pt>30 & abs(eta)<2.4',
0231     numGenericTriggerEventPSet =dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*'])
0232 )
0233 ### ---
0234 
0235 topDiMuonHLTMonitor_Dz_Mu17_Mu8 = topDiMuonHLTMonitor_Dz.clone(
0236     FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8_DzEfficiency/',
0237     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*']),
0238     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_v*'])
0239 )
0240 ### ---
0241 
0242 topDiMuonHLTMonitor_Mass8 = hltTOPmonitoring.clone(
0243     FolderName = 'HLT/TOP/DiLepton/DiMuon/Mass8/',
0244     nmuons = 2,
0245     nelectrons = 0,
0246     njets = 0,
0247     eleSelection = 'pt>15 & abs(eta)<2.4',
0248     muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25  & isPFMuon & (isTrackerMuon || isGlobalMuon)',
0249     jetSelection = 'pt>30 & abs(eta)<2.4',
0250     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass8_v*'])
0251 )
0252 ### ---
0253 
0254 topDiMuonHLTMonitor_Mass3p8 = hltTOPmonitoring.clone(
0255     FolderName = 'HLT/TOP/DiLepton/DiMuon/Mass3p8/',
0256     nmuons = 2,
0257     nelectrons = 0,
0258     njets = 0,
0259     eleSelection = 'pt>15 & abs(eta)<2.4',
0260     muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25  & isPFMuon & (isTrackerMuon || isGlobalMuon)',
0261     jetSelection = 'pt>30 & abs(eta)<2.4',
0262     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8_v*'])
0263 )
0264 ### ---
0265 
0266 topDiMuonHLTMonitor_Mass8Mon = hltTOPmonitoring.clone(
0267     #FolderName = 'HLT/TopHLTOffline/TopMonitor/DiLepton/DiMuon/Mu17_Mu8_Mass8Efficiency/',
0268     FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8_Mass8Efficiency/',
0269     nmuons = 2,
0270     nelectrons = 0,
0271     njets = 0,
0272     eleSelection = 'pt>15 & abs(eta)<2.4',
0273     muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25  & isPFMuon & (isTrackerMuon || isGlobalMuon)',
0274     jetSelection = 'pt>30 & abs(eta)<2.4',
0275     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass8_v*']),
0276     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*'])
0277 )
0278 ### ---
0279 
0280 topDiMuonHLTMonitor_Mass3p8Mon = hltTOPmonitoring.clone(
0281     #FolderName = 'HLT/TopHLTOffline/TopMonitor/DiLepton/DiMuon/Mu17_Mu8_Mass3p8Efficiency/',
0282     FolderName = 'HLT/TOP/DiLepton/DiMuon/Mu17_Mu8_Mass3p8Efficiency/',
0283     nmuons = 2,
0284     nelectrons = 0,
0285     njets = 0,
0286     eleSelection = 'pt>15 & abs(eta)<2.4',
0287     muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25  & isPFMuon & (isTrackerMuon || isGlobalMuon)',
0288     jetSelection = 'pt>30 & abs(eta)<2.4',
0289     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_Mass3p8_v*']),
0290     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*'])
0291 )
0292 ###
0293 ### ElecMuon
0294 ###
0295 
0296 topElecMuonHLTMonitor = hltTOPmonitoring.clone(
0297     FolderName = 'HLT/TOP/DiLepton/ElecMuon/OR/',
0298     nmuons = 1,
0299     nelectrons = 1,
0300     njets = 0,
0301     eleSelection = 'pt>15 & abs(eta)<2.4',
0302     muoSelection = 'pt>15 & abs(eta)<2.4 & (pfIsolationR04.sumChargedHadronPt + max(pfIsolationR04.sumNeutralHadronEt + pfIsolationR04.sumPhotonEt - (pfIsolationR04.sumPUPt)/2.,0.))/pt < 0.25  & isPFMuon & (isTrackerMuon || isGlobalMuon)',
0303     jetSelection = 'pt>30 & abs(eta)<2.4',
0304     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*',
0305                                                   'HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*',
0306                                                   'HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*',
0307                                                   'HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*',
0308                                                   'HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*',
0309                                                   'HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_v*'])
0310 )
0311 ### ---
0312 
0313 topElecMuonHLTMonitor_Dz_Mu12Ele23 = topElecMuonHLTMonitor.clone(
0314     FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu12Ele23_DzEfficiency/',
0315     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*']),
0316     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*'])
0317 )
0318 ### ---
0319 
0320 topElecMuonHLTMonitor_Dz_Mu8Ele23 = topElecMuonHLTMonitor.clone(
0321     FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu8Ele23_DzEfficiency/',
0322     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*']),
0323     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*'])
0324 )
0325 ### ---
0326 
0327 topElecMuonHLTMonitor_Dz_Mu23Ele12 = topElecMuonHLTMonitor.clone(
0328     FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu23Ele12_DzEfficiency/',
0329     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*']),
0330     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_v*'])
0331 )
0332 ### ---
0333 
0334 topElecMuonHLTMonitor_Mu12Ele23 = topElecMuonHLTMonitor.clone(
0335     FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu12Ele23/',
0336     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*'])
0337 )
0338 ### ---
0339 
0340 topElecMuonHLTMonitor_Mu8Ele23 = topElecMuonHLTMonitor.clone(
0341     FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu8Ele23/',
0342     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_DZ_v*'])
0343 )
0344 ### ---
0345 
0346 topElecMuonHLTMonitor_Mu23Ele12 = topElecMuonHLTMonitor.clone(
0347     FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu23Ele12/',
0348     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_DZ_v*'])
0349 )
0350 ### ---
0351 
0352 topElecMuonHLTMonitor_Mu12Ele23_ref = topElecMuonHLTMonitor.clone(
0353     FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu12Ele23_Ref/',
0354     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu12_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*'])
0355 )
0356 ### ---
0357 
0358 topElecMuonHLTMonitor_Mu8Ele23_ref = topElecMuonHLTMonitor.clone(
0359     FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu8Ele23_Ref/',
0360     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu8_TrkIsoVVL_Ele23_CaloIdL_TrackIdL_IsoVL_v*'])
0361 )
0362 ### ---
0363 
0364 topElecMuonHLTMonitor_Mu23Ele12_ref = topElecMuonHLTMonitor.clone(
0365     FolderName = 'HLT/TOP/DiLepton/ElecMuon/Mu23Ele12_Ref/',
0366     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_Mu23_TrkIsoVVL_Ele12_CaloIdL_TrackIdL_IsoVL_v*'])
0367 )
0368 ###
0369 ### FullyHadronic
0370 ###
0371 
0372 fullyhadronic_ref350 = hltTOPmonitoring.clone(
0373     FolderName = 'HLT/TOP/FullyHadronic/Reference/PFHT350Monitor/',
0374     # Selections
0375     leptJetDeltaRmin = 0.0,
0376     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0377     HTcut            = 250,
0378     # Binning
0379     histoPSet =dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000 ),
0380                     HTBinning = [0,240,260,280,300,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900,1000]),
0381     # Trigger
0382     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT350_v*']),
0383     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
0384 )
0385 ### ---
0386 
0387 fullyhadronic_ref370 = hltTOPmonitoring.clone(
0388     FolderName = 'HLT/TOP/FullyHadronic/Reference/PFHT370Monitor/',
0389     # Selections
0390     leptJetDeltaRmin = 0.0,
0391     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0392     HTcut            = 250,
0393     # Binning
0394     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0395                      HTBinning = [0,240,260,280,300,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900,1000]),
0396     # Trigger
0397     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT370_v*']),
0398     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
0399 )
0400 ### ---
0401 
0402 fullyhadronic_ref430 = hltTOPmonitoring.clone(
0403     FolderName = 'HLT/TOP/FullyHadronic/Reference/PFHT430Monitor/',
0404     # Selections
0405     leptJetDeltaRmin = 0.0,
0406     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0407     HTcut            = 250,
0408     # Binning
0409     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000 ),
0410                      HTBinning = [0,240,260,280,300,320,340,360,380,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900,1000]),
0411     # Trigger
0412     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT430_v*']),
0413     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
0414 )
0415 ### ---
0416 
0417 fullyhadronic_DoubleBTag_all = hltTOPmonitoring.clone(
0418     FolderName   = 'HLT/TOP/FullyHadronic/DoubleBTag/GlobalMonitor/',
0419     # Selections
0420     leptJetDeltaRmin = 0.0,
0421     njets            = 6,
0422     jetSelection     = 'pt>40 & abs(eta)<2.4',
0423     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0424     HTcut            = 500,
0425     nbjets           = 2,
0426     bjetSelection    = 'pt>40 & abs(eta)<2.4',
0427     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0428     workingpoint     = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0429     # Binning
0430     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0431                      jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
0432                      HTBinning    = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0433     # Triggers 
0434     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*']),
0435     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
0436 )
0437 # conditions 2016
0438 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0439 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_all, workingpoint = 0.8484)
0440 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_DoubleBTagCSV_p056_v*'])
0441 # conditions 2017
0442 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0443 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_all, workingpoint = 0.8484)
0444 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_DoublePFBTagCSV_2p2_v*'])
0445 # conditions 2018
0446 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_all, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0447 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_all, workingpoint = 0.4941)
0448 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*'])
0449 ### ---
0450 
0451 fullyhadronic_DoubleBTag_jet = hltTOPmonitoring.clone(
0452     FolderName   = 'HLT/TOP/FullyHadronic/DoubleBTag/JetMonitor/',
0453     # Selections
0454     leptJetDeltaRmin = 0.0,
0455     njets            = 6,
0456     jetSelection     = 'pt>30 & abs(eta)<2.4',
0457     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0458     HTcut            = 500,
0459     nbjets           = 2,
0460     bjetSelection    = 'pt>30 & abs(eta)<2.4',
0461     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0462     workingpoint     = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0463     # Binning 
0464     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0465                      jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
0466                      HTBinning    = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0467     # Triggers
0468     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_v*']),
0469     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT370_v*'])
0470 )
0471 # conditions 2016
0472 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0473 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_jet, workingpoint = 0.8484)
0474 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_v*'])
0475 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT350_v*'])
0476 # conditions 2017
0477 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0478 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_jet, workingpoint = 0.8484)
0479 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_v*'])
0480 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT370_v*'])
0481 # conditions 2018
0482 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_jet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0483 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_jet, workingpoint = 0.4941)
0484 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_v*'])
0485 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT370_v*'])
0486 ### ---
0487 
0488 fullyhadronic_DoubleBTag_bjet = hltTOPmonitoring.clone(
0489     FolderName   = 'HLT/TOP/FullyHadronic/DoubleBTag/BJetMonitor/',
0490     # Selections
0491     leptJetDeltaRmin = 0.0,
0492     njets            = 6,
0493     jetSelection     = 'pt>40 & abs(eta)<2.4',
0494     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0495     HTcut            = 500,
0496     nbjets           = 2,
0497     bjetSelection    = 'pt>40 & abs(eta)<2.4',
0498     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0499     workingpoint     = 0.1522, # Loose (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0500     # Binning
0501     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0502                      jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
0503                      HTBinning    = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0504     # Triggers
0505     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*']),
0506     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_v*'])
0507 )
0508 # conditions 2016
0509 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0510 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_bjet, workingpoint = 0.5426)
0511 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_DoubleBTagCSV_p056_v*'])
0512 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_v*'])
0513 # conditions 2017
0514 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0515 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_bjet, workingpoint = 0.5426)
0516 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_DoublePFBTagCSV_2p2_v*'])
0517 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_v*'])
0518 # conditions 2018
0519 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_bjet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0520 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_bjet, workingpoint = 0.1522)
0521 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_DoublePFBTagDeepCSV_2p94_v*'])
0522 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_v*'])
0523 
0524 ### ---
0525 
0526 fullyhadronic_DoubleBTag_ref = hltTOPmonitoring.clone(
0527     FolderName   = 'HLT/TOP/FullyHadronic/DoubleBTag/RefMonitor/',
0528     # Selections
0529     leptJetDeltaRmin = 0.0,
0530     njets            = 6,
0531     jetSelection     = 'pt>40 & abs(eta)<2.4',
0532     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0533     HTcut            = 500,
0534     nbjets           = 0,
0535     bjetSelection    = 'pt>40 & abs(eta)<2.4',
0536     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0537     workingpoint     = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0538     # Binning
0539     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0540                      jetPtBinning = [0,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
0541                      HTBinning    = [0,360,380,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0542     # Triggers
0543     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT400_SixPFJet32_v*']),
0544     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
0545 )
0546 # conditions 2016
0547 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_ref, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0548 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_ref, workingpoint = 0.8484)
0549 run2_HLTconditions_2016.toModify(fullyhadronic_DoubleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixJet30_v*'])
0550 # conditions 2017
0551 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_ref, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0552 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_ref, workingpoint = 0.8484)
0553 run2_HLTconditions_2017.toModify(fullyhadronic_DoubleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT380_SixPFJet32_v*'])
0554 # conditions 2018
0555 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_ref, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0556 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_ref, workingpoint = 0.4941)
0557 run2_HLTconditions_2018.toModify(fullyhadronic_DoubleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_SixPFJet32_v*'])
0558 
0559 ### ---
0560 
0561 fullyhadronic_SingleBTag_all = hltTOPmonitoring.clone(
0562     FolderName= 'HLT/TOP/FullyHadronic/SingleBTag/GlobalMonitor/',
0563     # Selections
0564     leptJetDeltaRmin = 0.0,
0565     njets            = 6,
0566     jetSelection     = 'pt>40 & abs(eta)<2.4',
0567     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0568     HTcut            = 500,
0569     nbjets           = 2,
0570     bjetSelection    = 'pt>40 & abs(eta)<2.4',
0571     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0572     workingpoint     = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0573     # Binning
0574     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0575                      jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
0576                      HTBinning    = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0577     # Triggers
0578     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_PFBTagDeepCSV_1p59_v*']),
0579     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
0580 )
0581 # conditions 2016
0582 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0583 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_all, workingpoint = 0.8484)
0584 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_BTagCSV_p056_v*'])
0585 # conditions 2017
0586 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0587 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_all, workingpoint = 0.8484)
0588 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_PFBTagCSV_1p5_v*'])
0589 # conditions 2018
0590 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_all, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0591 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_all, workingpoint = 0.4941)
0592 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_PFBTagDeepCSV_1p59_v*'])
0593 
0594 ### ---
0595 
0596 fullyhadronic_SingleBTag_jet = hltTOPmonitoring.clone(
0597     FolderName= 'HLT/TOP/FullyHadronic/SingleBTag/JetMonitor/',
0598     # Selection
0599     leptJetDeltaRmin = 0.0,
0600     njets            = 6,
0601     jetSelection     = 'pt>30 & abs(eta)<2.4',
0602     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0603     HTcut            = 500,
0604     nbjets           = 2,
0605     bjetSelection    = 'pt>30 & abs(eta)<2.4',
0606     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0607     workingpoint     = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0608     # Binning
0609     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0610                  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
0611                  HTBinning    = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0612     # Triggers
0613     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_v*']),
0614     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT430_v*'])
0615 )
0616 # conditions 2016
0617 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0618 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_jet, workingpoint = 0.8484)
0619 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_v*'])
0620 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT400_v*'])
0621 # conditions 2017
0622 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0623 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_jet, workingpoint = 0.8484)
0624 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_v*'])
0625 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_v*'])
0626 # conditions 2018
0627 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_jet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0628 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_jet, workingpoint = 0.4941)
0629 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_v*'])
0630 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_jet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_v*'])
0631 
0632 ### ---
0633 
0634 fullyhadronic_SingleBTag_bjet = hltTOPmonitoring.clone(
0635     FolderName= 'HLT/TOP/FullyHadronic/SingleBTag/BJetMonitor/',
0636     # Selection
0637     leptJetDeltaRmin = 0.0,
0638     njets            = 6,
0639     jetSelection     = 'pt>40 & abs(eta)<2.4',
0640     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0641     HTcut            = 500,
0642     nbjets           = 2,
0643     bjetSelection    = 'pt>40 & abs(eta)<2.4',
0644     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0645     workingpoint     = 0.1522, # Loose (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0646     # Binning
0647     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0648                      jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
0649                      HTBinning    = [0,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0650     # Triggers
0651     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_PFBTagDeepCSV_1p59_v*']),
0652     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_v*'])
0653 )
0654 # conditions 2016
0655 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0656 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_bjet, workingpoint = 0.5426)
0657 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_BTagCSV_p056_v*'])
0658 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_v*'])
0659 # conditions 2017
0660 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0661 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_bjet, workingpoint = 0.5426)
0662 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_PFBTagCSV_1p5_v*'])
0663 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_v*'])
0664 # conditions 2018
0665 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_bjet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0666 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_bjet, workingpoint = 0.1522)
0667 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_PFBTagDeepCSV_1p59_v*'])
0668 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_v*'])
0669 
0670 ### ---
0671 
0672 fullyhadronic_SingleBTag_ref = hltTOPmonitoring.clone(
0673     FolderName= 'HLT/TOP/FullyHadronic/SingleBTag/RefMonitor/',
0674     # Selection
0675     leptJetDeltaRmin = 0.0,
0676     njets            = 6,
0677     jetSelection     = 'pt>40 & abs(eta)<2.4',
0678     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0679     HTcut            = 500,
0680     nbjets           = 0,
0681     bjetSelection    = 'pt>40 & abs(eta)<2.4',
0682     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0683     workingpoint     = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0684     # Binning
0685     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0686                      jetPtBinning = [0,30,35,40,45,50,55,60,65,70,75,80,90,100,120,140,160,200],
0687                      HTBinning    = [0,400,420,440,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0688     # Triggers
0689     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT450_SixPFJet36_v*']),
0690     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
0691 )
0692 # conditions 2016
0693 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_ref, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0694 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_ref, workingpoint = 0.8484)
0695 run2_HLTconditions_2016.toModify(fullyhadronic_SingleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixJet40_v*'])
0696 # conditions 2017
0697 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_ref, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0698 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_ref, workingpoint = 0.8484)
0699 run2_HLTconditions_2017.toModify(fullyhadronic_SingleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT430_SixPFJet40_v*'])
0700 # conditions 2018
0701 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_ref, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0702 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_ref, workingpoint = 0.4941)
0703 run2_HLTconditions_2018.toModify(fullyhadronic_SingleBTag_ref.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT450_SixPFJet36_v*'])
0704 
0705 ### ---
0706 
0707 fullyhadronic_TripleBTag_all = hltTOPmonitoring.clone(
0708     FolderName   = 'HLT/TOP/FullyHadronic/TripleBTag/GlobalMonitor/',
0709     # Selections
0710     leptJetDeltaRmin = 0.0,
0711     njets            = 4,
0712     jetSelection     = 'pt>45 & abs(eta)<2.4',
0713     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0714     HTcut            = 500,
0715     nbjets           = 4,
0716     bjetSelection    = 'pt>45 & abs(eta)<2.4',
0717     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0718     workingpoint     = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0719     # Binning
0720     histoPSet = dict(htPSet =dict(nbins= 50, xmin= 0.0, xmax= 1000),
0721                  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,200,400],
0722                  HTBinning    = [0,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0723     # Triggers
0724     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_TriplePFBTagDeepCSV_4p5_v*']),
0725     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_IsoMu27_v*'])
0726 )
0727 # conditions 2017
0728 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_all, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0729 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_all, workingpoint = 0.8484)
0730 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT300PT30_QuadPFJet_75_60_45_40_TriplePFBTagCSV_3p0_v*'])
0731 # conditions 2018
0732 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_all, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0733 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_all, workingpoint = 0.4941)
0734 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_all.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_TriplePFBTagDeepCSV_4p5_v*'])
0735 ### ---
0736 
0737 fullyhadronic_TripleBTag_jet = hltTOPmonitoring.clone(
0738     FolderName   = 'HLT/TOP/FullyHadronic/TripleBTag/JetMonitor/',
0739     # Selections
0740     leptJetDeltaRmin = 0.0,
0741     njets            = 4,
0742     jetSelection     = 'pt>45 & abs(eta)<2.4',
0743     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0744     HTcut            = 500,
0745     nbjets           = 4,
0746     bjetSelection    = 'pt>45 & abs(eta)<2.4',
0747     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0748     workingpoint     = 0.4941, # Medium (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0749     # Binning
0750     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0751                  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,200,400],
0752                  HTBinning    = [0,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0753     # Triggers
0754     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_v*']),
0755     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT350_v*'])
0756 )
0757 # conditions 2017
0758 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_jet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0759 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_jet, workingpoint = 0.8484)
0760 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT300PT30_QuadPFJet_75_60_45_40_v*'])
0761 # conditions 2018
0762 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_jet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0763 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_jet, workingpoint = 0.4941)
0764 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_jet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_v*'])
0765 
0766 ### ---
0767 
0768 fullyhadronic_TripleBTag_bjet = hltTOPmonitoring.clone(
0769     FolderName   = 'HLT/TOP/FullyHadronic/TripleBTag/BJetMonitor/',
0770     # Selections
0771     leptJetDeltaRmin = 0.0,
0772     njets            = 4,
0773     jetSelection     = 'pt>45 & abs(eta)<2.4',
0774     HTdefinition     = 'pt>30 & abs(eta)<2.4',
0775     HTcut            = 500,
0776     nbjets           = 4,
0777     bjetSelection    = 'pt>45 & abs(eta)<2.4',
0778     btagAlgos        = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"],
0779     workingpoint     = 0.1522, # Loose (According to: https://twiki.cern.ch/twiki/bin/viewauth/CMS/BtagRecommendation94X)
0780     # Binning
0781     histoPSet = dict(htPSet = dict(nbins= 50, xmin= 0.0, xmax= 1000),
0782                  jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,200,400],
0783                  HTBinning    = [0,460,480,500,520,540,560,580,600,650,700,750,800,850,900]),
0784     # Triggers 
0785     numGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_TriplePFBTagDeepCSV_4p5_v*']),
0786     denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_v*'])
0787 )
0788 # conditions 2017
0789 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_bjet, btagAlgos = ["pfCombinedSecondaryVertexV2BJetTags"])
0790 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_bjet, workingpoint = 0.5426)
0791 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT300PT30_QuadPFJet_75_60_45_40_TriplePFBTagCSV_3p0_v*'])
0792 run2_HLTconditions_2017.toModify(fullyhadronic_TripleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT300PT30_QuadPFJet_75_60_45_40_v*'])
0793 # conditions 2018
0794 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_bjet, btagAlgos = ["pfDeepCSVJetTags:probb", "pfDeepCSVJetTags:probbb"])
0795 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_bjet, workingpoint = 0.1522)
0796 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_bjet.numGenericTriggerEventPSet, hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_TriplePFBTagDeepCSV_4p5_v*'])
0797 run2_HLTconditions_2018.toModify(fullyhadronic_TripleBTag_bjet.denGenericTriggerEventPSet, hltPaths = ['HLT_PFHT330PT30_QuadPFJet_75_60_45_40_v*'])
0798 
0799 ###
0800 ### Top HLT-DQM Sequence
0801 ###
0802 
0803 from DQMOffline.Trigger.HLTEGTnPMonitor_cfi import egmGsfElectronIDsForDQM
0804 
0805 topMonitorHLT = cms.Sequence(
0806 
0807       topEleJet_ele
0808     + topEleJet_jet
0809     + topEleJet_all
0810     + topEleHT_ele
0811     + topEleHT_ht
0812     + topEleHT_all
0813 
0814     + topSingleMuonHLTMonitor_Mu24
0815     + topSingleMuonHLTMonitor_Mu27
0816     + topSingleMuonHLTMonitor_Mu50
0817 
0818     + topDiElectronHLTMonitor
0819     + topDiElectronHLTMonitor_Dz
0820 
0821     + topDiMuonHLTMonitor_noDz
0822     + topDiMuonHLTMonitor_Dz
0823     + topDiMuonHLTMonitor_Dz_Mu17_Mu8
0824     + topDiMuonHLTMonitor_Mass8
0825     + topDiMuonHLTMonitor_Mass3p8
0826     + topDiMuonHLTMonitor_Mass8Mon
0827     + topDiMuonHLTMonitor_Mass3p8Mon
0828 
0829     + topElecMuonHLTMonitor
0830     + topElecMuonHLTMonitor_Dz_Mu12Ele23
0831     + topElecMuonHLTMonitor_Dz_Mu8Ele23
0832     + topElecMuonHLTMonitor_Dz_Mu23Ele12
0833     + topElecMuonHLTMonitor_Mu12Ele23
0834     + topElecMuonHLTMonitor_Mu8Ele23
0835     + topElecMuonHLTMonitor_Mu23Ele12
0836     + topElecMuonHLTMonitor_Mu12Ele23_ref
0837     + topElecMuonHLTMonitor_Mu8Ele23_ref
0838     + topElecMuonHLTMonitor_Mu23Ele12_ref
0839 
0840     + fullyhadronic_ref350
0841     + fullyhadronic_ref370
0842     + fullyhadronic_ref430
0843     + fullyhadronic_DoubleBTag_all
0844     + fullyhadronic_DoubleBTag_jet
0845     + fullyhadronic_DoubleBTag_bjet
0846     + fullyhadronic_DoubleBTag_ref
0847     + fullyhadronic_SingleBTag_all
0848     + fullyhadronic_SingleBTag_jet
0849     + fullyhadronic_SingleBTag_bjet
0850     + fullyhadronic_SingleBTag_ref
0851     + fullyhadronic_TripleBTag_all
0852     + fullyhadronic_TripleBTag_jet
0853     + fullyhadronic_TripleBTag_bjet
0854 
0855     , cms.Task(egmGsfElectronIDsForDQM) # Use of electron VID requires this module being executed first
0856 )
0857 
0858 topHLTDQMSourceExtra = cms.Sequence(
0859 )
0860 
0861 topMonitorHLT_2016 = topMonitorHLT.copy()
0862 topMonitorHLT_2016.remove( topEleJet_jet )
0863 topMonitorHLT_2016.remove( topEleJet_ele )
0864 topMonitorHLT_2016.remove( topEleJet_all )
0865 topMonitorHLT_2016.remove( topEleHT_ht )
0866 topMonitorHLT_2016.remove( topEleHT_ele )
0867 topMonitorHLT_2016.remove( topEleHT_all )
0868 topMonitorHLT_2016.remove( topDiMuonHLTMonitor_Mass3p8 )
0869 topMonitorHLT_2016.remove( topDiMuonHLTMonitor_Mass8Mon )
0870 topMonitorHLT_2016.remove( topDiMuonHLTMonitor_Mass3p8Mon )
0871 topMonitorHLT_2016.remove( fullyhadronic_ref370 )
0872 topMonitorHLT_2016.remove( fullyhadronic_ref430 )
0873 topMonitorHLT_2016.remove( fullyhadronic_TripleBTag_all )
0874 topMonitorHLT_2016.remove( fullyhadronic_TripleBTag_jet )
0875 topMonitorHLT_2016.remove( fullyhadronic_TripleBTag_bjet )
0876 
0877 run2_HLTconditions_2016.toReplaceWith(topMonitorHLT, topMonitorHLT_2016)