1 import FWCore.ParameterSet.VarParsing
as VarParsing
5 ivars.register (
'outputTag',
6 mult=ivars.multiplicity.singleton,
7 mytype=ivars.varType.string,
9 ivars.outputTag=
"HFhits40_MC_Hydjet2760GeV_MC_3XY_V24_v0"
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=
"../data/CentralityTables.root"
22 ivars.outputFile=
"Test.db"
24 ivars.parseArguments()
26 hiRecord =
'HeavyIonRcd'
30 process = cms.Process(
'DUMMY')
32 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(-1))
34 process.MessageLogger = cms.Service(
"MessageLogger",
35 cout = cms.untracked.PSet(
36 threshold = cms.untracked.string(
'INFO')
38 destinations = cms.untracked.vstring(
'cout')
41 process.source = cms.Source(
"EmptyIOVSource",
42 timetype = cms.string(
"runnumber"),
43 firstValue = cms.uint64(1),
44 lastValue = cms.uint64(1),
45 interval = cms.uint64(1)
49 process.makeCentralityTableDB = cms.EDAnalyzer(
'CentralityPopConProducer',
50 Source = cms.PSet(makeDBFromTFile = cms.untracked.bool(
True),
51 inputFile = cms.string(ivars.inputFile),
52 rootTag = cms.string(ivars.outputTag)
54 record = cms.string(hiRecord),
55 name= cms.untracked.string(ivars.outputTag),
56 loggingOn = cms.untracked.bool(
True)
59 process.load(
"CondCore.DBCommon.CondDBCommon_cfi")
60 process.CondDBCommon.connect =
"oracle://cms_orcoff_prep/CMS_COND_PHYSICSTOOLS"
61 process.CondDBCommon.DBParameters.messageLevel = cms.untracked.int32(3)
62 process.CondDBCommon.DBParameters.authenticationPath =
"authPath"
64 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
66 logconnect = cms.untracked.string(
"sqlite_file:" +
"LogsTest.db"),
67 timetype = cms.untracked.string(
"runnumber"),
68 toPut = cms.VPSet(cms.PSet(record = cms.string(hiRecord),
69 tag = cms.string(ivars.outputTag)
77 process.step = cms.Path(process.makeCentralityTableDB)