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