1 import FWCore.ParameterSet.Config
as cms
3 process = cms.Process(
"ProcessOne")
4 process.load(
"CondCore.CondDB.CondDB_cfi")
5 process.CondDB.connect =
'sqlite_file:EcalSRSettings_beam2016_option1_v1_mc.db' 10 process.MessageLogger = cms.Service(
"MessageLogger",
11 debugModules = cms.untracked.vstring(
'*'),
12 destinations = cms.untracked.vstring(
'cout')
15 process.source = cms.Source(
"EmptyIOVSource",
16 firstValue = cms.uint64(1),
17 lastValue = cms.uint64(1),
18 timetype = cms.string(
'runnumber'),
19 interval = cms.uint64(1)
22 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
25 toPut = cms.VPSet(cms.PSet(
26 record = cms.string(
'EcalSRSettingsRcd'),
27 tag = cms.string(
'EcalSRSettings_beam2016_option1_v1_mc')
31 process.writeInDB = cms.EDAnalyzer(
"EcalSRCondTools",
37 mode = cms.string(
"python_config"),
43 onlineSrpConfigFile = cms.string(
"srp.cfg"),
46 deltaEta = cms.int32(1),
49 deltaPhi = cms.int32(1),
52 ecalDccZs1stSample = cms.int32(2),
55 ebDccAdcToGeV = cms.double(0.035),
58 eeDccAdcToGeV = cms.double(0.06),
62 dccNormalizedWeights = cms.vdouble(-0.374, -0.374, -0.3629, 0.2721, 0.4681,
67 symetricZS = cms.bool(
False),
70 srpBarrelLowInterestChannelZS = cms.double(0.1),
73 srpEndcapLowInterestChannelZS = cms.double(0.3),
76 srpBarrelHighInterestChannelZS = cms.double(-1.e9),
79 srpEndcapHighInterestChannelZS = cms.double(-1.e9),
82 trigPrimBypass = cms.bool(
False),
88 trigPrimBypassMode = cms.int32(0),
91 trigPrimBypassLTH = cms.double(1.0),
94 trigPrimBypassHTH = cms.double(1.0),
97 trigPrimBypassWithPeakFinder = cms.bool(
True),
103 defaultTtf = cms.int32(4),
106 actions = cms.vint32(1, 3, 3, 3, 5, 7, 7, 7),
110 bxGlobalOffset = cms.int32(3447),
114 automaticSrpSelect = cms.int32(1),
118 automaticMasks = cms.int32(1)
169 process.writeInDB.ebDccAdcToGeV = cms.double(0.035)
170 process.writeInDB.srpBarrelLowInterestChannelZS = cms.double(0.1575)
173 process.writeInDB.eeDccAdcToGeV = cms.double(0.06)
174 process.writeInDB.srpEndcapLowInterestChannelZS = cms.double(0.39)
176 process.p = cms.Path(process.writeInDB)