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
import FWCore.ParameterSet.Config as cms

from DQM.EcalMonitorTasks.PNDiodeTask_cfi import ecalPNDiodeTask

errFractionThreshold = 0.01

ecalPNIntegrityClient = cms.untracked.PSet(
    params = cms.untracked.PSet(
        errFractionThreshold = cms.untracked.double(errFractionThreshold)
    ),
    sources = cms.untracked.PSet(
        Occupancy = ecalPNDiodeTask.MEs.Occupancy,
        MEMChId = ecalPNDiodeTask.MEs.MEMChId,
        MEMGain = ecalPNDiodeTask.MEs.MEMGain,
        MEMBlockSize = ecalPNDiodeTask.MEs.MEMBlockSize,
        MEMTowerId = ecalPNDiodeTask.MEs.MEMTowerId
    ),
    MEs = cms.untracked.PSet(
        QualitySummary = cms.untracked.PSet(
            path = cms.untracked.string('%(subdet)s/%(prefix)sSummaryClient/%(prefix)sIT PN integrity quality summary'),
            kind = cms.untracked.string('TH2F'),
            otype = cms.untracked.string('MEM2P'),
            btype = cms.untracked.string('Crystal'),
            description = cms.untracked.string('Summary of the data integrity in PN channels. A channel is red if more than ' + str(100 * errFractionThreshold) + '% of its entries have integrity errors.')
        )
    )
)