5 import FWCore.ParameterSet.Config
as cms
7 from SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cfi
import simHcalTriggerPrimitiveDigis
9 from CalibCalorimetry.CaloTPG.tpScales_cff
import tpScales
12 HcalTPGCoderULUT = cms.ESProducer(
"HcalTPGCoderULUT",
13 read_Ascii_LUTs = cms.bool(
False),
14 read_XML_LUTs = cms.bool(
False),
15 read_FG_LUTs = cms.bool(
False),
16 LUTGenerationMode = cms.bool(
True),
17 linearLUTs = cms.bool(
False),
18 contain1TSHB = cms.bool(
False),
19 contain1TSHE = cms.bool(
False),
20 containPhaseNSHE = cms.double(6.0),
21 containPhaseNSHB = cms.double(6.0),
22 applyFixPCC = PCCUpdate.applyFixPCC,
23 overrideDBweightsAndFilterHB = cms.bool(
False),
24 overrideDBweightsAndFilterHE = cms.bool(
False),
26 MaskBit = cms.int32(0x8000),
27 FG_HF_thresholds = cms.vuint32(17, 255),
28 inputLUTs = cms.FileInPath(
'CalibCalorimetry/HcalTPGAlgos/data/inputLUTcoder_physics.dat'),
29 FGLUTs = cms.FileInPath(
'CalibCalorimetry/HcalTPGAlgos/data/HBHE_FG_LUT.dat'),
30 RCalibFile = cms.FileInPath(
'CalibCalorimetry/HcalTPGAlgos/data/RecHit-TPG-calib.dat')
33 HcalTrigTowerGeometryESProducer = cms.ESProducer(
"HcalTrigTowerGeometryESProducer")
35 from Configuration.Eras.Modifier_run2_HCAL_2018_cff
import run2_HCAL_2018
36 run2_HCAL_2018.toModify(HcalTPGCoderULUT, linearLUTs=
True)
38 from Configuration.Eras.Modifier_pp_on_AA_2018_cff
import pp_on_AA_2018
39 pp_on_AA_2018.toModify(HcalTPGCoderULUT, FG_HF_thresholds = [15, 19])
41 from Configuration.Eras.Modifier_pp_on_PbPb_run3_cff
import pp_on_PbPb_run3
42 pp_on_PbPb_run3.toModify(HcalTPGCoderULUT, FG_HF_thresholds = [14, 19])
44 from Configuration.Eras.Modifier_pp_on_PbPb_run3_2023_cff
import pp_on_PbPb_run3_2023
45 pp_on_PbPb_run3_2023.toModify(HcalTPGCoderULUT, FG_HF_thresholds = [16, 19])