Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:10:48

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 from DQM.L1TMonitorClient.L1TOccupancyTestParameters_cff import *
0005 
0006 l1tOccupancyClient = DQMEDHarvester("L1TOccupancyClient",
0007   verbose = cms.bool(False),
0008   testParams = cms.VPSet(
0009     #---------------------------------------------
0010     # Example configuration
0011     #---------------------------------------------
0012     #cms.PSet(
0013       #testName       = cms.string('TauJetsOccEtaPhi'), #test name
0014       #algoName       = cms.string('XYSymmetry'),       #test to be performed
0015       #algoType       = cms.int32(1),                   #0=qTest, 1=intrinsic
0016       #algoParams     = cms.PSet(
0017         #currDir      = cms.string('L1T/L1TGCT'),       #dir of histogram to be inspected
0018         #histo        = cms.string('TauJetsOccEtaPhi'), #histogram to be inspected
0019         #rebinFactorX = cms.int32(1),                   # Rebin factor (X Axis) to apply over tested histogram
0020         #rebinFactorY = cms.int32(1),                   # Rebin factor (Y Axis) to apply over tested histogram
0021         #axis         = cms.int32(1),                   # Symetry axis is 1=vertical, 2=horizontal
0022         #takeCenter   = cms.bool(True),                 # Take central bin (odd bins) or first bin to the right of center (even bins) as axisSymmetryValue
0023         #axisSymmetryValue      = cms.double(10.5),     #symmetry point on axis to be checked, neglected if takeCenter=true
0024         #averageMode = cms.int32(2),                    #reference formula for average (0=testCase, 1=arithmetic average, 2=median)
0025         #factorlow       = cms.double(0.1),             #factor f : mu1=f*mu0
0026         #factorup        = cms.double(2.0),             #factor f : mu1=f*mu0
0027         #params_mu0_low  = mu0_x0p1,                    #parameters for determination of mu0_min
0028         #params_mu0_up   = mu0_x2,                      #parameters for determination of mu0_min
0029         #params_chi2_low = chi2_x0p1,                   #parameters for determination of chi2-threshold
0030         #params_chi2_up  = chi2_x2,                     #parameters for determination of chi2-threshold
0031         #markers         = cms.VPSet(
0032           #0=Histogram Units, 1=Bin Units (starting with 1,1)
0033           #cms.PSet(kind=cms.int32(2),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
0034           #cms.PSet(kind=cms.int32(2),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
0035         #)
0036       #)
0037     #),
0038     cms.PSet(
0039       testName   = cms.string('dttf_01_tracks_occupancy_test_summary'), #test name
0040       algoParams = cms.PSet(
0041         histPath    = cms.string('L1T/L1TDTTF/09-TEST/dttf_01_tracks_occupancy_test_summary'),
0042         maskedAreas = cms.VPSet(
0043           cms.PSet(kind=cms.int32(1),xmin=cms.double(3) ,xmax=cms.double(3) ,ymin=cms.double(1),ymax=cms.double(12)),
0044         )
0045       )
0046     ),
0047     cms.PSet(
0048       testName   = cms.string('TauJetsOccEtaPhi'), #test name
0049       algoParams = cms.PSet(
0050         histPath        = cms.string('L1T/L1TGCT/TauJetsOccEtaPhi'),
0051         maskedAreas = cms.VPSet(
0052           cms.PSet(kind=cms.int32(1),xmin=cms.double(1) ,xmax=cms.double(4) ,ymin=cms.double(1),ymax=cms.double(18)),
0053           cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
0054         )
0055       )
0056     ),
0057     cms.PSet(
0058       testName   = cms.string('AllJetsOccEtaPhi'), #test name
0059       algoParams = cms.PSet(
0060         histPath        = cms.string('L1T/L1TGCT/AllJetsOccEtaPhi'),
0061         maskedAreas = cms.VPSet()
0062       )
0063     ),
0064     cms.PSet(
0065       testName   = cms.string('RctRegionsOccEtaPhi'), #test name
0066       algoParams = cms.PSet(
0067         histPath        = cms.string('L1T/L1TRCT/RctRegionsOccEtaPhi'),
0068         maskedAreas = cms.VPSet()
0069       )
0070     ),
0071     cms.PSet(
0072       testName   = cms.string('RctEmIsoEmOccEtaPhi'), #test name
0073       algoParams = cms.PSet(
0074         histPath        = cms.string('L1T/L1TRCT/RctEmIsoEmOccEtaPhi'),
0075         maskedAreas = cms.VPSet(
0076           cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
0077           cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
0078         )
0079       )
0080     ),
0081     cms.PSet(
0082       testName   = cms.string('RctEmNonIsoEmOccEtaPhi'), #test name
0083       algoParams = cms.PSet(
0084         histPath        = cms.string('L1T/L1TRCT/RctEmNonIsoEmOccEtaPhi'),
0085         maskedAreas = cms.VPSet(
0086           cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
0087           cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
0088         )
0089       )
0090     ),
0091     cms.PSet(
0092       testName   = cms.string('NonIsoEmOccEtaPhi'), #test name
0093       algoParams = cms.PSet(
0094         histPath        = cms.string('L1T/L1TGCT/NonIsoEmOccEtaPhi'),
0095         maskedAreas = cms.VPSet(
0096           cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
0097           cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
0098         )
0099       )
0100     ),
0101     cms.PSet(
0102       testName   = cms.string('IsoEmOccEtaPhi'), #test name
0103       algoParams = cms.PSet(
0104         histPath        = cms.string('L1T/L1TGCT/IsoEmOccEtaPhi'),
0105         maskedAreas = cms.VPSet(
0106           cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(18)),
0107           cms.PSet(kind=cms.int32(1),xmin=cms.double(19),xmax=cms.double(22),ymin=cms.double(1),ymax=cms.double(18))
0108         )
0109       )
0110     )
0111 
0112     #----------------------------------------------------
0113     # Other tests that may be activated in the future
0114     #----------------------------------------------------
0115     #cms.PSet(
0116       #testName      = cms.string('GMT_etaphi'), #test name
0117       #algoParams    = cms.PSet(
0118         #currDir     = cms.string('L1T/L1TGMT/GMT_etaphi'), #dir of histogram to be inspected
0119         #maskedAreas = cms.VPSet()
0120       #)
0121     #),
0122     #cms.PSet(
0123       #testName       = cms.string('RPCTF_muons_eta_phi_bx0'), #test name
0124       #algoParams     = cms.PSet(
0125         #currDir      = cms.string('L1T/L1TRPCTF/RPCTF_muons_eta_phi_bx0'),
0126         #rebinFactorX = cms.int32(1), # Rebin factor (X Axis) to apply over tested histogram
0127         #rebinFactorY = cms.int32(12),# Rebin factor (Y Axis) to apply over tested histogram
0128         #maskedAreas  = cms.VPSet(
0129           #1...units of histogram, 2...x-/y-internal coordinates (starting with 1,1) (rebinned!)
0130           #cms.PSet(kind=cms.int32(1),xmin=cms.double(1), xmax=cms.double(4), ymin=cms.double(1),ymax=cms.double(12)),
0131           #cms.PSet(kind=cms.int32(1),xmin=cms.double(30),xmax=cms.double(33),ymin=cms.double(1),ymax=cms.double(12))
0132         #)
0133       #)
0134     #),
0135     #cms.PSet(
0136       #testName      = cms.string('CSCTF_Chamber_Occupancies'), #test name
0137       #algoParams    = cms.PSet(
0138         #currDir     = cms.string('L1T/L1TCSCTF/CSCTF_Chamber_Occupancies'),
0139         #axis        = cms.int32(2), #which axis should be checked? 1=eta, 2=phi
0140         #maskedAreas = cms.VPSet(
0141           #1...units of histogram, 2...x-/y-internal coordinates (starting with 1,1)
0142           #cms.PSet(kind=cms.int32(1),xmin=cms.double(4), xmax=cms.double(9), ymin=cms.double(1), ymax=cms.double(1)),
0143           #cms.PSet(kind=cms.int32(1),xmin=cms.double(4), xmax=cms.double(9), ymin=cms.double(10),ymax=cms.double(10)),
0144           #cms.PSet(kind=cms.int32(1),xmin=cms.double(22),xmax=cms.double(27),ymin=cms.double(1), ymax=cms.double(1)),
0145           #cms.PSet(kind=cms.int32(1),xmin=cms.double(22),xmax=cms.double(27),ymin=cms.double(10),ymax=cms.double(10)),
0146           #cms.PSet(kind=cms.int32(1),xmin=cms.double(40),xmax=cms.double(45),ymin=cms.double(1), ymax=cms.double(1)),
0147           #cms.PSet(kind=cms.int32(1),xmin=cms.double(40),xmax=cms.double(45),ymin=cms.double(10),ymax=cms.double(10)),
0148           #cms.PSet(kind=cms.int32(1),xmin=cms.double(49),xmax=cms.double(54),ymin=cms.double(1), ymax=cms.double(1)),
0149           #cms.PSet(kind=cms.int32(1),xmin=cms.double(49),xmax=cms.double(54),ymin=cms.double(10),ymax=cms.double(10))
0150         #)
0151       #)
0152     #),
0153     #cms.PSet(
0154       #testName      = cms.string('dttf_03_tracks_occupancy_summary'), #test name
0155       #algoParams    = cms.PSet(
0156         #currDir     = cms.string('L1T/L1TDTTF/01-INCLUSIVE/dttf_03_tracks_occupancy_summary'),
0157         #maskedAreas = cms.VPSet()
0158       #)
0159     #),
0160     #cms.PSet(
0161       #testName      = cms.string('dttf_12_phi_vs_eta'), #test name
0162       #algoParams    = cms.PSet(
0163         #currDir     = cms.string('L1T/L1TDTTF/01-INCLUSIVE/dttf_12_phi_vs_eta'),
0164         #maskedAreas = cms.VPSet()
0165       #)
0166     #)
0167   )
0168 )