Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:22:50

0001 # The following comments couldn't be translated into the new config version:
0002 
0003 # eg to write payload to the oracle database 
0004 #   replace CondDBCommon.connect = "oracle://cms_orcoff_prep/CMS_COND_CSC"
0005 # Database output service
0006 
0007 import FWCore.ParameterSet.Config as cms
0008 
0009 process = cms.Process("ProcessOne")
0010 #PopCon config
0011 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0012 process.CondDBCommon.connect = cms.string("sqlite_file:CSCChamberTimeCorr.db")
0013 #process.CondDBCommon.connect = cms.string("oracle://cms_orcoff_prep/CMS_COND_CSC")
0014 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb'
0015 
0016 process.MessageLogger = cms.Service("MessageLogger",
0017     cerr = cms.untracked.PSet(
0018         enable = cms.untracked.bool(False)
0019     ),
0020     cout = cms.untracked.PSet(
0021         default = cms.untracked.PSet(
0022             limit = cms.untracked.int32(0)
0023         ),
0024         enable = cms.untracked.bool(True)
0025     )
0026 )
0027 
0028 process.source = cms.Source("EmptyIOVSource",
0029     lastValue = cms.uint64(1),
0030     timetype = cms.string('runnumber'),
0031     #change the firstRun if you want a different IOV
0032     firstValue = cms.uint64(1),
0033     interval = cms.uint64(1)
0034 )
0035 
0036 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0037     process.CondDBCommon,
0038     logconnect = cms.untracked.string('sqlite_file:cables.db'),
0039     toPut = cms.VPSet(cms.PSet(
0040         record = cms.string('CSCChamberTimeCorrectionsRcd'),
0041         tag = cms.string('CSCChamberTimeCorrections')
0042     ))
0043 )
0044 
0045 process.WriteInDB = cms.EDAnalyzer("CSCChamberTimeCorrectionsPopConAnalyzer",
0046     SinceAppendMode = cms.bool(True),
0047     record = cms.string('CSCChamerTimeCorrectionsRcd'),
0048     loggingOn = cms.untracked.bool(True),
0049     Source = cms.PSet(
0050 
0051     )
0052 )
0053 
0054 process.p = cms.Path(process.WriteInDB)
0055 
0056