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.DBParameters.authenticationPath =
''
26 process.CondDB.connect = conddb_init.options.destinationDatabase
29 process.PoolDBOutputService = cms.Service(
"PoolDBOutputService",
31 toPut = cms.VPSet(cms.PSet(
32 record = cms.string(
'EcalADCToGeVConstantRcd'),
33 tag = cms.string(conddb_init.options.destinationTag)
37 db_reader_account =
'CMS_ECAL_R'
38 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
40 process.Test1 = cms.EDAnalyzer(
"ExTestEcalADCToGeVAnalyzer",
41 record = cms.string(
'EcalADCToGeVConstantRcd'),
42 loggingOn= cms.untracked.bool(
True),
43 IsDestDbCheckedInQueryLog=cms.untracked.bool(
True),
44 SinceAppendMode=cms.bool(
True),
46 FileLowField = cms.string(
'/data/O2O/Ecal/TPG/ADCToGeV_Boff.xml'),
47 FileHighField = cms.string(
'/data/O2O/Ecal/TPG/ADCToGeV_Bon.xml'),
50 firstRun = cms.string(
'207149'),
51 lastRun = cms.string(
'10000000'),
52 OnlineDBSID = cms.string(db_service),
53 OnlineDBUser = cms.string(db_user),
54 OnlineDBPassword = cms.string( db_pwd ),
55 LocationSource = cms.string(
'P5'),
56 Location = cms.string(
'P5_Co'),
57 GenTag = cms.string(
'GLOBAL'),
58 RunType = cms.string(
'COSMICS')
62 process.p = cms.Path(process.Test1)