Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:28:43

0001 # to use the ZS thresholds from config file, 
0002 # set useConfigZSvalues = cms.int32(1)
0003 # to generate Unsuppressed digis, 
0004 # also need to set useConfigZSvalues = cms.int32(1) and -inf. (-999) levels
0005 # to use the channel-by-channel ZS values from DB, 
0006 # set useConfigZSvalues = cms.int32(0) - default
0007 
0008 import FWCore.ParameterSet.Config as cms
0009 
0010 simHcalDigis = cms.EDProducer("HcalRealisticZS",
0011     digiLabel = cms.string("simHcalUnsuppressedDigis"),
0012     useInstanceLabels = cms.bool(True),
0013     markAndPass = cms.bool(False),
0014     HBlevel = cms.int32(8),
0015     HElevel = cms.int32(9),
0016     HOlevel = cms.int32(24),
0017     HFlevel = cms.int32(-9999),
0018 #--- region: (3,6) for 2TS means (3+4),(4+5),(5+6) 
0019 #--- region: (3,6) for 1TS means (3),(4),(5) i.e. < 6 in C++ "for" cycle.  
0020     HBregion = cms.vint32(3,6),      
0021     HEregion = cms.vint32(3,6),
0022     HOregion = cms.vint32(1,8),
0023     HFregion = cms.vint32(2,3),      
0024     useConfigZSvalues = cms.int32(0),
0025     use1ts = cms.bool(False)              # True for >= Run3
0026 )
0027 
0028 from Configuration.Eras.Modifier_run2_HF_2017_cff import run2_HF_2017
0029 run2_HF_2017.toModify( simHcalDigis,
0030                              HFregion = cms.vint32(1,2)
0031 )
0032 
0033 from Configuration.Eras.Modifier_run2_HB_2018_cff import run2_HB_2018
0034 run2_HB_2018.toModify( simHcalDigis,
0035                              HBregion = cms.vint32(2,5)
0036 )
0037 
0038 from Configuration.Eras.Modifier_run2_HE_2018_cff import run2_HE_2018
0039 run2_HE_2018.toModify( simHcalDigis,
0040                              HEregion = cms.vint32(2,5)
0041 )
0042 
0043 from Configuration.Eras.Modifier_run3_common_cff import run3_common
0044 run3_common.toModify( simHcalDigis, 
0045                              use1ts = cms.bool(True),
0046                              HBregion = cms.vint32(4,7),
0047                              HEregion = cms.vint32(4,7)
0048 ) 
0049 
0050 
0051 # Switch off HCAL ZS in digi for premixing stage1
0052 from Configuration.ProcessModifiers.premix_stage1_cff import premix_stage1
0053 premix_stage1.toModify(simHcalDigis,
0054     markAndPass = True,
0055     HBlevel = -999,
0056     HElevel = -999,
0057     HOlevel = -999,
0058     HFlevel = -999,
0059     useConfigZSvalues = 1
0060 )