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
import FWCore.ParameterSet.Config as cms
from DQMServices.Core.DQMEDHarvester import DQMEDHarvester

from DQM.L1TMonitorClient.L1TOccupancyTestParameters_cff import *

l1tOccupancyClient = DQMEDHarvester("L1TOccupancyClient",
  verbose = cms.bool(False),
  testParams = cms.VPSet(
    #---------------------------------------------
    # Example configuration
    #---------------------------------------------
    #cms.PSet(
      #testName       = cms.string('TauJetsOccEtaPhi'), #test name
      #algoName       = cms.string('XYSymmetry'),       #test to be performed
      #algoType       = cms.int32(1),                   #0=qTest, 1=intrinsic
      #algoParams     = cms.PSet(
        #currDir      = cms.string('L1T/L1TGCT'),       #dir of histogram to be inspected
        #histo        = cms.string('TauJetsOccEtaPhi'), #histogram to be inspected
        #rebinFactorX = cms.int32(1),                   # Rebin factor (X Axis) to apply over tested histogram
        #rebinFactorY = cms.int32(1),                   # Rebin factor (Y Axis) to apply over tested histogram
        #axis         = cms.int32(1),                   # Symetry axis is 1=vertical, 2=horizontal
        #takeCenter   = cms.bool(True),                 # Take central bin (odd bins) or first bin to the right of center (even bins) as axisSymmetryValue
        #axisSymmetryValue      = cms.double(10.5),     #symmetry point on axis to be checked, neglected if takeCenter=true
        #averageMode = cms.int32(2),                    #reference formula for average (0=testCase, 1=arithmetic average, 2=median)
        #factorlow       = cms.double(0.1),             #factor f : mu1=f*mu0
        #factorup        = cms.double(2.0),             #factor f : mu1=f*mu0
        #params_mu0_low  = mu0_x0p1,                    #parameters for determination of mu0_min
        #params_mu0_up   = mu0_x2,                      #parameters for determination of mu0_min
        #params_chi2_low = chi2_x0p1,                   #parameters for determination of chi2-threshold
        #params_chi2_up  = chi2_x2,                     #parameters for determination of chi2-threshold
        #markers         = cms.VPSet(
          #0=Histogram Units, 1=Bin Units (starting with 1,1)
          #cms.PSet(kind=cms.int32(2),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
          #cms.PSet(kind=cms.int32(2),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
        #)
      #)
    #),
    cms.PSet(
      testName   = cms.string('dttf_01_tracks_occupancy_test_summary'), #test name
      algoParams = cms.PSet(
        histPath    = cms.string('L1T/L1TDTTF/09-TEST/dttf_01_tracks_occupancy_test_summary'),
        maskedAreas = cms.VPSet(
          cms.PSet(kind=cms.int32(1),xmin=cms.double(3) ,xmax=cms.double(3) ,ymin=cms.double(1),ymax=cms.double(12)),
        )
      )
    ),
    cms.PSet(
      testName   = cms.string('TauJetsOccEtaPhi'), #test name
      algoParams = cms.PSet(
        histPath        = cms.string('L1T/L1TGCT/TauJetsOccEtaPhi'),
        maskedAreas = cms.VPSet(
          cms.PSet(kind=cms.int32(1),xmin=cms.double(1) ,xmax=cms.double(4) ,ymin=cms.double(1),ymax=cms.double(18)),
          cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
        )
      )
    ),
    cms.PSet(
      testName   = cms.string('AllJetsOccEtaPhi'), #test name
      algoParams = cms.PSet(
        histPath        = cms.string('L1T/L1TGCT/AllJetsOccEtaPhi'),
        maskedAreas = cms.VPSet()
      )
    ),
    cms.PSet(
      testName   = cms.string('RctRegionsOccEtaPhi'), #test name
      algoParams = cms.PSet(
        histPath        = cms.string('L1T/L1TRCT/RctRegionsOccEtaPhi'),
        maskedAreas = cms.VPSet()
      )
    ),
    cms.PSet(
      testName   = cms.string('RctEmIsoEmOccEtaPhi'), #test name
      algoParams = cms.PSet(
        histPath        = cms.string('L1T/L1TRCT/RctEmIsoEmOccEtaPhi'),
        maskedAreas = cms.VPSet(
          cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
          cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
        )
      )
    ),
    cms.PSet(
      testName   = cms.string('RctEmNonIsoEmOccEtaPhi'), #test name
      algoParams = cms.PSet(
        histPath        = cms.string('L1T/L1TRCT/RctEmNonIsoEmOccEtaPhi'),
        maskedAreas = cms.VPSet(
          cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
          cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
        )
      )
    ),
    cms.PSet(
      testName   = cms.string('NonIsoEmOccEtaPhi'), #test name
      algoParams = cms.PSet(
        histPath        = cms.string('L1T/L1TGCT/NonIsoEmOccEtaPhi'),
        maskedAreas = cms.VPSet(
          cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
          cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
        )
      )
    ),
    cms.PSet(
      testName   = cms.string('IsoEmOccEtaPhi'), #test name
      algoParams = cms.PSet(
        histPath        = cms.string('L1T/L1TGCT/IsoEmOccEtaPhi'),
        maskedAreas = cms.VPSet(
          cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
          cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
        )
      )
    )

    #----------------------------------------------------
    # Other tests that may be activated in the future
    #----------------------------------------------------
    #cms.PSet(
      #testName      = cms.string('GMT_etaphi'), #test name
      #algoParams    = cms.PSet(
        #currDir     = cms.string('L1T/L1TGMT/GMT_etaphi'), #dir of histogram to be inspected
        #maskedAreas = cms.VPSet()
      #)
    #),
    #cms.PSet(
      #testName       = cms.string('RPCTF_muons_eta_phi_bx0'), #test name
      #algoParams     = cms.PSet(
        #currDir      = cms.string('L1T/L1TRPCTF/RPCTF_muons_eta_phi_bx0'),
        #rebinFactorX = cms.int32(1), # Rebin factor (X Axis) to apply over tested histogram
        #rebinFactorY = cms.int32(12),# Rebin factor (Y Axis) to apply over tested histogram
        #maskedAreas  = cms.VPSet(
          #1...units of histogram, 2...x-/y-internal coordinates (starting with 1,1) (rebinned!)
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(12)),
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(30),xmax=cms.double(33),ymin=cms.double(1),ymax=cms.double(12))
        #)
      #)
    #),
    #cms.PSet(
      #testName      = cms.string('CSCTF_Chamber_Occupancies'), #test name
      #algoParams    = cms.PSet(
        #currDir     = cms.string('L1T/L1TCSCTF/CSCTF_Chamber_Occupancies'),
        #axis        = cms.int32(2), #which axis should be checked? 1=eta, 2=phi
        #maskedAreas = cms.VPSet(
          #1...units of histogram, 2...x-/y-internal coordinates (starting with 1,1)
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(4), xmax=cms.double(9), ymin=cms.double(1), ymax=cms.double(1)),
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(4), xmax=cms.double(9), ymin=cms.double(10),ymax=cms.double(10)),
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(22),xmax=cms.double(27),ymin=cms.double(1), ymax=cms.double(1)),
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(22),xmax=cms.double(27),ymin=cms.double(10),ymax=cms.double(10)),
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(40),xmax=cms.double(45),ymin=cms.double(1), ymax=cms.double(1)),
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(40),xmax=cms.double(45),ymin=cms.double(10),ymax=cms.double(10)),
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(49),xmax=cms.double(54),ymin=cms.double(1), ymax=cms.double(1)),
          #cms.PSet(kind=cms.int32(1),xmin=cms.double(49),xmax=cms.double(54),ymin=cms.double(10),ymax=cms.double(10))
        #)
      #)
    #),
    #cms.PSet(
      #testName      = cms.string('dttf_03_tracks_occupancy_summary'), #test name
      #algoParams    = cms.PSet(
        #currDir     = cms.string('L1T/L1TDTTF/01-INCLUSIVE/dttf_03_tracks_occupancy_summary'),
        #maskedAreas = cms.VPSet()
      #)
    #),
    #cms.PSet(
      #testName      = cms.string('dttf_12_phi_vs_eta'), #test name
      #algoParams    = cms.PSet(
        #currDir     = cms.string('L1T/L1TDTTF/01-INCLUSIVE/dttf_12_phi_vs_eta'),
        #maskedAreas = cms.VPSet()
      #)
    #)
  )
)