1 import FWCore.ParameterSet.Config
as cms
2 import CondTools.Ecal.conddb_init
as conddb_init
3 import CondTools.Ecal.db_credentials
as auth
5 process = cms.Process(
"ProcessOne")
7 process.MessageLogger = cms.Service(
"MessageLogger",
8 debugModules = cms.untracked.vstring(
'*'),
9 cout = cms.untracked.PSet(
10 threshold = cms.untracked.string(
'DEBUG')
12 destinations = cms.untracked.vstring(
'cout')
15 process.source = cms.Source(
"EmptyIOVSource",
16 lastValue = cms.uint64(100000000000),
17 timetype = cms.string(
'runnumber'),
18 firstValue = cms.uint64(100000000000),
19 interval = cms.uint64(1)
22 process.load(
"CondCore.CondDB.CondDB_cfi")
24 process.CondDB.connect = conddb_init.options.destinationDatabase
25 if process.CondDB.connect ==
'':
26 process.CondDB.connect =
'sqlite_file:EcalADCToGeV.db' 28 process.CondDB.DBParameters.authenticationPath =
'' 30 db_service,db_user,db_pwd = auth.get_readOnly_db_credentials()
32 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
34 logconnect = cms.untracked.string(
'sqlite_file:log.db'),
37 record = cms.string(
'EcalADCToGeVConstantRcd'),
38 tag = cms.string(
'EcalADCToGeV_test')
43 process.Test1 = cms.EDAnalyzer(
"ExTestEcalADCToGeVAnalyzer",
44 record = cms.string(
'EcalADCToGeVConstantRcd'),
45 loggingOn= cms.untracked.bool(
True),
46 IsDestDbCheckedInQueryLog=cms.untracked.bool(
True),
47 SinceAppendMode=cms.bool(
True),
49 FileLowField = cms.string(
'ADCToGeV_Boff.xml'),
50 FileHighField = cms.string(
'ADCToGeV_Bon.xml'),
51 firstRun = cms.string(
'207149'),
52 lastRun = cms.string(
'10000000'),
53 OnlineDBSID = cms.string(db_service),
54 OnlineDBUser = cms.string(db_user),
55 OnlineDBPassword = cms.string( db_pwd ),
56 LocationSource = cms.string(
'P5'),
57 Location = cms.string(
'P5_Co'),
58 GenTag = cms.string(
'GLOBAL'),
59 RunType = cms.string(
'COSMICS')
63 process.p = cms.Path(process.Test1)