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")
33 process.CondDB.DBParameters.authenticationPath =
''
36 process.CondDB.connect =
'oracle://cms_orcon_prod/CMS_CONDITIONS'
39 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
42 logconnect = cms.untracked.string(
'sqlite_file:log.db'),
43 toPut = cms.VPSet(cms.PSet(
44 record = cms.string(
'EcalIntercalibConstantsRcd'),
45 tag = cms.string(
'EcalIntercalibConstants_V1_hlt')
49 process.Test1 = cms.EDAnalyzer(
"ExTestEcalIntercalibAnalyzer",
50 record = cms.string(
'EcalIntercalibConstantsRcd'),
51 loggingOn= cms.untracked.bool(
True),
52 IsDestDbCheckedInQueryLog=cms.untracked.bool(
True),
53 SinceAppendMode=cms.bool(
True),
55 FileLowField = cms.string(
'/data/O2O/Ecal/TPG/Intercalib_Boff.xml'),
56 FileHighField = cms.string(
'/data/O2O/Ecal/TPG/Intercalib_Bon.xml'),
59 Value_Bon = cms.untracked.double(0.76724),
60 firstRun = cms.string(
'207149'),
61 lastRun = cms.string(
'10000000'),
62 OnlineDBSID = cms.string(
'cms_omds_lb'),
64 OnlineDBUser = cms.string(
'cms_ecal_r'),
65 OnlineDBPassword = cms.string( options.password ),
66 LocationSource = cms.string(
'P5'),
67 Location = cms.string(
'P5_Co'),
68 GenTag = cms.string(
'GLOBAL'),
69 RunType = cms.string(
'COSMICS')
73 process.p = cms.Path(process.Test1)