CMS 3D CMS Logo

/data/doxygen/doxygen-1.7.3/gen/CMSSW_4_2_8/src/RecoLocalCalo/HcalRecAlgos/python/hcalRecAlgoESProd_cfi.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 # HcalSeverityLevelComputer:
00004 # short instruction: severity levels are defined to grade a problem indicated through flags
00005 #
00006 #  The algorithm works from the highest level down. For each level, it determines whether any of the
00007 #  bits that is defined for its level is set. If yes, then - regardless of the setting of the other bits -
00008 #  it gives back the corresponding severity level, if no, it continues with the next lower level.
00009 #  If a defined bit vector is empty, the corresponding flag is not checked.
00010 #  This means that the highest level that has two empty vectors will be always the default level.
00011 # 
00012 # RecoveredRecHitBits: this is a mask for the determination of whether a particular RecHit is recovered
00013 #                      empty mask means that no flag is assigned to the recovered status
00014 #
00015 # DropChannelStatus: this is a mask for the determination of whether a digi should be/is dropped
00016 #                    during reconstruction because of the channelstatus of its cell
00017 #                    empty mask means that no digi should be/is dropped
00018 #
00019 # Modified 21.09.2010: a level consisting only of invalid definitions will be ignored
00020 # Any errors in definition of severity levels come through LogWarning
00021 
00022 essourceSev =  cms.ESSource("EmptyESSource",
00023                    recordName = cms.string("HcalSeverityLevelComputerRcd"),
00024                    firstValid = cms.vuint32(1),
00025                    iovIsRunNotTime = cms.bool(True)
00026 )
00027 
00028 
00029 hcalRecAlgos = cms.ESProducer("HcalRecAlgoESProducer",
00030     SeverityLevels = cms.VPSet(
00031         # the following is the default level, please do not modify its definition:
00032         cms.PSet( Level = cms.int32(0),
00033                   RecHitFlags = cms.vstring(''),
00034                   ChannelStatus = cms.vstring('')
00035                 ),
00036         cms.PSet( Level = cms.int32(1),
00037                   RecHitFlags = cms.vstring(''),
00038                   ChannelStatus = cms.vstring('HcalCellCaloTowerProb')
00039                 ),
00040         cms.PSet( Level = cms.int32(5),
00041                   RecHitFlags = cms.vstring('HSCP_R1R2','HSCP_FracLeader','HSCP_OuterEnergy',
00042                                             'HSCP_ExpFit','ADCSaturationBit', 'HBHEIsolatedNoise'),
00043                   ChannelStatus = cms.vstring('')
00044                 ),
00045         cms.PSet( Level = cms.int32(8),
00046                   RecHitFlags = cms.vstring('HBHEHpdHitMultiplicity', 'HBHEPulseShape', 'HOBit',
00047                                             'HFDigiTime',
00048                                             'HFInTimeWindow',
00049                                             'HFS8S1Ratio',
00050                                             'ZDCBit', 'CalibrationBit',
00051                                             'TimingErrorBit'),
00052                   ChannelStatus = cms.vstring('')
00053                 ),
00054         # March 2010:  HFLongShort now tested, and should be excluded from CaloTowers by default
00055         cms.PSet( Level = cms.int32(11),
00056                   RecHitFlags = cms.vstring('HFLongShort',
00057                                             #'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
00058                                             ),
00059                   ChannelStatus = cms.vstring('')
00060                 ),
00061         cms.PSet( Level = cms.int32(12),
00062                   RecHitFlags = cms.vstring(''),
00063                   ChannelStatus = cms.vstring('HcalCellCaloTowerMask')
00064                 ),
00065         cms.PSet( Level = cms.int32(15),
00066                   RecHitFlags = cms.vstring(''),
00067                   ChannelStatus = cms.vstring('HcalCellHot')
00068                 ),
00069         cms.PSet( Level = cms.int32(20),
00070                   RecHitFlags = cms.vstring(''),
00071                   ChannelStatus = cms.vstring('HcalCellOff', 'HcalCellDead')
00072                 )
00073         ),
00074     RecoveredRecHitBits = cms.vstring('TimingAddedBit','TimingSubtractedBit'),
00075     DropChannelStatusBits = cms.vstring('HcalCellMask','HcalCellOff', 'HcalCellDead')
00076 )