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()
15 process.MessageLogger = cms.Service(
"MessageLogger",
16 debugModules = cms.untracked.vstring(
'*'),
17 cout = cms.untracked.PSet(
18 threshold = cms.untracked.string(
'DEBUG')
20 destinations = cms.untracked.vstring(
'cout')
23 process.source = cms.Source(
"EmptyIOVSource",
24 lastValue = cms.uint64(100000000000),
25 timetype = cms.string(
'runnumber'),
26 firstValue = cms.uint64(100000000000),
27 interval = cms.uint64(1)
30 process.load(
"CondCore.CondDB.CondDB_cfi")
33 process.CondDB.connect =
'oracle://cms_orcon_prod/CMS_CONDITIONS'
34 process.CondDB.DBParameters.authenticationPath =
''
36 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
39 logconnect = cms.untracked.string(
'sqlite_file:log.db'),
40 toPut = cms.VPSet(cms.PSet(
41 record = cms.string(
'EcalTPGCrystalStatusRcd'),
42 tag = cms.string(
'EcalTPGCrystalStatus_v2_hlt')
46 process.Test1 = cms.EDAnalyzer(
"ExTestEcalTPGBadXTAnalyzer",
47 record = cms.string(
'EcalTPGCrystalStatusRcd'),
48 loggingOn= cms.untracked.bool(
True),
49 IsDestDbCheckedInQueryLog=cms.untracked.bool(
True),
50 SinceAppendMode=cms.bool(
True),
52 firstRun = cms.string(
'200000'),
53 lastRun = cms.string(
'10000000'),
54 OnlineDBSID = cms.string(
'cms_omds_lb'),
56 OnlineDBUser = cms.string(
'cms_ecal_r'),
57 OnlineDBPassword = cms.string( options.password ),
58 LocationSource = cms.string(
'P5'),
59 Location = cms.string(
'P5_Co'),
60 GenTag = cms.string(
'GLOBAL'),
61 RunType = cms.string(
'PHYSICS')
65 process.p = cms.Path(process.Test1)