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
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 tag = cms.string('EcalPedestals_mc')
0036 ),
0037 cms.PSet(
0038 record = cms.string('EcalADCToGeVConstantRcd'),
0039 tag = cms.string('EcalADCToGeVConstant_2010_V2_Bon_mc')
0040 ),
0041 cms.PSet(
0042 record = cms.string('EcalIntercalibConstantsRcd'),
0043 tag = cms.string('EcalIntercalibConstants_2010_V3_Bon_startup_mc')
0044 ),
0045 cms.PSet(
0046 record = cms.string('EcalGainRatiosRcd'),
0047 tag = cms.string('EcalGainRatios_mc')
0048 ),
0049 cms.PSet(
0050 record = cms.string('EcalMappingElectronicsRcd'),
0051 tag = cms.string('EcalMappingElectronics_EEMap')
0052 )
0053 )
0054 )
0055
0056
0057
0058 process.source = cms.Source("EmptySource",
0059 firstRun = cms.untracked.uint32(100000000)
0060 )
0061
0062
0063 process.maxEvents = cms.untracked.PSet(
0064 input = cms.untracked.int32(1)
0065 )
0066
0067
0068 process.TPGParamProducer = cms.EDAnalyzer("EcalTPGParamBuilder",
0069
0070
0071 writeToDB = cms.bool(False),
0072 allowDBEE = cms.bool(True),
0073
0074 DBsid = cms.string('cms_omds_lb'),
0075
0076
0077 DBuser = cms.string('cms_ecal_conf'),
0078 DBpass = cms.string('0r4cms_3c4lc0nf'),
0079
0080
0081
0082 DBport = cms.uint32(10121),
0083
0084 TPGWritePed = cms.uint32(1),
0085 TPGWriteLin = cms.uint32(1),
0086 TPGWriteSli = cms.uint32(1),
0087 TPGWriteWei = cms.uint32(1),
0088 TPGWriteLut = cms.uint32(1),
0089 TPGWriteFgr = cms.uint32(1),
0090 TPGWriteSpi = cms.uint32(1),
0091 TPGWriteDel = cms.uint32(1),
0092 TPGWriteBxt = cms.uint32(0),
0093 TPGWriteBtt = cms.uint32(0),
0094
0095 writeToFiles = cms.bool(True),
0096 outFile = cms.string('TPG_beamv5_MC_startup.txt'),
0097
0098 TPGtag = cms.string('BEAMV5MCSTARTUP'),
0099 TPGversion = cms.uint32(1),
0100
0101
0102 useTransverseEnergy = cms.bool(True),
0103 Et_sat_EB = cms.double(128.0),
0104 Et_sat_EE = cms.double(128.0),
0105
0106 sliding = cms.uint32(0),
0107
0108 weight_timeShift = cms.double(0.),
0109 weight_sampleMax = cms.uint32(3),
0110 weight_unbias_recovery = cms.bool(True),
0111
0112 forcedPedestalValue = cms.int32(-3),
0113
0114
0115
0116 pedestal_offset = cms.uint32(150),
0117
0118 useInterCalibration = cms.bool(True),
0119
0120 timing_delays_EB = cms.string('Delays_EB.txt'),
0121 timing_delays_EE = cms.string('Delays_EE.txt'),
0122 timing_phases_EB = cms.string('Phases_EB.txt'),
0123 timing_phases_EE = cms.string('Phases_EE.txt'),
0124
0125 SFGVB_Threshold = cms.uint32(9),
0126 SFGVB_lut = cms.uint32(0xfffefee8),
0127 SFGVB_SpikeKillingThreshold = cms.int32(8),
0128
0129 forceEtaSlice = cms.bool(False),
0130
0131 LUT_option = cms.string('Linear'),
0132 LUT_threshold_EB = cms.double(0.250),
0133 LUT_threshold_EE = cms.double(0.250),
0134 LUT_stochastic_EB = cms.double(0.03),
0135 LUT_noise_EB = cms.double(0.2),
0136 LUT_constant_EB = cms.double(0.005),
0137 LUT_stochastic_EE = cms.double(0.03),
0138 LUT_noise_EE = cms.double(0.2),
0139 LUT_constant_EE = cms.double(0.005),
0140
0141 TTF_lowThreshold_EB = cms.double(1.0),
0142 TTF_highThreshold_EB = cms.double(2.0),
0143 TTF_lowThreshold_EE = cms.double(1.0),
0144 TTF_highThreshold_EE = cms.double(2.0),
0145
0146 FG_lowThreshold_EB = cms.double(3.9),
0147 FG_highThreshold_EB = cms.double(3.9),
0148 FG_lowRatio_EB = cms.double(0.9),
0149 FG_highRatio_EB = cms.double(0.9),
0150 FG_lut_EB = cms.uint32(0x08),
0151 FG_Threshold_EE = cms.double(18.75),
0152 FG_lut_strip_EE = cms.uint32(0xfffefee8),
0153 FG_lut_tower_EE = cms.uint32(0)
0154 )
0155
0156 process.p = cms.Path(process.TPGParamProducer)
0157