Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 11:58:24

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