Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     cerr = cms.untracked.PSet(
0007         enable = cms.untracked.bool(False)
0008     ),
0009     cout = cms.untracked.PSet(
0010         enable = cms.untracked.bool(True),
0011         threshold = cms.untracked.string('DEBUG')
0012     ),
0013     debugModules = cms.untracked.vstring('*')
0014 )
0015 
0016 process.source = cms.Source("EmptyIOVSource",
0017     lastValue = cms.uint64(1),
0018     timetype = cms.string('runnumber'),
0019     firstValue = cms.uint64(1),
0020     interval = cms.uint64(1)
0021 )
0022 
0023 process.load("SimCalorimetry.EcalTrigPrimProducers.ecalTrigPrimESProducer_cff")
0024 process.tpparams12 = cms.ESSource("EmptyESSource",
0025     recordName = cms.string('EcalTPGPhysicsConstRcd'),
0026     iovIsRunNotTime = cms.bool(True),
0027     firstValid = cms.vuint32(1)
0028 )
0029 
0030 process.EcalTrigPrimESProducer.DatabaseFile = 'TPG_beamv0.txt.gz'
0031 
0032 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0033 
0034 ## to write in offline DB:
0035 process.CondDBCommon.connect = cms.string('oracle://cms_orcon_prod/CMS_COND_34X_ECAL')
0036 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/xiezhen/conddb')
0037 
0038 ## to write in sql file:
0039 #process.CondDBCommon.connect = 'sqlite_file:DB_beamv0beamv0.db'
0040 
0041 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0042     process.CondDBCommon,
0043     messagelevel = cms.untracked.uint32(3),
0044     catalog = cms.untracked.string('file:PoolFileCatalog_DB.xml'),
0045     toPut = cms.VPSet(cms.PSet(
0046         record = cms.string('EcalTPGPedestalsRcd'),
0047         tag = cms.string('EcalTPGPedestals_beamv0')
0048     ), 
0049         cms.PSet(
0050             record = cms.string('EcalTPGLinearizationConstRcd'),
0051             tag = cms.string('EcalTPGLinearizationConst_beamv0')
0052         ), 
0053         cms.PSet(
0054             record = cms.string('EcalTPGSlidingWindowRcd'),
0055             tag = cms.string('EcalTPGSlidingWindow_beamv0')
0056         ), 
0057         cms.PSet(
0058             record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0059             tag = cms.string('EcalTPGFineGrainEBIdMap_beamv0')
0060         ), 
0061         cms.PSet(
0062             record = cms.string('EcalTPGFineGrainStripEERcd'),
0063             tag = cms.string('EcalTPGFineGrainStripEE_beamv0')
0064         ), 
0065         cms.PSet(
0066             record = cms.string('EcalTPGFineGrainTowerEERcd'),
0067             tag = cms.string('EcalTPGFineGrainTowerEE_beamv0')
0068         ), 
0069         cms.PSet(
0070             record = cms.string('EcalTPGLutIdMapRcd'),
0071             tag = cms.string('EcalTPGLutIdMap_beamv0')
0072         ), 
0073         cms.PSet(
0074             record = cms.string('EcalTPGWeightIdMapRcd'),
0075             tag = cms.string('EcalTPGWeightIdMap_beamv0')
0076         ), 
0077         cms.PSet(
0078             record = cms.string('EcalTPGWeightGroupRcd'),
0079             tag = cms.string('EcalTPGWeightGroup_beamv0')
0080         ), 
0081         cms.PSet(
0082             record = cms.string('EcalTPGLutGroupRcd'),
0083             tag = cms.string('EcalTPGLutGroup_beamv0')
0084         ), 
0085         cms.PSet(
0086             record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0087             tag = cms.string('EcalTPGFineGrainEBGroup_beamv0')
0088         ), 
0089         cms.PSet(
0090             record = cms.string('EcalTPGPhysicsConstRcd'),
0091             tag = cms.string('EcalTPGPhysicsConst_beamv0')
0092         ))
0093 )
0094 
0095 process.dbCopy = cms.EDAnalyzer("EcalTPGDBCopy",
0096     timetype = cms.string('runnumber'),
0097     toCopy = cms.VPSet(cms.PSet(
0098         record = cms.string('EcalTPGPedestalsRcd'),
0099         container = cms.string('EcalTPGPedestals')
0100     ), 
0101         cms.PSet(
0102             record = cms.string('EcalTPGLinearizationConstRcd'),
0103             container = cms.string('EcalTPGLinearizationConst')
0104         ), 
0105         cms.PSet(
0106             record = cms.string('EcalTPGSlidingWindowRcd'),
0107             container = cms.string('EcalTPGSlidingWindow')
0108         ), 
0109         cms.PSet(
0110             record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0111             container = cms.string('EcalTPGFineGrainEBIdMap')
0112         ), 
0113         cms.PSet(
0114             record = cms.string('EcalTPGFineGrainStripEERcd'),
0115             container = cms.string('EcalTPGFineGrainStripEE')
0116         ), 
0117         cms.PSet(
0118             record = cms.string('EcalTPGFineGrainTowerEERcd'),
0119             container = cms.string('EcalTPGFineGrainTowerEE')
0120         ), 
0121         cms.PSet(
0122             record = cms.string('EcalTPGLutIdMapRcd'),
0123             container = cms.string('EcalTPGLutIdMap')
0124         ), 
0125         cms.PSet(
0126             record = cms.string('EcalTPGWeightIdMapRcd'),
0127             container = cms.string('EcalTPGWeightIdMap')
0128         ), 
0129         cms.PSet(
0130             record = cms.string('EcalTPGWeightGroupRcd'),
0131             container = cms.string('EcalTPGWeightGroup')
0132         ), 
0133         cms.PSet(
0134             record = cms.string('EcalTPGLutGroupRcd'),
0135             container = cms.string('EcalTPGLutGroup')
0136         ), 
0137         cms.PSet(
0138             record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0139             container = cms.string('EcalTPGFineGrainEBGroup')
0140         ), 
0141         cms.PSet(
0142             record = cms.string('EcalTPGPhysicsConstRcd'),
0143             container = cms.string('EcalTPGPhysicsConst')
0144         ))
0145 )
0146 
0147 process.p = cms.Path(process.dbCopy)
0148 
0149 
0150