CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalSeverityLevelESProducer_cfi.py
Go to the documentation of this file.
1 #
2 # Configure the EcalSeverityLevel service
3 #
4 # Author: Stefano Argiro
5 #
6 
7 
8 import FWCore.ParameterSet.Config as cms
9 
10 essourceEcalSev = cms.ESSource("EmptyESSource",
11  recordName = cms.string("EcalSeverityLevelAlgoRcd"),
12  firstValid = cms.vuint32(1),
13  iovIsRunNotTime = cms.bool(True)
14  )
15 
16 
17 ecalSeverityLevel = cms.ESProducer("EcalSeverityLevelESProducer",
18 
19  # map EcalRecHit::Flag into EcalSeverityLevel
20  flagMask = cms.PSet (
21  kGood = cms.vstring('kGood'),
22  kProblematic= cms.vstring('kPoorReco','kPoorCalib','kNoisy','kSaturated'),
23  kRecovered = cms.vstring('kLeadingEdgeRecovered','kTowerRecovered'),
24  kTime = cms.vstring('kOutOfTime'),
25  kWeird = cms.vstring('kWeird','kDiWeird'),
26  kBad = cms.vstring('kFaultyHardware','kDead','kKilled')
27  ),
28 
29  # map ChannelStatus flags into EcalSeverityLevel
30  dbstatusMask=cms.PSet(
31  kGood = cms.vuint32(0),
32  kProblematic= cms.vuint32(1,2,3,4,5,6,7,8,9,10),
33  kRecovered = cms.vuint32(),
34  kTime = cms.vuint32(),
35  kWeird = cms.vuint32(),
36  kBad = cms.vuint32(11,12,13,14,15,16)
37  ),
38 
39  #return kTime only if the rechit is above this threshold
40  timeThresh=cms.double(2.0),
41 
42 
43 
44  )