Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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_mc.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('runnumber'),
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_-0.1_-0.1')
0031 #      tag = cms.string('EcalPedestals_-0.3_-0.5')
0032 #      tag = cms.string('EcalPedestals_-0.5_-1')
0033 #      tag = cms.string('EcalPedestals_-1.5_-5')
0034 #      tag = cms.string('EcalPedestals_-1_-3')
0035 #      tag = cms.string('EcalPedestals_-2_-10')
0036 #      tag = cms.string('EcalPedestals_0.1_0.1')
0037 #      tag = cms.string('EcalPedestals_0.3_0.5')
0038 #      tag = cms.string('EcalPedestals_0.5_1')
0039 #      tag = cms.string('EcalPedestals_1.5_5')
0040 #      tag = cms.string('EcalPedestals_1_3')
0041 #      tag = cms.string('EcalPedestals_2_10')
0042       tag = cms.string('EcalPedestals_0_0')
0043     )
0044   )
0045 )
0046 
0047 process.Test1 = cms.EDAnalyzer("ExTestEcalPedestalsAnalyzer",
0048   SinceAppendMode = cms.bool(True),
0049   record = cms.string('EcalPedestalsRcd'),
0050   loggingOn = cms.untracked.bool(True),
0051   Source = cms.PSet(
0052     GenTag = cms.string('***'),
0053     RunTag = cms.string('***'),
0054         OnlineDBUser = cms.string(db_user),
0055         OnlineDBPassword = cms.string(db_pwd),
0056         OnlineDBSID = cms.string(db_service),
0057     Location = cms.string('***'),
0058     LocationSource = cms.string('File'),
0059 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-0.1_-0.1.dat'),
0060 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-0.3_-0.5.dat'),
0061 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-0.5_-1.dat'),
0062 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-1.5_-5.dat'),
0063 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-1_-3.dat'),
0064 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_-2_-10.dat'),
0065 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_0.1_0.1.dat'),
0066 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_0.3_0.5.dat'),
0067 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_0.5_1.dat'),
0068 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_1.5_5.dat'),
0069 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_1_3.dat'),
0070 #    filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_2_10.dat'),
0071     filename = cms.untracked.string('/afs/cern.ch/user/s/shervin/public/forJean/6a9a2818932fce79d8222768ba4f2ad3f60f894c_0_0.dat'),
0072     firstRun = cms.string('1'),
0073     lastRun = cms.string('100000000'),
0074     debug = cms.bool(True)
0075   )
0076 )
0077 
0078 process.p = cms.Path(process.Test1)
0079 
0080