File indexing completed on 2024-04-06 11:58:02
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("ProdTPGParam")
0004
0005
0006 process.load("Geometry.CaloEventSetup.CaloGeometry_cfi")
0007 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
0008 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0009
0010
0011 process.load("Geometry.EcalMapping.EcalMapping_cfi")
0012 process.eegeom = cms.ESSource("EmptyESSource",
0013 recordName = cms.string('EcalMappingRcd'),
0014 iovIsRunNotTime = cms.bool(True),
0015 firstValid = cms.vuint32(1)
0016 )
0017
0018
0019 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0020
0021
0022
0023 process.source = cms.Source("EmptySource",
0024 firstRun = cms.untracked.uint32(100000000)
0025 )
0026
0027
0028 process.maxEvents = cms.untracked.PSet(
0029 input = cms.untracked.int32(1)
0030 )
0031
0032 process.TPGParamProducer = cms.EDFilter("EcalTPGParamBuilder",
0033
0034
0035 writeToDB = cms.bool(False),
0036 allowDBEE = cms.bool(True),
0037
0038 DBsid = cms.string('cms_omds_lb'),
0039 DBuser = cms.string('cms_ecal_conf'),
0040 DBpass = cms.string('0r4cms_3c4lc0nf'),
0041 DBport = cms.uint32(10121),
0042
0043 TPGWritePed = cms.uint32(1),
0044 TPGWriteLin = cms.uint32(1),
0045 TPGWriteSli = cms.uint32(1),
0046 TPGWriteWei = cms.uint32(1),
0047 TPGWriteLut = cms.uint32(1),
0048 TPGWriteFgr = cms.uint32(1),
0049 TPGWriteBxt = cms.uint32(0),
0050 TPGWriteBtt = cms.uint32(0),
0051
0052 writeToFiles = cms.bool(True),
0053 outFile = cms.string('TPG_linear.txt'),
0054
0055 TPGtag = cms.string('ENERGY'),
0056 TPGversion = cms.uint32(1),
0057
0058
0059 useTransverseEnergy = cms.bool(False),
0060 Et_sat_EB = cms.double(400.0),
0061 Et_sat_EE = cms.double(400.0),
0062
0063 sliding = cms.uint32(0),
0064
0065 weight_timeShift = cms.double(0.),
0066 weight_sampleMax = cms.uint32(3),
0067 weight_unbias_recovery = cms.bool(True),
0068
0069 forcedPedestalValue = cms.int32(-2),
0070
0071
0072
0073 pedestal_offset = cms.uint32(300),
0074
0075 SFGVB_Threshold = cms.uint32(0),
0076 SFGVB_lut = cms.uint32(0),
0077
0078 forceEtaSlice = cms.bool(True),
0079
0080 LUT_option = cms.string('Linear'),
0081 LUT_threshold_EB = cms.double(0.250),
0082 LUT_threshold_EE = cms.double(0.250),
0083 LUT_stochastic_EB = cms.double(0.03),
0084 LUT_noise_EB = cms.double(0.2),
0085 LUT_constant_EB = cms.double(0.005),
0086 LUT_stochastic_EE = cms.double(0.03),
0087 LUT_noise_EE = cms.double(0.2),
0088 LUT_constant_EE = cms.double(0.005),
0089
0090 TTF_lowThreshold_EB = cms.double(1.0),
0091 TTF_highThreshold_EB = cms.double(2.0),
0092 TTF_lowThreshold_EE = cms.double(1.0),
0093 TTF_highThreshold_EE = cms.double(2.0),
0094
0095 FG_lowThreshold_EB = cms.double(0.3125),
0096 FG_highThreshold_EB = cms.double(0.3125),
0097 FG_lowRatio_EB = cms.double(0.8),
0098 FG_highRatio_EB = cms.double(0.8),
0099 FG_lut_EB = cms.uint32(0x08),
0100 FG_Threshold_EE = cms.double(0.0),
0101 FG_lut_strip_EE = cms.uint32(0),
0102 FG_lut_tower_EE = cms.uint32(0)
0103 )
0104
0105 process.p = cms.Path(process.TPGParamProducer)
0106