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 # for some reason hex notation does not seem to work with vuint32 00021 00022 flagMask=cms.vuint32( 1, #0x00000001, # kGood ->kGood 00023 114, #0x00000072, # kPoorReco,kPoorCalib, 00024 # kNoise,kSaturated ->kProblematic 00025 896, #0x00000380, # LERecovered,TowRecovered 00026 # ->kRecovered 00027 4, #0x00000004, # kOutoftime ->kTime 00028 49152,#0x0000C000, # kWeird,kDiweird ->kWeird 00029 3080 #0x00000C08 # kFaultyhw,kDead,kKilled 00030 # ->kBad 00031 ), 00032 # map ChannelStatus flags into EcalSeverityLevel 00033 dbstatusMask=cms.vuint32( 1, #0x00000001, # good-> good; 00034 2046,#0x000007FE, # status 1..10 -> problematic 00035 0, #0x00000000, # nothing->recovered 00036 0, #0x00000000, # nothing->time 00037 0, #0x00000000, #nothing->weird 00038 64512#0x0000FC00 #status 11..16 ->bad 00039 ), 00040 #return kTime only if the rechit is above this threshold 00041 timeThresh=cms.double(2.0) 00042 )