File indexing completed on 2023-10-25 09:33:41
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
0022
0023 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0024 process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_31X_ECAL'
0025
0026 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0027
0028
0029 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0030 process.CondDBCommon,
0031 timetype = cms.untracked.string('runnumber'),
0032 toGet = cms.VPSet(
0033 cms.PSet(
0034 record = cms.string('EcalPedestalsRcd'),
0035
0036 tag = cms.string('EcalPedestals_2009runs_hlt')
0037
0038 ),
0039 cms.PSet(
0040 record = cms.string('EcalADCToGeVConstantRcd'),
0041
0042 tag = cms.string('EcalADCToGeVConstant_2009runs_express')
0043 ),
0044 cms.PSet(
0045 record = cms.string('EcalIntercalibConstantsRcd'),
0046
0047 tag = cms.string('EcalIntercalibConstants_2009runs_express')
0048 ),
0049 cms.PSet(
0050 record = cms.string('EcalGainRatiosRcd'),
0051
0052 tag = cms.string('EcalGainRatios_TestPulse_express')
0053 ),
0054 cms.PSet(
0055 record = cms.string('EcalMappingElectronicsRcd'),
0056 tag = cms.string('EcalMappingElectronics_EEMap')
0057 )
0058 )
0059 )
0060
0061
0062
0063 process.source = cms.Source("EmptySource",
0064
0065 firstRun = cms.untracked.uint32(147755)
0066 )
0067
0068
0069 process.maxEvents = cms.untracked.PSet(
0070 input = cms.untracked.int32(1)
0071 )
0072
0073
0074 process.TPGParamProducer = cms.EDAnalyzer("EcalTPGParamBuilder",
0075
0076
0077 writeToDB = cms.bool(False),
0078 allowDBEE = cms.bool(True),
0079
0080 DBsid = cms.string('cms_omds_lb'),
0081
0082
0083 DBuser = cms.string('cms_ecal_conf'),
0084 DBpass = cms.string('0r4cms_3c4lc0nf'),
0085
0086
0087
0088 DBport = cms.uint32(10121),
0089
0090 TPGWritePed = cms.uint32(1),
0091 TPGWriteLin = cms.uint32(1),
0092 TPGWriteSli = cms.uint32(1),
0093 TPGWriteWei = cms.uint32(1),
0094 TPGWriteLut = cms.uint32(1),
0095 TPGWriteFgr = cms.uint32(1),
0096 TPGWriteSpi = cms.uint32(1),
0097 TPGWriteDel = cms.uint32(1),
0098 TPGWriteBxt = cms.uint32(0),
0099 TPGWriteBtt = cms.uint32(0),
0100
0101 writeToFiles = cms.bool(True),
0102 outFile = cms.string('TPG_beamv5_emul.txt'),
0103
0104 TPGtag = cms.string('BEAMV5_EMULATOR'),
0105 TPGversion = cms.uint32(1),
0106
0107
0108 useTransverseEnergy = cms.bool(True),
0109 Et_sat_EB = cms.double(64.0),
0110 Et_sat_EE = cms.double(64.0),
0111
0112 sliding = cms.uint32(0),
0113
0114 weight_timeShift = cms.double(0.),
0115 weight_sampleMax = cms.uint32(3),
0116 weight_unbias_recovery = cms.bool(True),
0117
0118 forcedPedestalValue = cms.int32(-3),
0119
0120
0121
0122 pedestal_offset = cms.uint32(300),
0123
0124 useInterCalibration = cms.bool(True),
0125
0126 timing_delays_EB = cms.string('Delays_EB.txt'),
0127 timing_delays_EE = cms.string('Delays_EE.txt'),
0128 timing_phases_EB = cms.string('Phases_EB.txt'),
0129 timing_phases_EE = cms.string('Phases_EE.txt'),
0130
0131 SFGVB_Threshold = cms.uint32(17),
0132 SFGVB_lut = cms.uint32(0xfffefee8),
0133 SFGVB_SpikeKillingThreshold = cms.int32(-1),
0134
0135 forceEtaSlice = cms.bool(False),
0136
0137 LUT_option = cms.string('Linear'),
0138 LUT_threshold_EB = cms.double(0.250),
0139 LUT_threshold_EE = cms.double(0.250),
0140 LUT_stochastic_EB = cms.double(0.03),
0141 LUT_noise_EB = cms.double(0.2),
0142 LUT_constant_EB = cms.double(0.005),
0143 LUT_stochastic_EE = cms.double(0.03),
0144 LUT_noise_EE = cms.double(0.2),
0145 LUT_constant_EE = cms.double(0.005),
0146
0147 TTF_lowThreshold_EB = cms.double(1.0),
0148 TTF_highThreshold_EB = cms.double(2.0),
0149 TTF_lowThreshold_EE = cms.double(1.0),
0150 TTF_highThreshold_EE = cms.double(2.0),
0151
0152 FG_lowThreshold_EB = cms.double(3.9),
0153 FG_highThreshold_EB = cms.double(3.9),
0154 FG_lowRatio_EB = cms.double(0.9),
0155 FG_highRatio_EB = cms.double(0.9),
0156 FG_lut_EB = cms.uint32(0x08),
0157 FG_Threshold_EE = cms.double(18.75),
0158 FG_lut_strip_EE = cms.uint32(0xfffefee8),
0159 FG_lut_tower_EE = cms.uint32(0)
0160 )
0161
0162 process.p = cms.Path(process.TPGParamProducer)
0163