Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:07:58

0001 # L1 Emulator Trigger Event Info client cfi
0002 #
0003 #   The cfi can be used, with appropriate settings, for both L1T and L1TEMU.
0004 #   Default version in cfi: L1T event client
0005 #
0006 #   authors previous versions - see CVS
0007 #
0008 #   V.M. Ghete 2010-10-22 revised version of L1T DQM and L1TEMU DQM
0009 #   A.G. Stahl 2017-06-02 first implementation for L1TEMU Stage2 DQM
0010 
0011 
0012 
0013 import FWCore.ParameterSet.Config as cms
0014 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0015 
0016 l1tStage2EmulatorEventInfoClient = DQMEDHarvester("L1TEventInfoClient",
0017     monitorDir = cms.untracked.string("L1TEMU"),
0018 
0019     # decide when to run and update the results of the quality tests
0020     # retrieval of quality test results must be consistent with the event / LS / Run execution
0021     #
0022     runInEventLoop=cms.untracked.bool(False),
0023     runInEndLumi=cms.untracked.bool(True),
0024     runInEndRun=cms.untracked.bool(True),
0025     runInEndJob=cms.untracked.bool(False),
0026 
0027     #
0028     # for each L1 system, give:
0029     #     - SystemLabel:  system label
0030     #     - HwValLabel:   system label as used in hardware validation package
0031     #                     (the package producing the ErrorFlag histogram)
0032     #     - SystemDisable:   system disabled: if 1, all quality tests for the system
0033     #                     are disabled in the summary plot
0034     #     - for each quality test:
0035     #         - QualityTestName: name of quality test
0036     #         - QualityTestHist: histogram (full path)
0037     #         - QualityTestSummaryEnabled: 0 if disabled, 1 if enabled in summary plot
0038     #
0039     # the position in the parameter set gives, in reverse order, the position in the reportSummaryMap
0040     # in the emulator column (left column)
0041     L1Systems = cms.VPSet(
0042                     cms.PSet(
0043                         SystemLabel = cms.string("ECAL_TPG"),
0044                         HwValLabel = cms.string("ETP"),
0045                         SystemDisable  = cms.uint32(0),
0046                         QualityTests = cms.VPSet(
0047                             cms.PSet(
0048                                 QualityTestName = cms.string(""),
0049                                 QualityTestHist = cms.string(""),
0050                                 QualityTestSummaryEnabled = cms.uint32(0)
0051                                 ),
0052                             )
0053                         ),
0054                     cms.PSet(
0055                         SystemLabel = cms.string("HCAL_TPG"),
0056                         HwValLabel = cms.string("HTP"),
0057                         SystemDisable  = cms.uint32(0),
0058                         QualityTests = cms.VPSet(
0059                             cms.PSet(
0060                                 QualityTestName = cms.string(""),
0061                                 QualityTestHist = cms.string(""),
0062                                 QualityTestSummaryEnabled = cms.uint32(0)
0063                                 ),
0064                             )
0065                         ),
0066                     cms.PSet(
0067                         SystemLabel = cms.string("Calo Layer1"),
0068                         HwValLabel = cms.string("Stage2CaloLayer1"),
0069                         SystemDisable  = cms.uint32(0),
0070                         QualityTests = cms.VPSet(
0071                             cms.PSet(
0072                                 QualityTestName = cms.string("Layer1DEMismatchThreshold"),
0073                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2CaloLayer1/dataEmulSummary"),
0074                                 QualityTestSummaryEnabled = cms.uint32(1)
0075                                 ),
0076                             )
0077                         ),
0078                     cms.PSet(
0079                         SystemLabel = cms.string("Calo Layer2"),
0080                         HwValLabel = cms.string("Stage2CaloLayer2"),
0081                         SystemDisable  = cms.uint32(0),
0082                         QualityTests = cms.VPSet(
0083                             cms.PSet(
0084                                 QualityTestName = cms.string(""),
0085                                 QualityTestHist = cms.string(""),
0086                                 QualityTestSummaryEnabled = cms.uint32(0)
0087                                 ),
0088                             )
0089                         ),
0090                     cms.PSet(
0091                         SystemLabel = cms.string("BMTF"),
0092                         HwValLabel = cms.string("Stage2BMTF"),
0093                         SystemDisable  = cms.uint32(0),
0094                         QualityTests = cms.VPSet(
0095                             cms.PSet(
0096                                 QualityTestName = cms.string("BMTFDE_MismatchRatioMax0p01"),
0097                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2BMTF/mismatchRatio"),
0098                                 QualityTestSummaryEnabled = cms.uint32(1)
0099                                 ),
0100                             )
0101                         ),
0102                     cms.PSet(
0103                         SystemLabel = cms.string("OMTF"),
0104                         HwValLabel = cms.string("Stage2OMTF"),
0105                         SystemDisable  = cms.uint32(0),
0106                         QualityTests = cms.VPSet(
0107                             cms.PSet(
0108                                 QualityTestName = cms.string("OMTFDE_MismatchRatioMax0p01"),
0109                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2OMTF/mismatchRatio"),
0110                                 QualityTestSummaryEnabled = cms.uint32(1)
0111                                 ),
0112                             )
0113                         ),
0114                     cms.PSet(
0115                         SystemLabel = cms.string("EMTF"),
0116                         HwValLabel = cms.string("Stage2EMTF"),
0117                         SystemDisable  = cms.uint32(0),
0118                         QualityTests = cms.VPSet(
0119                             cms.PSet(
0120                                 QualityTestName = cms.string("EMTFDE_MismatchRatioMax0p01"),
0121                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2EMTF/mismatchRatio"),
0122                                 QualityTestSummaryEnabled = cms.uint32(1)
0123                                 ),
0124                             )
0125                         ),
0126                     cms.PSet(
0127                         SystemLabel = cms.string("uGMT"),
0128                         HwValLabel = cms.string("Stage2uGMT"),
0129                         SystemDisable  = cms.uint32(0),
0130                         QualityTests = cms.VPSet(
0131                             cms.PSet(
0132                                 QualityTestName = cms.string("uGMTDE_MismatchRatioMax0"),
0133                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2uGMT/data_vs_emulator_comparison/mismatchRatio"),
0134                                 QualityTestSummaryEnabled = cms.uint32(1)
0135                                 ),
0136                             cms.PSet(
0137                                 QualityTestName = cms.string("InterMuonsDE_MismatchRatioMax0"),
0138                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2uGMT/intermediate_muons/BMTF/data_vs_emulator_comparison/mismatchRatio"),
0139                                 QualityTestSummaryEnabled = cms.uint32(1)
0140                                 ),
0141                             cms.PSet(
0142                                 QualityTestName = cms.string("InterMuonsDE_MismatchRatioMax0"),
0143                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2uGMT/intermediate_muons/OMTF_pos/data_vs_emulator_comparison/mismatchRatio"),
0144                                 QualityTestSummaryEnabled = cms.uint32(1)
0145                                 ),
0146                             cms.PSet(
0147                                 QualityTestName = cms.string("InterMuonsDE_MismatchRatioMax0"),
0148                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2uGMT/intermediate_muons/OMTF_neg/data_vs_emulator_comparison/mismatchRatio"),
0149                                 QualityTestSummaryEnabled = cms.uint32(1)
0150                                 ),
0151                             cms.PSet(
0152                                 QualityTestName = cms.string("InterMuonsDE_MismatchRatioMax0"),
0153                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2uGMT/intermediate_muons/EMTF_pos/data_vs_emulator_comparison/mismatchRatio"),
0154                                 QualityTestSummaryEnabled = cms.uint32(1)
0155                                 ),
0156                             cms.PSet(
0157                                 QualityTestName = cms.string("InterMuonsDE_MismatchRatioMax0"),
0158                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2uGMT/intermediate_muons/EMTF_neg/data_vs_emulator_comparison/mismatchRatio"),
0159                                 QualityTestSummaryEnabled = cms.uint32(1)
0160                                 ),
0161                             )
0162                         ),
0163                     cms.PSet(
0164                         SystemLabel = cms.string("uGT"),
0165                         HwValLabel = cms.string("Stage2uGT"),
0166                         SystemDisable  = cms.uint32(0),
0167                         QualityTests = cms.VPSet(
0168                             cms.PSet(
0169                                 QualityTestName = cms.string("uGTDE_CentralBxMismatchRatio"),
0170                                 QualityTestHist = cms.string("L1TEMU/L1TdeStage2uGT/dataEmulMismatchRatio_CentralBX"),
0171                                 QualityTestSummaryEnabled = cms.uint32(1)
0172                                 ),
0173                             )
0174                         ),
0175                     ),
0176 
0177     #
0178     # for each L1 trigger object, give:
0179     #     - ObjectLabel:  object label as used in enum L1GtObject
0180     #     - ObjectDisable: emulator mask: if 1, the system is masked in the summary plot
0181     #
0182     # the position in the parameter set gives, in reverse order, the position in the reportSummaryMap
0183     # in the trigger object column (right column)
0184     # N.B. (nick): max(# entries in this VPset, # entries in L1Systems) determines the number of columns drawn
0185     # hence the ugliness of the overlay if not the same as the overlay code
0186     # which is here-ish: https://github.com/dmwm/deployment/blob/master/dqmgui/style/L1TStage2RenderPlugin.cc#L143-L199
0187     L1Objects = cms.VPSet(
0188                     cms.PSet(
0189                         ObjectLabel = cms.string("TechTrig"),
0190                         ObjectDisable  = cms.uint32(0),
0191                         QualityTests = cms.VPSet(
0192                             cms.PSet(
0193                                 QualityTestName = cms.string(""),
0194                                 QualityTestHist = cms.string(""),
0195                                 QualityTestSummaryEnabled = cms.uint32(0)
0196                                 )
0197                             )
0198                         ),
0199                     cms.PSet(
0200                         ObjectLabel = cms.string("GtExternal"),
0201                         ObjectDisable  = cms.uint32(0),
0202                         QualityTests = cms.VPSet(
0203                             cms.PSet(
0204                                 QualityTestName = cms.string(""),
0205                                 QualityTestHist = cms.string(""),
0206                                 QualityTestSummaryEnabled = cms.uint32(0)
0207                                 )
0208                             )
0209                         ),
0210                     cms.PSet(
0211                         ObjectLabel = cms.string("HfRingEtSums"),
0212                         ObjectDisable  = cms.uint32(0),
0213                         QualityTests = cms.VPSet(
0214                             cms.PSet(
0215                                 QualityTestName = cms.string(""),
0216                                 QualityTestHist = cms.string(""),
0217                                 QualityTestSummaryEnabled = cms.uint32(0)
0218                                 )
0219                             )
0220                         ),
0221                     cms.PSet(
0222                         ObjectLabel = cms.string("HfBitCounts"),
0223                         ObjectDisable  = cms.uint32(0),
0224                         QualityTests = cms.VPSet(
0225                             cms.PSet(
0226                                 QualityTestName = cms.string(""),
0227                                 QualityTestHist = cms.string(""),
0228                                 QualityTestSummaryEnabled = cms.uint32(0)
0229                                 )
0230                             )
0231                         ),
0232                     cms.PSet(
0233                         ObjectLabel = cms.string("HTM"),
0234                         ObjectDisable  = cms.uint32(0),
0235                         QualityTests = cms.VPSet(
0236                             cms.PSet(
0237                                 QualityTestName = cms.string(""),
0238                                 QualityTestHist = cms.string(""),
0239                                 QualityTestSummaryEnabled = cms.uint32(0)
0240                                 )
0241                             )
0242                         ),
0243                     cms.PSet(
0244                         ObjectLabel = cms.string("HTT"),
0245                         ObjectDisable  = cms.uint32(0),
0246                         QualityTests = cms.VPSet(
0247                             cms.PSet(
0248                                 QualityTestName = cms.string(""),
0249                                 QualityTestHist = cms.string(""),
0250                                 QualityTestSummaryEnabled = cms.uint32(0)
0251                                 )
0252                             )
0253                         ),
0254                     cms.PSet(
0255                         ObjectLabel = cms.string("ETM"),
0256                         ObjectDisable  = cms.uint32(0),
0257                         QualityTests = cms.VPSet(
0258                             cms.PSet(
0259                                 QualityTestName = cms.string(""),
0260                                 QualityTestHist = cms.string(""),
0261                                 QualityTestSummaryEnabled = cms.uint32(0)
0262                                 )
0263                             )
0264                         ),
0265                     cms.PSet(
0266                         ObjectLabel = cms.string("ETT"),
0267                         ObjectDisable  = cms.uint32(0),
0268                         QualityTests = cms.VPSet(
0269                             cms.PSet(
0270                                 QualityTestName = cms.string(""),
0271                                 QualityTestHist = cms.string(""),
0272                                 QualityTestSummaryEnabled = cms.uint32(0)
0273                                 )
0274                             )
0275                         ),
0276                     cms.PSet(
0277                         ObjectLabel = cms.string("Tau"),
0278                         ObjectDisable  = cms.uint32(0),
0279                         QualityTests = cms.VPSet(
0280                             cms.PSet(
0281                                 QualityTestName = cms.string(""),
0282                                 QualityTestHist = cms.string(""),
0283                                 QualityTestSummaryEnabled = cms.uint32(0)
0284                                 )
0285                             )
0286                         ),
0287                     cms.PSet(
0288                         ObjectLabel = cms.string("ForJet"),
0289                         ObjectDisable  = cms.uint32(0),
0290                         QualityTests = cms.VPSet(
0291                             cms.PSet(
0292                                 QualityTestName = cms.string(""),
0293                                 QualityTestHist = cms.string(""),
0294                                 QualityTestSummaryEnabled = cms.uint32(0)
0295                                 )
0296                             )
0297                         ),
0298                     cms.PSet(
0299                         ObjectLabel = cms.string("CenJet"),
0300                         ObjectDisable  = cms.uint32(0),
0301                         QualityTests = cms.VPSet(
0302                             cms.PSet(
0303                                 QualityTestName = cms.string(""),
0304                                 QualityTestHist = cms.string(""),
0305                                 QualityTestSummaryEnabled = cms.uint32(0)
0306                                 )
0307                             )
0308                         ),
0309                     cms.PSet(
0310                         ObjectLabel = cms.string("IsoEG"),
0311                         ObjectDisable  = cms.uint32(0),
0312                         QualityTests = cms.VPSet(
0313                             cms.PSet(
0314                                 QualityTestName = cms.string(""),
0315                                 QualityTestHist = cms.string(""),
0316                                 QualityTestSummaryEnabled = cms.uint32(0)
0317                                 )
0318                             )
0319                         ),
0320                     cms.PSet(
0321                         ObjectLabel = cms.string("NoIsoEG"),
0322                         ObjectDisable  = cms.uint32(0),
0323                         QualityTests = cms.VPSet(
0324                             cms.PSet(
0325                                 QualityTestName = cms.string(""),
0326                                 QualityTestHist = cms.string(""),
0327                                 QualityTestSummaryEnabled = cms.uint32(0)
0328                                 )
0329                             )
0330                         ),
0331                     cms.PSet(
0332                         ObjectLabel = cms.string("Mu"),
0333                         ObjectDisable  = cms.uint32(0),
0334                         QualityTests = cms.VPSet(
0335                             cms.PSet(
0336                                 QualityTestName = cms.string(""),
0337                                 QualityTestHist = cms.string(""),
0338                                 QualityTestSummaryEnabled = cms.uint32(0)
0339                                 )
0340                             )
0341                         )
0342                     ),
0343     #
0344     # fast over-mask a system: if the name of the system is in the list, the system will be masked
0345     # (the default mask value is given in L1Systems VPSet)
0346     #
0347     DisableL1Systems = cms.vstring(),
0348     #
0349     # fast over-mask an object: if the name of the object is in the list, the object will be masked
0350     # (the default mask value is given in L1Objects VPSet)
0351     #
0352     DisableL1Objects =  cms.vstring()
0353 
0354 )