File indexing completed on 2025-04-17 02:41:47
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 process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0026
0027 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0028 process.CondDBCommon,
0029 toGet = cms.VPSet(
0030 cms.PSet(
0031 record = cms.string('EcalPedestalsRcd'),
0032
0033 tag = cms.string('EcalPedestals_2009runs_hlt')
0034 ),
0035 cms.PSet(
0036 record = cms.string('EcalADCToGeVConstantRcd'),
0037
0038 tag = cms.string('EcalADCToGeVConstant_2009runs_express')
0039 ),
0040 cms.PSet(
0041 record = cms.string('EcalIntercalibConstantsRcd'),
0042
0043 tag = cms.string('EcalIntercalibConstants_2009runs_express')
0044 ),
0045 cms.PSet(
0046 record = cms.string('EcalGainRatiosRcd'),
0047
0048 tag = cms.string('EcalGainRatios_TestPulse_express')
0049 ),
0050 cms.PSet(
0051 record = cms.string('EcalMappingElectronicsRcd'),
0052 tag = cms.string('EcalMappingElectronics_EEMap')
0053 )
0054 )
0055 )
0056
0057
0058
0059 process.source = cms.Source("EmptySource",
0060 firstRun = cms.untracked.uint32(100000000)
0061 )
0062
0063
0064 process.maxEvents = cms.untracked.PSet(
0065 input = cms.untracked.int32(1)
0066 )
0067
0068 process.TPGParamProducer = cms.EDFilter("EcalTPGParamBuilder",
0069
0070
0071 writeToDB = cms.bool(False),
0072 allowDBEE = cms.bool(True),
0073
0074 DBsid = cms.string('cms_omds_lb'),
0075 DBuser = cms.string('cms_ecal_conf'),
0076 DBpass = cms.string('0r4cms_3c4lc0nf'),
0077 DBport = cms.uint32(10121),
0078
0079 TPGWritePed = cms.uint32(1),
0080 TPGWriteLin = cms.uint32(1),
0081 TPGWriteSli = cms.uint32(1),
0082 TPGWriteWei = cms.uint32(1),
0083 TPGWriteLut = cms.uint32(1),
0084 TPGWriteFgr = cms.uint32(1),
0085 TPGWriteBxt = cms.uint32(0),
0086 TPGWriteBtt = cms.uint32(0),
0087
0088 writeToFiles = cms.bool(True),
0089 outFile = cms.string('TPG_beamv2.txt'),
0090
0091 TPGtag = cms.string('BEAMV2'),
0092 TPGversion = cms.uint32(1),
0093
0094
0095 useTransverseEnergy = cms.bool(True),
0096 Et_sat_EB = cms.double(64.0),
0097 Et_sat_EE = cms.double(64.0),
0098
0099 sliding = cms.uint32(0),
0100
0101 weight_timeShift = cms.double(0.),
0102 weight_sampleMax = cms.uint32(3),
0103 weight_unbias_recovery = cms.bool(True),
0104
0105 forcedPedestalValue = cms.int32(-2),
0106
0107
0108
0109 pedestal_offset = cms.uint32(300),
0110
0111 useInterCalibration = cms.bool(False),
0112
0113 SFGVB_Threshold = cms.uint32(0),
0114 SFGVB_lut = cms.uint32(0),
0115
0116 forceEtaSlice = cms.bool(False),
0117
0118 LUT_option = cms.string('Linear'),
0119 LUT_threshold_EB = cms.double(0.250),
0120 LUT_threshold_EE = cms.double(0.250),
0121 LUT_stochastic_EB = cms.double(0.03),
0122 LUT_noise_EB = cms.double(0.2),
0123 LUT_constant_EB = cms.double(0.005),
0124 LUT_stochastic_EE = cms.double(0.03),
0125 LUT_noise_EE = cms.double(0.2),
0126 LUT_constant_EE = cms.double(0.005),
0127
0128 TTF_lowThreshold_EB = cms.double(1.0),
0129 TTF_highThreshold_EB = cms.double(2.0),
0130 TTF_lowThreshold_EE = cms.double(1.0),
0131 TTF_highThreshold_EE = cms.double(2.0),
0132
0133 FG_lowThreshold_EB = cms.double(0.3125),
0134 FG_highThreshold_EB = cms.double(0.3125),
0135 FG_lowRatio_EB = cms.double(0.8),
0136 FG_highRatio_EB = cms.double(0.8),
0137 FG_lut_EB = cms.uint32(0x08),
0138 FG_Threshold_EE = cms.double(18.75),
0139 FG_lut_strip_EE = cms.uint32(0xfffefee8),
0140 FG_lut_tower_EE = cms.uint32(0)
0141 )
0142
0143 process.p = cms.Path(process.TPGParamProducer)
0144