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 cerr = cms.untracked.PSet(
12 enable = cms.untracked.bool(
False)
14 cout = cms.untracked.PSet(
15 enable = cms.untracked.bool(
True)
17 debugModules = cms.untracked.vstring(
'*')
20 process.source = cms.Source(
"EmptyIOVSource",
21 firstValue = cms.uint64(1),
22 lastValue = cms.uint64(1),
23 timetype = cms.string(
'runnumber'),
24 interval = cms.uint64(1)
27 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
30 toPut = cms.VPSet(cms.PSet(
31 record = cms.string(
'EcalSRSettingsRcd'),
32 tag = cms.string(
'EcalSRSettings_beam2016_option1_v1_mc')
36 process.writeInDB = cms.EDAnalyzer(
"EcalSRCondTools",
42 mode = cms.string(
"python_config"),
48 onlineSrpConfigFile = cms.string(
"srp.cfg"),
51 deltaEta = cms.int32(1),
54 deltaPhi = cms.int32(1),
57 ecalDccZs1stSample = cms.int32(2),
60 ebDccAdcToGeV = cms.double(0.035),
63 eeDccAdcToGeV = cms.double(0.06),
67 dccNormalizedWeights = cms.vdouble(-0.374, -0.374, -0.3629, 0.2721, 0.4681,
72 symetricZS = cms.bool(
False),
75 srpBarrelLowInterestChannelZS = cms.double(0.1),
78 srpEndcapLowInterestChannelZS = cms.double(0.3),
81 srpBarrelHighInterestChannelZS = cms.double(-1.e9),
84 srpEndcapHighInterestChannelZS = cms.double(-1.e9),
87 trigPrimBypass = cms.bool(
False),
93 trigPrimBypassMode = cms.int32(0),
96 trigPrimBypassLTH = cms.double(1.0),
99 trigPrimBypassHTH = cms.double(1.0),
102 trigPrimBypassWithPeakFinder = cms.bool(
True),
108 defaultTtf = cms.int32(4),
111 actions = cms.vint32(1, 3, 3, 3, 5, 7, 7, 7),
115 bxGlobalOffset = cms.int32(3447),
119 automaticSrpSelect = cms.int32(1),
123 automaticMasks = cms.int32(1)
174 process.writeInDB.ebDccAdcToGeV = cms.double(0.035)
175 process.writeInDB.srpBarrelLowInterestChannelZS = cms.double(0.1575)
178 process.writeInDB.eeDccAdcToGeV = cms.double(0.06)
179 process.writeInDB.srpEndcapLowInterestChannelZS = cms.double(0.39)
181 process.p = cms.Path(process.writeInDB)