Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:37

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 # Database output service
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("ProcessOne")
0008 #PopCon config
0009 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0010 process.CondDBCommon.connect = cms.string("sqlite_file:DBChipSpeedCorrection_data_test.db")
0011 #process.CondDBCommon.connect = cms.string("sqlite_file:CSC_chip_and_chamber_time_corr_MC.db")
0012 #process.CondDBCommon.connect = cms.string("oracle://cms_orcoff_prep/CMS_COND_CSC")
0013 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb'
0014 
0015 process.MessageLogger = cms.Service("MessageLogger",
0016     cerr = cms.untracked.PSet(
0017         enable = cms.untracked.bool(False)
0018     ),
0019     cout = cms.untracked.PSet(
0020         default = cms.untracked.PSet(
0021             limit = cms.untracked.int32(0)
0022         ),
0023         enable = cms.untracked.bool(True)
0024     )
0025 )
0026 
0027 process.source = cms.Source("EmptyIOVSource",
0028     lastValue = cms.uint64(1),
0029     timetype = cms.string('runnumber'),
0030     #change the firstRun if you want a different IOV
0031     firstValue = cms.uint64(1),
0032     interval = cms.uint64(1)
0033 )
0034 
0035 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0036     process.CondDBCommon,
0037     logconnect = cms.untracked.string('sqlite_file:gainslog.db'),
0038     toPut = cms.VPSet(cms.PSet(
0039         record = cms.string('CSCDBChipSpeedCorrectionRcd'),
0040         tag = cms.string('CSCDBChipSpeedCorrection') 
0041     ))
0042 )
0043 
0044 process.WriteChipSpeedCorrectionWithPopCon = cms.EDAnalyzer("CSCDBChipSpeedCorrectionPopConAnalyzer",
0045     SinceAppendMode = cms.bool(True),
0046     record = cms.string('CSCDBChipSpeedCorrectionRcd'),
0047     loggingOn = cms.untracked.bool(True),
0048     Source = cms.PSet(
0049          # File supplied by S. Durkin 11 May 2010
0050          dataCorrFileName= cms.untracked.string("/afs/cern.ch/user/d/deisher/public/TimingCorrections2009/CathodeTimingCorrection_11May2010.txt"),
0051          isForMC = cms.untracked.bool(False)
0052     )
0053 )
0054 
0055 process.p = cms.Path(process.WriteChipSpeedCorrectionWithPopCon)
0056 #process.CondDBCommon.connect = 'oracle://cms_orcoff_prep/CMS_COND_CSC'
0057 
0058 
0059