Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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_beamv4_MC_startup.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.connect = cms.string('oracle://cms_orcoff_prep/CMS_COND_ECAL')
0037 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
0038 
0039 ## to write in sql file:
0040 #process.CondDBCommon.connect = 'sqlite_file:DB_beamv4_sim2010_startup_mc.db'
0041 
0042 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0043     process.CondDBCommon,
0044     messagelevel = cms.untracked.uint32(3),
0045 #    catalog = cms.untracked.string('file:PoolFileCatalog_DB.xml'),
0046     toPut = cms.VPSet(cms.PSet(
0047         record = cms.string('EcalTPGPedestalsRcd'),
0048         tag = cms.string('EcalTPGPedestals_beamv4_sim2010_startup_mc')
0049     ), 
0050         cms.PSet(
0051             record = cms.string('EcalTPGLinearizationConstRcd'),
0052             tag = cms.string('EcalTPGLinearizationConst_beamv4_sim2010_startup_mc')
0053         ), 
0054         cms.PSet(
0055             record = cms.string('EcalTPGSlidingWindowRcd'),
0056             tag = cms.string('EcalTPGSlidingWindow_beamv4_sim2010_startup_mc')
0057         ), 
0058         cms.PSet(
0059             record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0060             tag = cms.string('EcalTPGFineGrainEBIdMap_beamv4_sim2010_startup_mc')
0061         ), 
0062         cms.PSet(
0063             record = cms.string('EcalTPGFineGrainStripEERcd'),
0064             tag = cms.string('EcalTPGFineGrainStripEE_beamv4_sim2010_startup_mc')
0065         ), 
0066         cms.PSet(
0067             record = cms.string('EcalTPGFineGrainTowerEERcd'),
0068             tag = cms.string('EcalTPGFineGrainTowerEE_beamv4_sim2010_startup_mc')
0069         ), 
0070         cms.PSet(
0071             record = cms.string('EcalTPGLutIdMapRcd'),
0072             tag = cms.string('EcalTPGLutIdMap_beamv4_sim2010_startup_mc')
0073         ), 
0074         cms.PSet(
0075             record = cms.string('EcalTPGWeightIdMapRcd'),
0076             tag = cms.string('EcalTPGWeightIdMap_beamv4_sim2010_startup_mc')
0077         ), 
0078         cms.PSet(
0079             record = cms.string('EcalTPGWeightGroupRcd'),
0080             tag = cms.string('EcalTPGWeightGroup_beamv4_sim2010_startup_mc')
0081         ), 
0082         cms.PSet(
0083             record = cms.string('EcalTPGLutGroupRcd'),
0084             tag = cms.string('EcalTPGLutGroup_beamv4_sim2010_startup_mc')
0085         ), 
0086         cms.PSet(
0087             record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0088             tag = cms.string('EcalTPGFineGrainEBGroup_beamv4_sim2010_startup_mc')
0089         ), 
0090         cms.PSet(
0091             record = cms.string('EcalTPGPhysicsConstRcd'),
0092             tag = cms.string('EcalTPGPhysicsConst_beamv4_sim2010_startup_mc')
0093         ))
0094 )
0095 
0096 process.dbCopy = cms.EDAnalyzer("EcalTPGDBCopy",
0097     timetype = cms.string('runnumber'),
0098     toCopy = cms.VPSet(cms.PSet(
0099         record = cms.string('EcalTPGPedestalsRcd'),
0100         container = cms.string('EcalTPGPedestals')
0101     ), 
0102         cms.PSet(
0103             record = cms.string('EcalTPGLinearizationConstRcd'),
0104             container = cms.string('EcalTPGLinearizationConst')
0105         ), 
0106         cms.PSet(
0107             record = cms.string('EcalTPGSlidingWindowRcd'),
0108             container = cms.string('EcalTPGSlidingWindow')
0109         ), 
0110         cms.PSet(
0111             record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0112             container = cms.string('EcalTPGFineGrainEBIdMap')
0113         ), 
0114         cms.PSet(
0115             record = cms.string('EcalTPGFineGrainStripEERcd'),
0116             container = cms.string('EcalTPGFineGrainStripEE')
0117         ), 
0118         cms.PSet(
0119             record = cms.string('EcalTPGFineGrainTowerEERcd'),
0120             container = cms.string('EcalTPGFineGrainTowerEE')
0121         ), 
0122         cms.PSet(
0123             record = cms.string('EcalTPGLutIdMapRcd'),
0124             container = cms.string('EcalTPGLutIdMap')
0125         ), 
0126         cms.PSet(
0127             record = cms.string('EcalTPGWeightIdMapRcd'),
0128             container = cms.string('EcalTPGWeightIdMap')
0129         ), 
0130         cms.PSet(
0131             record = cms.string('EcalTPGWeightGroupRcd'),
0132             container = cms.string('EcalTPGWeightGroup')
0133         ), 
0134         cms.PSet(
0135             record = cms.string('EcalTPGLutGroupRcd'),
0136             container = cms.string('EcalTPGLutGroup')
0137         ), 
0138         cms.PSet(
0139             record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0140             container = cms.string('EcalTPGFineGrainEBGroup')
0141         ), 
0142         cms.PSet(
0143             record = cms.string('EcalTPGPhysicsConstRcd'),
0144             container = cms.string('EcalTPGPhysicsConst')
0145         ))
0146 )
0147 
0148 process.p = cms.Path(process.dbCopy)
0149 
0150 
0151