1 import FWCore.ParameterSet.Config
as cms
2 import FWCore.ParameterSet.VarParsing
as VarParsing
6 options.register (
'input',
7 'EcalTPGOddWeightGroup.txt',
8 VarParsing.VarParsing.multiplicity.singleton,
9 VarParsing.VarParsing.varType.string,
11 options.register (
'output',
12 'EcalTPGOddWeightGroup.db',
13 VarParsing.VarParsing.multiplicity.singleton,
14 VarParsing.VarParsing.varType.string,
16 options.register (
'filetype',
18 VarParsing.VarParsing.multiplicity.singleton,
19 VarParsing.VarParsing.varType.string,
21 options.register(
'outputtag',
22 'EcalTPGOddWeightGroup',
23 VarParsing.VarParsing.multiplicity.singleton,
24 VarParsing.VarParsing.varType.string,
26 options.parseArguments()
29 process = cms.Process(
"ProcessOne")
31 process.MessageLogger = cms.Service(
"MessageLogger",
32 cerr = cms.untracked.PSet(
33 enable = cms.untracked.bool(
False)
35 cout = cms.untracked.PSet(
36 enable = cms.untracked.bool(
True),
37 threshold = cms.untracked.string(
'DEBUG')
39 debugModules = cms.untracked.vstring(
'*')
42 process.source = cms.Source(
"EmptyIOVSource",
43 lastValue = cms.uint64(100000000000),
44 timetype = cms.string(
'runnumber'),
45 firstValue = cms.uint64(100000000000),
46 interval = cms.uint64(1)
49 process.load(
"CondCore.CondDB.CondDB_cfi")
51 process.CondDB.connect =
'sqlite_file:%s'%(options.output)
53 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
55 logconnect = cms.untracked.string(
'sqlite_file:log.db'),
58 record = cms.string(
'EcalTPGOddWeightGroupRcd'),
59 tag = cms.string(options.outputtag)
64 process.Test1 = cms.EDAnalyzer(
"ExTestEcalTPGOddWeightGroupAnalyzer",
65 record = cms.string(
'EcalTPGOddWeightGroupRcd'),
66 loggingOn= cms.untracked.bool(
True),
67 IsDestDbCheckedInQueryLog=cms.untracked.bool(
True),
68 SinceAppendMode=cms.bool(
True),
70 firstRun = cms.string(
'1'),
71 lastRun = cms.string(
'10'),
72 OnlineDBSID = cms.string(
''),
73 OnlineDBUser = cms.string(
''),
74 OnlineDBPassword = cms.string(
''),
75 LocationSource = cms.string(
''),
76 Location = cms.string(
''),
77 GenTag = cms.string(
''),
78 RunType = cms.string(
''),
79 fileType = cms.string(options.filetype),
80 fileName = cms.string(options.input),
84 process.p = cms.Path(process.Test1)