CMS 3D CMS Logo

CaloTPGTranscoder_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 from CalibCalorimetry.CaloTPG.tpScales_cff import tpScales
4 
5 CaloTPGTranscoder = cms.ESProducer("CaloTPGTranscoderULUTs",
6  hcalLUT1 = cms.FileInPath('CalibCalorimetry/CaloTPG/data/outputLUTtranscoder_physics.dat'),
7  hcalLUT2 = cms.FileInPath('CalibCalorimetry/CaloTPG/data/TPGcalcDecompress2.txt'),
8  read_Ascii_Compression_LUTs = cms.bool(False),
9  read_Ascii_RCT_LUTs = cms.bool(False),
10  ietaLowerBound = cms.vint32( 1,18,27,29),
11  ietaUpperBound = cms.vint32(17,26,28,32),
12  ZS = cms.vint32(4,2,1,0),
13  LUTfactor = cms.vint32(1,2,5,0),
14  linearLUTs = cms.bool(False),
15  nominal_gain = cms.double(0.177),
16  RCTLSB = cms.double(0.25),
17  tpScales = tpScales,
18 )
19 
20 from Configuration.Eras.Modifier_run2_HCAL_2018_cff import run2_HCAL_2018
21 run2_HCAL_2018.toModify(CaloTPGTranscoder, linearLUTs=True)