File indexing completed on 2024-04-06 11:57:59
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("ProdDCCWeights")
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 process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff")
0019 process.load("Geometry.HcalCommonData.hcalDDDRecConstants_cfi")
0020
0021
0022
0023
0024
0025
0026
0027 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0028 from Configuration.AlCa.GlobalTag import GlobalTag
0029 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_data', '')
0030
0031
0032
0033
0034 process.source = cms.Source("EmptySource")
0035
0036 process.maxEvents = cms.untracked.PSet(
0037 input = cms.untracked.int32(1)
0038 )
0039
0040 process.dccWeightBuilder = cms.EDAnalyzer("EcalDccWeightBuilder",
0041 dcc1stSample = cms.int32(2),
0042 sampleToSkip = cms.int32(-1),
0043 mode = cms.string("computeWeights"),
0044 nDccWeights = cms.int32(6),
0045 inputWeights = cms.vdouble(),
0046 dccWeightsWithIntercalib = cms.bool(False),
0047 writeToDB = cms.bool(False),
0048 writeToAsciiFile = cms.bool(True),
0049 writeToRootFile = cms.bool(True),
0050 dbSid = cms.string("cms_omds_lb"),
0051 dbUser = cms.string("cms_ecal_conf_test"),
0052 dbPassword = cms.untracked.string("file:conddb_passwd"),
0053 dbTag = cms.string("6-opt-weights"),
0054 dbVersion = cms.int32(0),
0055 sqlMode = cms.bool(True),
0056 asciiOutputFileName = cms.string("dccWeights.sql"),
0057 rootOutputFileName = cms.string("dccWeights.root"))
0058
0059 process.path = cms.Path(process.dccWeightBuilder)