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