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 = 1,
33  SeverityLevels = {
34  2 : dict( RecHitFlags = ['HBHEIsolatedNoise',
35  'HFAnomalousHit']
36  ),
37  3 : dict( RecHitFlags = ['HBHEHpdHitMultiplicity',
38  'HBHEFlatNoise',
39  'HBHESpikeNoise',
40  'HBHETS4TS5Noise',
41  'HBHENegativeNoise',
42  'HBHEOOTPU']
43  ),
44  4 : dict( RecHitFlags = ['HFLongShort',
45  'HFS8S1Ratio',
46  'HFPET',
47  'HFSignalAsymmetry']
48  ),
49  },
50  RecoveredRecHitBits = ['']
51 )