1 import FWCore.ParameterSet.VarParsing
as VarParsing
5 ivars.register (
'outputTag',
6 mult=ivars.multiplicity.singleton,
7 mytype=ivars.varType.string,
11 ivars.register (
'inputFile',
12 mult=ivars.multiplicity.singleton,
13 mytype=ivars.varType.string,
16 ivars.register (
'outputFile',
17 mult=ivars.multiplicity.singleton,
18 mytype=ivars.varType.string,
21 ivars.inputFile=
"./input.root"
22 ivars.outputFile=
"./output.db"
24 ivars.parseArguments()
28 process = cms.Process(
'DUMMY')
30 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
31 process.source = cms.Source(
"EmptyIOVSource",
32 timetype = cms.string(
"runnumber"),
33 firstValue = cms.uint64(1),
34 lastValue = cms.uint64(200),
35 interval = cms.uint64(1)
38 process.load(
"CondCore.DBCommon.CondDBCommon_cfi")
39 process.CondDBCommon.connect =
"sqlite_file:" + ivars.outputFile
41 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
43 timetype = cms.untracked.string(
"runnumber"),
44 toPut = cms.VPSet(cms.PSet(record = cms.string(
'HeavyIonRcd'),
45 tag = cms.string(ivars.outputTag)
50 process.makeCentralityTableDB = cms.EDAnalyzer(
'CentralityTableProducer',
51 makeDBFromTFile = cms.untracked.bool(
True),
52 inputTFile = cms.string(ivars.inputFile),
53 rootTag = cms.string(ivars.outputTag)
56 process.step = cms.Path(process.makeCentralityTableDB)