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
# Offline DQM for HLT_Mu3er1p5_PFJet100er2p5_PFMETX_PFMHTX_IDTight (X = 70, 80, 90)
# Mateusz Zarucki 2018

import FWCore.ParameterSet.Config as cms

from DQMOffline.Trigger.SusyMonitor_cfi import hltSUSYmonitoring

SoftMuHardJetMETSUSYmonitoring = hltSUSYmonitoring.clone(
    FolderName = 'HLT/SUSY/SoftMuHardJetMET/',
    met   = "pfMet",
    jets  = "ak4PFJetsCHS",
    muons = "muons",
    HTdefinition     = 'pt>30 & abs(eta)<2.5',
    leptJetDeltaRmin = 0.4,
    MHTdefinition    = 'pt>30 & abs(eta)<2.4',
    numGenericTriggerEventPSet = dict(hltInputTag = ["TriggerResults","","HLT"],
                                      hltPaths = ["HLT_Mu3er1p5_PFJet100er2p5_PFMET70_PFMHT70_IDTight_v*",
                                                  "HLT_Mu3er1p5_PFJet100er2p5_PFMET80_PFMHT80_IDTight_v*",
                                                  "HLT_Mu3er1p5_PFJet100er2p5_PFMET90_PFMHT90_IDTight_v*" ])
)


###############
### Muon pt ###
###############
SoftMuHardJetMETSUSYmonitoring_muPt            = SoftMuHardJetMETSUSYmonitoring.clone(
    FolderName = 'HLT/SUSY/SoftMuHardJetMET/Muon',
    # Muon selection
    nmuons       = 1,
    muoSelection = 'abs(eta)<1.5',
    # Jet selection
    njets = 1,
    jetSelection = "pt>130 & abs(eta)<2.5",
    # MET selection
    enableMETPlot = True,
    metSelection = 'pt>150',
    MHTcut       = 150,
    ## Selection ##
    denGenericTriggerEventPSet = dict(hltPaths = ['HLT_PFMET120_PFMHT120_IDTight_v*', 'HLT_PFMET130_PFMHT130_IDTight_v*', 'HLT_PFMET140_PFMHT140_IDTight_v*']),
    ## Binning ##
    histoPSet = dict(muPtBinning = [0,2,5,7,10,12,15,17,20,25,30,50])
)


##############
### Jet pt ###
##############
SoftMuHardJetMETSUSYmonitoring_jetPt = SoftMuHardJetMETSUSYmonitoring.clone(
    FolderName = 'HLT/SUSY/SoftMuHardJetMET/Jet',
    # Muon selection
    nmuons       = 1,
    muoSelection = 'pt>30 & abs(eta)<1.5',
    # Jet selection
    njets        = 1,
    jetSelection = "abs(eta)<2.5",
    # MET selection
    enableMETPlot = True,
    metSelection  = 'pt>150',
    MHTcut        = 150,
    ## Selection ##
    denGenericTriggerEventPSet = dict(hltPaths = ["HLT_IsoMu27_v*"]),
    # Binning
    histoPSet = dict(jetPtBinning = [0,5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,90,100,120,200,400]) 
)


##############
### MET pt ###
##############
SoftMuHardJetMETSUSYmonitoring_metPt = SoftMuHardJetMETSUSYmonitoring.clone(
    FolderName = 'HLT/SUSY/SoftMuHardJetMET/MET',
    # Muon selection
    nmuons       = 1,
    muoSelection = 'pt>30 & abs(eta)<1.5',
    # Jet selection
    njets        = 1,
    jetSelection = "pt>130 & abs(eta)<2.5",
    # MET selection
    enableMETPlot = True,
    ## Selection ##
    denGenericTriggerEventPSet = dict(hltPaths = ["HLT_IsoMu27_v*"]),
    # Binning
    histoPSet = dict(metPSet = dict(nbins= 50,xmin= 50,xmax= 300))
)


susyHLTSoftMuHardJetMETMonitoring = cms.Sequence(
    SoftMuHardJetMETSUSYmonitoring_muPt
  + SoftMuHardJetMETSUSYmonitoring_jetPt
  + SoftMuHardJetMETSUSYmonitoring_metPt
)