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
0020
0021 process.load('Configuration/StandardSequences/FrontierConditions_GlobalTag_cff')
0022 process.GlobalTag.globaltag = "GR09_31X_V2P::All"
0023
0024
0025
0026 process.source = cms.Source("EmptySource",
0027 firstRun = cms.untracked.uint32(100000000)
0028 )
0029
0030
0031 process.maxEvents = cms.untracked.PSet(
0032 input = cms.untracked.int32(1)
0033 )
0034
0035 process.TPGParamProducer = cms.EDFilter("EcalTPGParamBuilder",
0036
0037
0038 writeToDB = cms.bool(False),
0039 allowDBEE = cms.bool(False),
0040
0041 DBsid = cms.string('ecalh4db'),
0042 DBuser = cms.string('test09'),
0043 DBpass = cms.string('oratest09'),
0044 DBport = cms.uint32(1521),
0045
0046 TPGWritePed = cms.uint32(1),
0047 TPGWriteLin = cms.uint32(1),
0048 TPGWriteSli = cms.uint32(1),
0049 TPGWriteWei = cms.uint32(1),
0050 TPGWriteLut = cms.uint32(1),
0051 TPGWriteFgr = cms.uint32(1),
0052 TPGWriteBxt = cms.uint32(0),
0053 TPGWriteBtt = cms.uint32(2003),
0054
0055 writeToFiles = cms.bool(True),
0056 outFile = cms.string('TPG_craft.txt'),
0057
0058 TPGtag = cms.string('CRAFT'),
0059 TPGversion = cms.uint32(1),
0060
0061
0062 useTransverseEnergy = cms.bool(True),
0063 Et_sat_EB = cms.double(64.0),
0064 Et_sat_EE = cms.double(64.0),
0065
0066 sliding = cms.uint32(0),
0067
0068 weight_sampleMax = cms.uint32(3),
0069
0070 forcedPedestalValue = cms.int32(-2),
0071 forceEtaSlice = cms.bool(False),
0072
0073 LUT_option = cms.string('Linear'),
0074 LUT_threshold_EB = cms.double(0.750),
0075 LUT_threshold_EE = cms.double(1.0625),
0076 LUT_stochastic_EB = cms.double(0.03),
0077 LUT_noise_EB = cms.double(0.2),
0078 LUT_constant_EB = cms.double(0.005),
0079 LUT_stochastic_EE = cms.double(0.03),
0080 LUT_noise_EE = cms.double(0.2),
0081 LUT_constant_EE = cms.double(0.005),
0082
0083 TTF_lowThreshold_EB = cms.double(0.375),
0084 TTF_highThreshold_EB = cms.double(0.375),
0085 TTF_lowThreshold_EE = cms.double(1.0625),
0086 TTF_highThreshold_EE = cms.double(1.0625),
0087
0088 FG_lowThreshold_EB = cms.double(0.3125),
0089 FG_highThreshold_EB = cms.double(0.3125),
0090 FG_lowRatio_EB = cms.double(0.8),
0091 FG_highRatio_EB = cms.double(0.8),
0092 FG_lut_EB = cms.uint32(0x08),
0093 FG_Threshold_EE = cms.double(0.0),
0094 FG_lut_strip_EE = cms.uint32(0),
0095 FG_lut_tower_EE = cms.uint32(0)
0096 )
0097
0098 process.p = cms.Path(process.TPGParamProducer)
0099