CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/RecoLocalCalo/EcalRecAlgos/python/EcalSeverityLevelESProducer_cfi.py

Go to the documentation of this file.
00001 #
00002 # Configure the EcalSeverityLevel service 
00003 #
00004 # Author: Stefano Argiro
00005 #
00006 
00007 
00008 import FWCore.ParameterSet.Config as cms
00009 
00010 essourceEcalSev =  cms.ESSource("EmptyESSource",
00011                     recordName = cms.string("EcalSeverityLevelAlgoRcd"),
00012                     firstValid = cms.vuint32(1),
00013                     iovIsRunNotTime = cms.bool(True)
00014                     )
00015 
00016 
00017 ecalSeverityLevel = cms.ESProducer("EcalSeverityLevelESProducer",
00018 
00019  # map EcalRecHit::Flag into EcalSeverityLevel
00020  flagMask = cms.PSet (
00021     kGood       = cms.vstring('kGood'),
00022     kProblematic= cms.vstring('kPoorReco','kPoorCalib','kNoisy','kSaturated'),
00023     kRecovered  = cms.vstring('kLeadingEdgeRecovered','kTowerRecovered'),
00024     kTime       = cms.vstring('kOutOfTime'),
00025     kWeird      = cms.vstring('kWeird','kDiWeird'),
00026     kBad        = cms.vstring('kFaultyHardware','kDead','kKilled')
00027      ),                                                                   
00028  
00029  # map ChannelStatus flags into EcalSeverityLevel
00030  dbstatusMask=cms.PSet(
00031     kGood       = cms.vuint32(0),
00032     kProblematic= cms.vuint32(1,2,3,4,5,6,7,8,9,10),
00033     kRecovered  = cms.vuint32(),
00034     kTime       = cms.vuint32(),
00035     kWeird      = cms.vuint32(),
00036     kBad        = cms.vuint32(11,12,13,14,15,16)
00037      ),
00038 
00039  #return kTime only if the rechit is above this threshold            
00040  timeThresh=cms.double(2.0),
00041 
00042   
00043                                    
00044  )