CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
hcalRecAlgoESProd_cfi.py
Go to the documentation of this file.
2 
3 # HcalSeverityLevelComputer:
4 # short instruction: severity levels are defined to grade a problem indicated through flags
5 #
6 # The algorithm works from the highest level down. For each level, it determines whether any of the
7 # bits that is defined for its level is set. If yes, then - regardless of the setting of the other bits -
8 # it gives back the corresponding severity level, if no, it continues with the next lower level.
9 # If a defined bit vector is empty, the corresponding flag is not checked.
10 # This means that the highest level that has two empty vectors will be always the default level.
11 #
12 # RecoveredRecHitBits: this is a mask for the determination of whether a particular RecHit is recovered
13 # empty mask means that no flag is assigned to the recovered status
14 #
15 # DropChannelStatus: this is a mask for the determination of whether a digi should be/is dropped
16 # during reconstruction because of the channelstatus of its cell
17 # empty mask means that no digi should be/is dropped
18 #
19 # Modified 21.09.2010: a level consisting only of invalid definitions will be ignored
20 # Any errors in definition of severity levels come through LogWarning
21 
22 essourceSev = cms.ESSource("EmptyESSource",
23  recordName = cms.string("HcalSeverityLevelComputerRcd"),
24  firstValid = cms.vuint32(1),
25  iovIsRunNotTime = cms.bool(True)
26 )
27 
28 
29 hcalRecAlgos = cms.ESProducer("HcalRecAlgoESProducer",
30  SeverityLevels = cms.VPSet(
31  # the following is the default level, please do not modify its definition:
32  cms.PSet( Level = cms.int32(0),
33  RecHitFlags = cms.vstring(''),
34  ChannelStatus = cms.vstring('')
35  ),
36  cms.PSet( Level = cms.int32(1),
37  RecHitFlags = cms.vstring(''),
38  ChannelStatus = cms.vstring('HcalCellCaloTowerProb')
39  ),
40  cms.PSet( Level = cms.int32(5),
41  RecHitFlags = cms.vstring('HSCP_R1R2','HSCP_FracLeader','HSCP_OuterEnergy',
42  'HSCP_ExpFit','ADCSaturationBit', 'HBHEIsolatedNoise'),
43  ChannelStatus = cms.vstring('')
44  ),
45  cms.PSet( Level = cms.int32(8),
46  RecHitFlags = cms.vstring('HBHEHpdHitMultiplicity',
47  'HBHEPulseShape',
48  'HOBit',
49  'HFDigiTime',
50  'HFInTimeWindow',
51  'ZDCBit', 'CalibrationBit',
52  'TimingErrorBit',
53  'HBHEFlatNoise',
54  'HBHESpikeNoise',
55  'HBHETriangleNoise',
56  'HBHETS4TS5Noise'
57  ),
58  ChannelStatus = cms.vstring('')
59  ),
60  # March 2010: HFLongShort now tested, and should be excluded from CaloTowers by default
61  cms.PSet( Level = cms.int32(11),
62  RecHitFlags = cms.vstring('HFLongShort',
63  # HFPET and HFS8S1Ratio feed HFLongShort, and should be at the same severity
64  'HFPET',
65  'HFS8S1Ratio'
66  #'HFDigiTime' # This should be set to 11 in data ONLY. We can't set it to 11 by default, because default values should reflect MC settings, and the flag can't be used in MC
67  ),
68  ChannelStatus = cms.vstring('')
69  ),
70  cms.PSet( Level = cms.int32(12),
71  RecHitFlags = cms.vstring(''),
72  ChannelStatus = cms.vstring('HcalCellCaloTowerMask')
73  ),
74  cms.PSet( Level = cms.int32(15),
75  RecHitFlags = cms.vstring(''),
76  ChannelStatus = cms.vstring('HcalCellHot')
77  ),
78  cms.PSet( Level = cms.int32(20),
79  RecHitFlags = cms.vstring(''),
80  ChannelStatus = cms.vstring('HcalCellOff', 'HcalCellDead')
81  )
82  ),
83  RecoveredRecHitBits = cms.vstring('TimingAddedBit','TimingSubtractedBit'),
84  DropChannelStatusBits = cms.vstring('HcalCellMask','HcalCellOff', 'HcalCellDead')
85 )