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:CSCChamberTimeCorrections_data_new.db")
0013 process.CondDBCommon.connect = cms.string("sqlite_file:/afs/cern.ch/user/d/deisher/public/test_anode_offsets_mc.db")
0014 #process.CondDBCommon.connect = cms.string("oracle://cms_orcoff_prep/CMS_COND_CSC")
0015 process.CondDBCommon.DBParameters.authenticationPath = '/afs/cern.ch/cms/DB/conddb' 
0016 
0017 process.MessageLogger = cms.Service("MessageLogger",
0018     cerr = cms.untracked.PSet(
0019         enable = cms.untracked.bool(False)
0020     ),
0021     cout = cms.untracked.PSet(
0022         default = cms.untracked.PSet(
0023             limit = cms.untracked.int32(0)
0024         ),
0025         enable = cms.untracked.bool(True)
0026     )
0027 )
0028 
0029 process.source = cms.Source("EmptyIOVSource",
0030     lastValue = cms.uint64(1),
0031     timetype = cms.string('runnumber'),
0032     #change the firstRun if you want a different IOV
0033     firstValue = cms.uint64(1),
0034     interval = cms.uint64(1)
0035 )
0036 
0037 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0038     process.CondDBCommon,
0039     logconnect = cms.untracked.string('sqlite_file:cables.db'),
0040     toPut = cms.VPSet(cms.PSet(
0041         record = cms.string('CSCChamberTimeCorrectionsRcd'),
0042         tag = cms.string('CSCChamberTimeCorrections_testanode')
0043     ))
0044 )
0045 
0046 process.WriteInDB = cms.EDAnalyzer("CSCChamberTimeCorrectionsPopConAnalyzer",
0047     SinceAppendMode = cms.bool(True),
0048     record = cms.string('CSCChamberTimeCorrectionsRcd'),
0049     loggingOn = cms.untracked.bool(True),
0050     Source = cms.PSet(
0051          isForMC = cms.untracked.bool(True)
0052     )
0053 )
0054 
0055 process.p = cms.Path(process.WriteInDB)
0056 
0057