Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:55

0001 import FWCore.ParameterSet.Config as cms
0002 import CondTools.Ecal.conddb_init as conddb_init
0003 import CondTools.Ecal.db_credentials as auth
0004 
0005 process = cms.Process("ProcessOne")
0006 
0007 process.MessageLogger = cms.Service("MessageLogger",
0008     debugModules = cms.untracked.vstring('*'),
0009     cout = cms.untracked.PSet(
0010         threshold = cms.untracked.string('DEBUG')
0011     ),
0012     destinations = cms.untracked.vstring('cout')
0013 )
0014 
0015 process.source = cms.Source("EmptyIOVSource",
0016     lastValue = cms.uint64(100000000000),
0017     timetype = cms.string('runnumber'),
0018     firstValue = cms.uint64(100000000000),
0019     interval = cms.uint64(1)
0020 )
0021 
0022 process.load("CondCore.CondDB.CondDB_cfi")
0023 
0024 process.CondDB.connect = conddb_init.options.destinationDatabase
0025 if process.CondDB.connect == '':
0026     process.CondDB.connect = 'sqlite_file:EcalADCToGeV.db'
0027 
0028 process.CondDB.DBParameters.authenticationPath = ''
0029 
0030 db_reader_account = 'CMS_ECAL_R'
0031 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
0032 
0033 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0034   process.CondDB, 
0035   logconnect = cms.untracked.string('sqlite_file:log.db'),   
0036   toPut = cms.VPSet(
0037     cms.PSet(
0038       record = cms.string('EcalADCToGeVConstantRcd'),
0039       tag = cms.string('EcalADCToGeV_test')
0040     )
0041   )
0042 )
0043 
0044 process.Test1 = cms.EDAnalyzer("ExTestEcalADCToGeVAnalyzer",
0045   record = cms.string('EcalADCToGeVConstantRcd'),
0046   loggingOn= cms.untracked.bool(True),
0047   IsDestDbCheckedInQueryLog=cms.untracked.bool(True),
0048   SinceAppendMode=cms.bool(True),
0049   Source=cms.PSet(
0050     FileLowField = cms.string('ADCToGeV_Boff.xml'),
0051     FileHighField = cms.string('ADCToGeV_Bon.xml'),
0052     firstRun = cms.string('207149'),
0053     lastRun = cms.string('10000000'),
0054      OnlineDBSID = cms.string(db_service),
0055      OnlineDBUser = cms.string(db_user),
0056      OnlineDBPassword = cms.string( db_pwd ),
0057     LocationSource = cms.string('P5'),
0058     Location = cms.string('P5_Co'),
0059     GenTag = cms.string('GLOBAL'),
0060     RunType = cms.string('COSMICS')
0061   )                            
0062 )
0063 
0064 process.p = cms.Path(process.Test1)