Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:24:20

0001 #
0002 # Configure the EcalSeverityLevel service 
0003 #
0004 # Author: Stefano Argiro
0005 #
0006 
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 essourceEcalSev =  cms.ESSource("EmptyESSource",
0011                     recordName = cms.string("EcalSeverityLevelAlgoRcd"),
0012                     firstValid = cms.vuint32(1),
0013                     iovIsRunNotTime = cms.bool(True)
0014                     )
0015 
0016 
0017 ecalSeverityLevel = cms.ESProducer("EcalSeverityLevelESProducer",
0018 
0019  # map EcalRecHit::Flag into EcalSeverityLevel
0020  flagMask = cms.PSet (
0021     kGood       = cms.vstring('kGood'),
0022     kProblematic= cms.vstring('kPoorReco','kPoorCalib','kNoisy','kSaturated'),
0023     kRecovered  = cms.vstring('kLeadingEdgeRecovered','kTowerRecovered'),
0024     kTime       = cms.vstring('kOutOfTime'),
0025     kWeird      = cms.vstring('kWeird','kDiWeird'),
0026     kBad        = cms.vstring('kFaultyHardware','kDead','kKilled')
0027      ),                                                                   
0028  
0029  # map ChannelStatus flags into EcalSeverityLevel
0030  dbstatusMask=cms.PSet(
0031     kGood       = cms.vstring('kOk'),
0032     kProblematic= cms.vstring('kDAC',
0033                               'kNoLaser',
0034                               'kNoisy',
0035                               'kNNoisy',
0036                               'kNNNoisy',
0037                               'kNNNNoisy',
0038                               'kNNNNNoisy',
0039                               'kFixedG6',
0040                               'kFixedG1',
0041                               'kFixedG0',),
0042     kRecovered  = cms.vstring(),
0043     kTime       = cms.vstring(),
0044     kWeird      = cms.vstring(),
0045     kBad        = cms.vstring('kNonRespondingIsolated',
0046                               'kDeadVFE',
0047                               'kDeadFE',
0048                               'kNoDataNoTP')
0049      ),
0050 
0051  #return kTime only if the rechit is above this threshold            
0052  timeThresh=cms.double(2.0),
0053 
0054   
0055                                    
0056  )