1 import FWCore.ParameterSet.Config
as cms
6 if POPULATE_MC: suffix =
"mc"
9 process = cms.Process(
"ProcessOne")
10 process.load(
"CondCore.DBCommon.CondDBCommon_cfi")
11 process.CondDBCommon.connect =
'sqlite_file:ecaltemplates_popcon_'+suffix+
'.db'
12 process.CondDBCommon.DBParameters.authenticationPath =
'.'
13 process.CondDBCommon.DBParameters.messageLevel=cms.untracked.int32(1)
15 process.MessageLogger = cms.Service(
"MessageLogger",
16 cerr = cms.untracked.PSet(
17 enable = cms.untracked.bool(
False)
19 cout = cms.untracked.PSet(
20 enable = cms.untracked.bool(
True)
22 debugModules = cms.untracked.vstring(
'*')
25 process.source = cms.Source(
"EmptyIOVSource",
26 firstValue = cms.uint64(1),
27 lastValue = cms.uint64(1),
28 timetype = cms.string(
'runnumber'),
29 interval = cms.uint64(1)
32 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
34 logconnect = cms.untracked.string(
'sqlite_file:logecaltemplates_popcon_'+suffix+
'.db'),
35 timetype = cms.untracked.string(
'runnumber'),
36 toPut = cms.VPSet(cms.PSet(
37 record = cms.string(
'EcalPulseShapesRcd'),
38 tag = cms.string(
'EcalPulseShapes_'+suffix)
42 process.Test1 = cms.EDAnalyzer(
"ExTestEcalPulseShapesAnalyzer",
43 SinceAppendMode = cms.bool(
True),
44 record = cms.string(
'EcalPulseShapesRcd'),
45 loggingOn = cms.untracked.bool(
True),
47 firstRun = cms.string(
'1' if POPULATE_MC
else FIRST_RUN_DATA),
48 inputFileName = cms.string(
"template_histograms_ECAL.txt"),
49 EBPulseShapeTemplate = cms.vdouble (
50 1.13979e-02, 7.58151e-01, 1.00000e+00, 8.87744e-01, 6.73548e-01, 4.74332e-01, 3.19561e-01, 2.15144e-01, 1.47464e-01, 1.01087e-01, 6.93181e-02, 4.75044e-02
52 EEPulseShapeTemplate = cms.vdouble (
53 1.16442e-01, 7.56246e-01, 1.00000e+00, 8.97182e-01, 6.86831e-01, 4.91506e-01, 3.44111e-01, 2.45731e-01, 1.74115e-01, 1.23361e-01, 8.74288e-02, 6.19570e-02
58 process.p = cms.Path(process.Test1)