Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 import CondTools.Ecal.db_credentials as auth
0003 
0004 process = cms.Process("ProcessOne")
0005 process.load("CondCore.CondDB.CondDB_cfi")
0006 process.CondDB.connect = 'sqlite_file:EcalPedestals_tree.db'
0007 
0008 process.MessageLogger = cms.Service("MessageLogger",
0009   debugModules = cms.untracked.vstring('*'),
0010   destinations = cms.untracked.vstring('cout')
0011 )
0012 
0013 process.source = cms.Source("EmptyIOVSource",
0014   firstValue = cms.uint64(1),
0015   lastValue = cms.uint64(1),
0016   timetype = cms.string('timestamp'),
0017   interval = cms.uint64(1)
0018 )
0019 
0020 db_reader_account = 'CMS_ECAL_R'
0021 db_service,db_user,db_pwd = auth.get_db_credentials( db_reader_account )
0022 
0023 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0024   process.CondDB,
0025   logconnect = cms.untracked.string('sqlite_file:DBLog.db'),
0026   timetype = cms.untracked.string('runnumber'),
0027   toPut = cms.VPSet(
0028     cms.PSet(
0029       record = cms.string('EcalPedestalsRcd'),
0030       tag = cms.string('EcalPedestals_laser_2016')
0031     )
0032   )
0033 )
0034 
0035 process.Test1 = cms.EDAnalyzer("ExTestEcalPedestalsAnalyzer",
0036   SinceAppendMode = cms.bool(True),
0037   record = cms.string('EcalPedestalsRcd'),
0038   loggingOn = cms.untracked.bool(True),
0039   Source = cms.PSet(
0040     GenTag = cms.string('***'),
0041     RunTag = cms.string('***'),
0042      OnlineDBSID = cms.string(db_service),
0043      OnlineDBUser = cms.string(db_user),
0044      OnlineDBPassword = cms.string( db_pwd ),
0045     Location = cms.string('***'),
0046     LocationSource = cms.string('Tree'),
0047     filename = cms.untracked.string('/afs/cern.ch/work/d/depasse/data/ana_ped_v3.root'),
0048     firstRun = cms.string('285550'),
0049     lastRun = cms.string('100000000'),
0050     debug = cms.bool(True),
0051     RunType = cms.untracked.int32(1)
0052   )
0053 )
0054 
0055 process.p = cms.Path(process.Test1)
0056 
0057