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.HcalCommonData.hcalDDConstants_cff")
0009 process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
0010
0011
0012 process.load("Geometry.EcalMapping.EcalMapping_cfi")
0013 process.eegeom = cms.ESSource("EmptyESSource",
0014 recordName = cms.string('EcalMappingRcd'),
0015 iovIsRunNotTime = cms.bool(True),
0016 firstValid = cms.vuint32(1)
0017 )
0018
0019
0020
0021
0022
0023 process.load("CondCore.CondDB.CondDB_cfi")
0024 process.CondDB.connect = 'oracle://cms_orcon_adg/CMS_CONDITIONS'
0025
0026 process.CondDB.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb'
0027
0028
0029 process.PoolDBESSource = cms.ESSource("PoolDBESSource",
0030 process.CondDB,
0031 timetype = cms.untracked.string('runnumber'),
0032 toGet = cms.VPSet(
0033 cms.PSet(
0034 record = cms.string('EcalPedestalsRcd'),
0035
0036
0037 tag = cms.string('EcalPedestals_hlt'),
0038 ),
0039 cms.PSet(
0040 record = cms.string('EcalADCToGeVConstantRcd'),
0041
0042
0043 tag = cms.string('EcalADCToGeVConstant_V1_hlt')
0044 ),
0045 cms.PSet(
0046 record = cms.string('EcalIntercalibConstantsRcd'),
0047
0048
0049 tag = cms.string('EcalIntercalibConstants_V1_hlt')
0050 ),
0051 cms.PSet(
0052 record = cms.string('EcalGainRatiosRcd'),
0053
0054 tag = cms.string('EcalGainRatios_TestPulse_express')
0055 ),
0056 cms.PSet(
0057 record = cms.string('EcalMappingElectronicsRcd'),
0058 tag = cms.string('EcalMappingElectronics_EEMap_v1_mc')
0059 ),
0060 cms.PSet(
0061 record = cms.string('EcalLaserAlphasRcd'),
0062 tag = cms.string('EcalLaserAlphas_EB_sic1_btcp152_EE_sic1_btcp116')
0063 )
0064 )
0065 )
0066
0067
0068
0069 process.source = cms.Source("EmptySource",
0070
0071 firstRun = cms.untracked.uint32(161310)
0072 )
0073
0074
0075 process.maxEvents = cms.untracked.PSet(
0076 input = cms.untracked.int32(1)
0077 )
0078
0079
0080 process.TPGParamProducer = cms.EDAnalyzer("EcalTPGParamBuilder",
0081
0082
0083 writeToDB = cms.bool(False),
0084 allowDBEE = cms.bool(True),
0085
0086
0087 DBsid = cms.string('cms_orcon_adg'),
0088
0089
0090 DBuser = cms.string('cms_ecal_r'),
0091 DBpass = cms.string('3c4l_r34d3r'),
0092 DBport = cms.uint32(10121),
0093
0094 TPGWritePed = cms.uint32(1),
0095 TPGWriteLin = cms.uint32(1),
0096 TPGWriteSli = cms.uint32(1),
0097 TPGWriteWei = cms.uint32(1),
0098 TPGWriteLut = cms.uint32(1),
0099 TPGWriteFgr = cms.uint32(1),
0100 TPGWriteSpi = cms.uint32(1),
0101 TPGWriteDel = cms.uint32(1),
0102 TPGWriteBxt = cms.uint32(0),
0103 TPGWriteBtt = cms.uint32(0),
0104 TPGWriteBst = cms.uint32(0),
0105
0106 writeToFiles = cms.bool(True),
0107 outFile = cms.string('TPG_beamv6_trans_rrrrrr_spikekill.txt'),
0108
0109
0110 TPGtag = cms.string('BEAMV6_TRANS_SPIKEKILL'),
0111 TPGversion = cms.uint32(1),
0112
0113
0114 useTransverseEnergy = cms.bool(True),
0115 Et_sat_EB = cms.double(128.0),
0116 Et_sat_EE = cms.double(128.0),
0117
0118 sliding = cms.uint32(0),
0119
0120 weight_timeShift = cms.double(0.),
0121 weight_sampleMax = cms.uint32(3),
0122 weight_unbias_recovery = cms.bool(True),
0123
0124 forcedPedestalValue = cms.int32(-3),
0125
0126
0127
0128 pedestal_offset = cms.uint32(150),
0129
0130 useInterCalibration = cms.bool(True),
0131
0132 timing_delays_EB = cms.string('Delays_EB.txt'),
0133 timing_delays_EE = cms.string('Delays_EE.txt'),
0134 timing_phases_EB = cms.string('Phases_EB.txt'),
0135 timing_phases_EE = cms.string('Phases_EE.txt'),
0136
0137 useTransparencyCorr = cms.bool(True),
0138 transparency_corrections = cms.string('../../../Tools/DBDump/bin/weekly_rrrrrr'),
0139
0140 SFGVB_Threshold = cms.uint32(12),
0141 SFGVB_lut = cms.uint32(0xfffefee8),
0142 SFGVB_SpikeKillingThreshold = cms.int32(12),
0143
0144 forceEtaSlice = cms.bool(False),
0145
0146 LUT_option = cms.string('Linear'),
0147 LUT_threshold_EB = cms.double(0.250),
0148 LUT_threshold_EE = cms.double(0.250),
0149 LUT_stochastic_EB = cms.double(0.03),
0150 LUT_noise_EB = cms.double(0.2),
0151 LUT_constant_EB = cms.double(0.005),
0152 LUT_stochastic_EE = cms.double(0.03),
0153 LUT_noise_EE = cms.double(0.2),
0154 LUT_constant_EE = cms.double(0.005),
0155
0156 TTF_lowThreshold_EB = cms.double(1.5),
0157 TTF_highThreshold_EB = cms.double(2.5),
0158 TTF_lowThreshold_EE = cms.double(1.5),
0159 TTF_highThreshold_EE = cms.double(2.5),
0160
0161 FG_lowThreshold_EB = cms.double(3.9),
0162 FG_highThreshold_EB = cms.double(3.9),
0163 FG_lowRatio_EB = cms.double(0.9),
0164 FG_highRatio_EB = cms.double(0.9),
0165 FG_lut_EB = cms.uint32(0x08),
0166 FG_Threshold_EE = cms.double(18.75),
0167 FG_lut_strip_EE = cms.uint32(0xfffefee8),
0168 FG_lut_tower_EE = cms.uint32(0)
0169 )
0170
0171 process.p = cms.Path(process.TPGParamProducer)
0172