CMS 3D CMS Logo

hcalRecAlgoESProd_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
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 from RecoLocalCalo.HcalRecAlgos.hcalRecAlgos_cfi import hcalRecAlgos
29 
30 from Configuration.Eras.Modifier_run2_HCAL_2017_cff import run2_HCAL_2017
31 run2_HCAL_2017.toModify(hcalRecAlgos,
32  phase = cms.uint32(1),
33  SeverityLevels = {
34  2 : dict( RecHitFlags = cms.vstring('HBHEIsolatedNoise') ),
35  3 : dict( RecHitFlags = cms.vstring('HBHEHpdHitMultiplicity',
36  'HBHEFlatNoise',
37  'HBHESpikeNoise',
38  'HBHETS4TS5Noise',
39  'HBHENegativeNoise',
40  'HBHEOOTPU'
41  )
42  ),
43  4: dict( RecHitFlags = cms.vstring('HFLongShort',
44  'HFS8S1Ratio',
45  'HFPET',
46  'HFSignalAsymmetry'
47  )
48  ),
49  },
50  RecoveredRecHitBits = cms.vstring('')
51 )