CMS 3D CMS Logo

hcaltpdigi_cff.py
Go to the documentation of this file.
1 # The following comments couldn't be translated into the new config version:
2 
3 # if read_Ascii_LUTs is true then read Ascii LUTs via "inputLUTs" below
4 
5 import FWCore.ParameterSet.Config as cms
6 
7 from SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cfi import simHcalTriggerPrimitiveDigis
8 from CalibCalorimetry.CaloTPG.CaloTPGTranscoder_cfi import CaloTPGTranscoder
9 from CalibCalorimetry.CaloTPG.tpScales_cff import tpScales
11 
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),
25  tpScales = tpScales,
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')
31 )
32 
33 HcalTrigTowerGeometryESProducer = cms.ESProducer("HcalTrigTowerGeometryESProducer")
34 
35 from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
36 run2_HCAL_2018.toModify(HcalTPGCoderULUT, linearLUTs=True)
37 
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])
40 
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])
43 
44 from Configuration.Eras.Modifier_pp_on_PbPb_run3_2023_cff import pp_on_PbPb_run3_2023
45 from Configuration.Eras.Era_Run3_2023_UPC_cff import Run3_2023_UPC
46 (pp_on_PbPb_run3_2023 | Run3_2023_UPC).toModify(HcalTPGCoderULUT, FG_HF_thresholds = [16, 19])
47 
48 #placedholder values for 2024, copied from 2023
49 from Configuration.Eras.Modifier_pp_on_PbPb_run3_2024_cff import pp_on_PbPb_run3_2024
50 from Configuration.Eras.Era_Run3_2024_UPC_cff import Run3_2024_UPC
51 (pp_on_PbPb_run3_2024 | Run3_2024_UPC).toModify(HcalTPGCoderULUT, FG_HF_thresholds = [16, 19])