Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-06-04 01:25:52

0001 import FWCore.ParameterSet.Config as cms
0002 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0003 
0004 # directories
0005 ugmtEmuDqmDir = "L1TEMU/L1TdeStage2uGT"
0006 
0007 
0008 BX            = 'CentralBX'
0009 errHistNumStr = 'dataEmulSummary_' + BX
0010 errHistDenStr = 'normalizationHisto'
0011 ratioHistStr  = 'dataEmulMismatchRatio_' + BX
0012 
0013 l1tStage2uGTEmulatorCompRatioClientBX0 = DQMEDHarvester("L1TStage2RatioClient",
0014     monitorDir = cms.untracked.string(ugmtEmuDqmDir),
0015     inputNum = cms.untracked.string(ugmtEmuDqmDir+'/'+errHistNumStr),
0016     inputDen = cms.untracked.string(ugmtEmuDqmDir+'/'+errHistDenStr),
0017     ratioName = cms.untracked.string(ratioHistStr),
0018     ratioTitle = cms.untracked.string('Summary of mismatch rates between uGT emulator and data'),
0019     yAxisTitle = cms.untracked.string('# mismatch / # total'),
0020     binomialErr = cms.untracked.bool(True)
0021 )
0022 
0023 BX            = 'BX1'
0024 errHistNumStr = 'dataEmulSummary_' + BX
0025 errHistDenStr = 'normalizationHisto'
0026 ratioHistStr  = 'dataEmulMismatchRatio_' + BX
0027 l1tStage2uGTEmulatorCompRatioClientBXP1 = l1tStage2uGTEmulatorCompRatioClientBX0.clone(
0028     inputNum  = ugmtEmuDqmDir+'/'+errHistNumStr,
0029     inputDen  = ugmtEmuDqmDir+'/'+errHistDenStr,
0030     ratioName = ratioHistStr
0031 )
0032 
0033 BX            = 'BX2'
0034 errHistNumStr = 'dataEmulSummary_' + BX
0035 errHistDenStr = 'normalizationHisto'
0036 ratioHistStr  = 'dataEmulMismatchRatio_' + BX
0037 l1tStage2uGTEmulatorCompRatioClientBXP2 = l1tStage2uGTEmulatorCompRatioClientBX0.clone(
0038     inputNum  = ugmtEmuDqmDir+'/'+errHistNumStr,
0039     inputDen  = ugmtEmuDqmDir+'/'+errHistDenStr,
0040     ratioName = ratioHistStr
0041 )
0042 
0043 BX            = 'BX-1'
0044 errHistNumStr = 'dataEmulSummary_' + BX
0045 errHistDenStr = 'normalizationHisto'
0046 ratioHistStr  = 'dataEmulMismatchRatio_' + BX
0047 l1tStage2uGTEmulatorCompRatioClientBXM1 = l1tStage2uGTEmulatorCompRatioClientBX0.clone(
0048     inputNum  = ugmtEmuDqmDir+'/'+errHistNumStr,
0049     inputDen  = ugmtEmuDqmDir+'/'+errHistDenStr,
0050     ratioName = ratioHistStr
0051 )
0052 
0053 BX            = 'BX-2'
0054 errHistNumStr = 'dataEmulSummary_' + BX
0055 errHistDenStr = 'normalizationHisto'
0056 ratioHistStr  = 'dataEmulMismatchRatio_' + BX
0057 l1tStage2uGTEmulatorCompRatioClientBXM2 = l1tStage2uGTEmulatorCompRatioClientBX0.clone(
0058     inputNum  = ugmtEmuDqmDir+'/'+errHistNumStr,
0059     inputDen  = ugmtEmuDqmDir+'/'+errHistDenStr,
0060     ratioName = ratioHistStr
0061 )
0062 
0063 # uGT
0064 
0065 # sequences
0066 l1tStage2uGTEmulatorClient = cms.Sequence(
0067     l1tStage2uGTEmulatorCompRatioClientBX0 +
0068     l1tStage2uGTEmulatorCompRatioClientBXP1 +
0069     l1tStage2uGTEmulatorCompRatioClientBXP2 +
0070     l1tStage2uGTEmulatorCompRatioClientBXM1 +
0071     l1tStage2uGTEmulatorCompRatioClientBXM2
0072 )
0073