1 import FWCore.ParameterSet.Config
as cms
2 import FWCore.ParameterSet.VarParsing
as VarParsing
4 process = cms.Process(
"ProcessOne")
7 options.register(
"password"
9 , VarParsing.VarParsing.multiplicity.singleton
10 , VarParsing.VarParsing.varType.string
13 options.parseArguments()
16 process.MessageLogger = cms.Service(
"MessageLogger",
17 debugModules = cms.untracked.vstring(
'*'),
18 cout = cms.untracked.PSet(
19 threshold = cms.untracked.string(
'DEBUG')
21 destinations = cms.untracked.vstring(
'cout')
24 process.source = cms.Source(
"EmptyIOVSource",
25 lastValue = cms.uint64(100000000000),
26 timetype = cms.string(
'runnumber'),
27 firstValue = cms.uint64(100000000000),
28 interval = cms.uint64(1)
31 process.load(
"CondCore.CondDB.CondDB_cfi")
34 process.CondDB.connect =
'oracle://cms_orcon_prod/CMS_CONDITIONS'
35 process.CondDB.DBParameters.authenticationPath =
''
37 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
40 logconnect = cms.untracked.string(
'sqlite_file:log.db'),
41 toPut = cms.VPSet(cms.PSet(
42 record = cms.string(
'EcalTPGStripStatusRcd'),
43 tag = cms.string(
'EcalTPGStripStatus_v3_hlt')
47 process.Test1 = cms.EDAnalyzer(
"ExTestEcalTPGBadStripAnalyzer",
48 record = cms.string(
'EcalTPGStripStatusRcd'),
49 loggingOn= cms.untracked.bool(
True),
50 IsDestDbCheckedInQueryLog=cms.untracked.bool(
True),
51 SinceAppendMode=cms.bool(
True),
53 firstRun = cms.string(
'200000'),
54 lastRun = cms.string(
'10000000'),
55 OnlineDBSID = cms.string(
'cms_omds_lb'),
57 OnlineDBUser = cms.string(
'cms_ecal_r'),
58 OnlineDBPassword = cms.string( options.password ),
59 LocationSource = cms.string(
'P5'),
60 Location = cms.string(
'P5_Co'),
61 GenTag = cms.string(
'GLOBAL'),
62 RunType = cms.string(
'PHYSICS')
66 process.p = cms.Path(process.Test1)