Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-09-02 22:46:31

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