Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278
import FWCore.ParameterSet.Config as cms

from DQMOffline.Trigger.RazorMonitor_cff import *
from DQMOffline.Trigger.VBFSUSYMonitor_cff import *
from DQMOffline.Trigger.LepHTMonitor_cff import *
from DQMOffline.Trigger.susyHLTEleCaloJets_cff import *
from DQMOffline.Trigger.SoftMuHardJetMETSUSYMonitor_cff import *
from DQMOffline.Trigger.TopMonitor_cfi import hltTOPmonitoring

# muon
double_soft_muon_muonpt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/Muon/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    enableMETPlot = True,
    metSelection     ='pt>150',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    MHTcut           = 150,
    invMassUppercut  = 50,
    invMassLowercut  = 10
)
# Binning
double_soft_muon_muonpt.histoPSet.muPtBinning      =cms.vdouble(0,2,5,7,10,12,15,17,20,25,30,50)
double_soft_muon_muonpt.histoPSet.muPtBinning2D    =cms.vdouble(0,2,5,7,10,12,15,17,20,25,30,50)
# Triggers
double_soft_muon_muonpt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DZ_PFMET50_PFMHT60_v*')
double_soft_muon_muonpt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_PFMET140_PFMHT140_v*')

# met
double_soft_muon_metpt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/MET/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    muoSelection     = 'pt>18 & abs(eta)<2.4',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    MHTcut           = 150,
    invMassUppercut  = 50,
    invMassLowercut  = 10,
    enableMETPlot    = True
)
# Binning
double_soft_muon_metpt.histoPSet.metPSet   =cms.PSet(nbins=cms.uint32(50),xmin=cms.double(50),xmax=cms.double(300) )
# Triggers
double_soft_muon_metpt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DZ_PFMET50_PFMHT60_v*')
double_soft_muon_metpt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*')

# inv Mass
double_soft_muon_mll = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/Mll/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    muoSelection     = 'pt>10 & abs(eta)<2.4',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    MHTcut            = 150,
    enableMETPlot = True,
    metSelection      = 'pt>150'
)
# Binning
double_soft_muon_mll.histoPSet.invMassVariableBinning      =cms.vdouble(8,12,15,20,25,30,35,40,45,47,50,60)

# Triggers
double_soft_muon_mll.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DZ_PFMET50_PFMHT60_v*')
double_soft_muon_mll.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Dimuon12_Upsilon_eta1p5_v*')

# mht
double_soft_muon_mhtpt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/MHT/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    muoSelection     = 'pt>18 & abs(eta)<2.0',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    enableMETPlot = True,
    metSelection     = 'pt>150',
    invMassUppercut       = 50,
    invMassLowercut       = 10
)
# Binning
double_soft_muon_mhtpt.histoPSet.MHTVariableBinning      =cms.vdouble(50,60,70,80,90,100,110,120,130,150,200,300)

# Triggers
double_soft_muon_mhtpt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DZ_PFMET50_PFMHT60_v*')
double_soft_muon_mhtpt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*')

# backup1, met
double_soft_muon_backup_70_metpt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/backup70/MET/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    muoSelection     = 'pt>18 & abs(eta)<2.4',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    MHTcut           = 150,
    invMassUppercut       = 50,
    invMassLowercut       = 10,
    enableMETPlot = True
)
# Binning
double_soft_muon_backup_70_metpt.histoPSet.metPSet   =cms.PSet(nbins=cms.uint32(50),xmin=cms.double(50),xmax=cms.double(300) )
# Triggers
double_soft_muon_backup_70_metpt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DZ_PFMET70_PFMHT70_v*')
double_soft_muon_backup_70_metpt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*')

# backup1, mht
double_soft_muon_backup_70_mhtpt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/backup70/MHT/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    muoSelection     = 'pt>18 & abs(eta)<2.0',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    enableMETPlot = True,
    metSelection     = 'pt>150',
    invMassUppercut       = 50,
    invMassLowercut       = 10
)
# Binning
double_soft_muon_backup_70_mhtpt.histoPSet.MHTVariableBinning      =cms.vdouble(50,60,70,80,90,100,110,120,130,150,200,300)

# Triggers
double_soft_muon_backup_70_mhtpt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DZ_PFMET70_PFMHT70_v*')
double_soft_muon_backup_70_mhtpt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*')

# backup2, met
double_soft_muon_backup_90_metpt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/backup90/MET/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    muoSelection     = 'pt>18 & abs(eta)<2.4',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    MHTcut           = 150,
    invMassUppercut       = 50,
    invMassLowercut       = 10,
    enableMETPlot = True
)
# Binning
double_soft_muon_backup_90_metpt.histoPSet.metPSet   =cms.PSet(nbins=cms.uint32(50),xmin=cms.double(50),xmax=cms.double(300) )
# Triggers
double_soft_muon_backup_90_metpt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DZ_PFMET90_PFMHT90_v*')
double_soft_muon_backup_90_metpt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*')

# backup2, mht
double_soft_muon_backup_90_mhtpt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/backup90/MHT/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    muoSelection     = 'pt>18 & abs(eta)<2.0',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    enableMETPlot = True,
    metSelection     = 'pt>150',
    invMassUppercut       = 50,
    invMassLowercut       = 10
)
# Binning
double_soft_muon_backup_90_mhtpt.histoPSet.MHTVariableBinning      =cms.vdouble(50,60,70,80,90,100,110,120,130,150,200,300)
# Triggers
double_soft_muon_backup_90_mhtpt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DZ_PFMET90_PFMHT90_v*')
double_soft_muon_backup_90_mhtpt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_DZ_v*')

# triple muon
triple_muon_mupt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/TripleMu/Muon',
    # Selections
    nmuons           = 3,
    muoSelection     = 'isGlobalMuon()',
    invMassUppercut       = 50,
    invMassLowercut       = 10,
    invMassCutInAllMuPairs= True
)
# Triggers
triple_muon_mupt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_TripleMu_5_3_3_Mass3p8to60_DZ_v*')
triple_muon_mupt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Trimuon5_3p5_2_Upsilon_Muon_v*')

# triplemu dca
triple_muon_dca_mupt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/TripleMu/DCA/Muon',
    # Selections
    nmuons           = 3,
    muoSelection     = 'isGlobalMuon()',
    invMassUppercut       = 50,
    invMassLowercut       = 10,
    invMassCutInAllMuPairs =True
)
# Triggers
triple_muon_dca_mupt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_TripleMu_5_3_3_Mass3p8to60_DCA_v*')
triple_muon_dca_mupt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Trimuon5_3p5_2_Upsilon_Muon_v*')

# MuonEG
susyMuEGMonitoring = hltTOPmonitoring.clone(
    FolderName = 'HLT/SUSY/MuonEG/',
    nmuons = 1,
    nphotons = 1,
    nelectrons = 0,
    njets = 0,
    enablePhotonPlot =  True,
    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',
    phoSelection = '(pt > 30 && abs(eta)<1.4442 && hadTowOverEm<0.0597 && full5x5_sigmaIetaIeta()<0.01031 && chargedHadronIso<1.295 && neutralHadronIso < 5.931+0.0163*pt+0.000014*pt*pt && photonIso < 6.641+0.0034*pt) || (pt > 30 && abs(eta)>1.4442 && hadTowOverEm<0.0481 && full5x5_sigmaIetaIeta()<0.03013 && chargedHadronIso<1.011 && neutralHadronIso < 1.715+0.0163*pt+0.000014*pt*pt && photonIso < 3.863+0.0034*pt)'
)
susyMuEGMonitoring.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Mu17_Photon30_IsoCaloId*')
susyMuEGMonitoring.denGenericTriggerEventPSet.hltPaths = cms.vstring('')

# muon dca
double_soft_muon_dca_muonpt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/DCA/Muon/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    enableMETPlot = True,
    metSelection     = 'pt>150',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    MHTcut           = 150,
    invMassUppercut  = 50,
    invMassLowercut  = 10
)
# Binning
double_soft_muon_dca_muonpt.histoPSet.muPtBinning      =cms.vdouble(0,2,5,7,10,12,15,17,20,25,30,50)
double_soft_muon_dca_muonpt.histoPSet.muPtBinning2D    =cms.vdouble(0,2,5,7,10,12,15,17,20,25,30,50)
# Triggers
double_soft_muon_dca_muonpt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DCA_PFMET50_PFMHT60_v*')
double_soft_muon_dca_muonpt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_PFMET140_PFMHT140_v*')

# met
double_soft_muon_dca_metpt = hltTOPmonitoring.clone(
    FolderName   = 'HLT/SUSY/SOS/DCA/MET/',
    # Selections
    nmuons           = 2,
    HTdefinition     = 'pt>30 & abs(eta)<2.4',
    HTcut            = 60,
    muoSelection     = 'pt>18 & abs(eta)<2.4',
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    MHTcut           = 150,
    invMassUppercut       = 50,
    invMassLowercut       = 10,
    enableMETPlot = True
)
# Binning
double_soft_muon_dca_metpt.histoPSet.metPSet   =cms.PSet(nbins=cms.uint32(50),xmin=cms.double(50),xmax=cms.double(300) )
# Triggers
double_soft_muon_dca_metpt.numGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_DoubleMu3_DCA_PFMET50_PFMHT60_v*')
double_soft_muon_dca_metpt.denGenericTriggerEventPSet.hltPaths = cms.vstring('HLT_Mu17_TrkIsoVVL_Mu8_TrkIsoVVL_v*')

susyMonitorHLT = cms.Sequence(
    susyHLTRazorMonitoring
  + susyHLTVBFMonitoring
  + LepHTMonitor
  + susyHLTEleCaloJets
  + double_soft_muon_muonpt
  + double_soft_muon_metpt
  + double_soft_muon_mhtpt
  + double_soft_muon_mll
  + double_soft_muon_backup_70_metpt
  + double_soft_muon_backup_70_mhtpt
  + double_soft_muon_backup_90_metpt
  + double_soft_muon_backup_90_mhtpt
  + triple_muon_mupt
  + triple_muon_dca_mupt
  + susyMuEGMonitoring 
  + double_soft_muon_dca_muonpt
  + double_soft_muon_dca_metpt
  + susyHLTSoftMuHardJetMETMonitoring
)

susHLTDQMSourceExtra = cms.Sequence(
)