test
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.vstring('kOk'),
32  kProblematic= cms.vstring('kDAC',
33  'kNoLaser',
34  'kNoisy',
35  'kNNoisy',
36  'kNNNoisy',
37  'kNNNNoisy',
38  'kNNNNNoisy',
39  'kFixedG6',
40  'kFixedG1',
41  'kFixedG0',),
42  kRecovered = cms.vstring(),
43  kTime = cms.vstring(),
44  kWeird = cms.vstring(),
45  kBad = cms.vstring('kNonRespondingIsolated',
46  'kDeadVFE',
47  'kDeadFE',
48  'kNoDataNoTP')
49  ),
50 
51  #return kTime only if the rechit is above this threshold
52  timeThresh=cms.double(2.0),
53 
54 
55 
56  )