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_beamv5_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 
0038 process.CondDBCommon.connect = cms.string('sqlite_file:DB_tpg.db')
0039 
0040 process.CondDBCommon.DBParameters.authenticationPath = cms.untracked.string('/nfshome0/popcondev/conddb')
0041 
0042 ## to write in sql file:
0043 #process.CondDBCommon.connect = 'sqlite_file:DB_beamv5_startup_v4_mc.db'
0044 
0045 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0046     process.CondDBCommon,
0047     messagelevel = cms.untracked.uint32(3),
0048 #    catalog = cms.untracked.string('file:PoolFileCatalog_DB.xml'),
0049     toPut = cms.VPSet(cms.PSet(
0050         record = cms.string('EcalTPGPedestalsRcd'),
0051         tag = cms.string('EcalTPGPedestals_test_2011')
0052     ), 
0053         cms.PSet(
0054             record = cms.string('EcalTPGLinearizationConstRcd'),
0055             tag = cms.string('EcalTPGLinearizationConst_test_2011')
0056         ), 
0057         cms.PSet(
0058             record = cms.string('EcalTPGSlidingWindowRcd'),
0059             tag = cms.string('EcalTPGSlidingWindow_test_2011')
0060         ), 
0061         cms.PSet(
0062             record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0063             tag = cms.string('EcalTPGFineGrainEBIdMap_test_2011')
0064         ), 
0065         cms.PSet(
0066             record = cms.string('EcalTPGFineGrainStripEERcd'),
0067             tag = cms.string('EcalTPGFineGrainStripEE_test_2011')
0068         ), 
0069         cms.PSet(
0070             record = cms.string('EcalTPGFineGrainTowerEERcd'),
0071             tag = cms.string('EcalTPGFineGrainTowerEE_test_2011')
0072         ), 
0073         cms.PSet(
0074             record = cms.string('EcalTPGLutIdMapRcd'),
0075             tag = cms.string('EcalTPGLutIdMap_test_2011')
0076         ), 
0077         cms.PSet(
0078             record = cms.string('EcalTPGWeightIdMapRcd'),
0079             tag = cms.string('EcalTPGWeightIdMap_test_2011')
0080         ), 
0081         cms.PSet(
0082             record = cms.string('EcalTPGWeightGroupRcd'),
0083             tag = cms.string('EcalTPGWeightGroup_test_2011')
0084         ), 
0085         cms.PSet(
0086             record = cms.string('EcalTPGLutGroupRcd'),
0087             tag = cms.string('EcalTPGLutGroup_test_2011')
0088         ), 
0089         cms.PSet(
0090             record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0091             tag = cms.string('EcalTPGFineGrainEBGroup_test_2011')
0092         ), 
0093         cms.PSet(
0094             record = cms.string('EcalTPGPhysicsConstRcd'),
0095             tag = cms.string('EcalTPGPhysicsConst_test_2011')
0096         ),
0097     cms.PSet(
0098             record = cms.string('EcalTPGSpikeRcd'),
0099             tag = cms.string('EcalTPGSpike_test_2011')
0100         ),
0101         cms.PSet(
0102             record = cms.string('EcalTPGCrystalStatusRcd'),
0103             tag = cms.string('EcalTPGCrystalStatus_test_2011')
0104         ),
0105         cms.PSet(
0106             record = cms.string('EcalTPGTowerStatusRcd'),
0107             tag = cms.string('EcalTPGTowerStatus_test_2011')
0108         ),
0109         cms.PSet(
0110             record = cms.string('EcalTPGStripStatusRcd'),
0111             tag = cms.string('EcalTPGStripStatus_test_2011')
0112         ))
0113 )
0114 
0115 process.dbCopy = cms.EDAnalyzer("EcalTPGDBCopy",
0116     timetype = cms.string('runnumber'),
0117     toCopy = cms.VPSet(cms.PSet(
0118         record = cms.string('EcalTPGPedestalsRcd'),
0119         container = cms.string('EcalTPGPedestals')
0120     ), 
0121         cms.PSet(
0122             record = cms.string('EcalTPGLinearizationConstRcd'),
0123             container = cms.string('EcalTPGLinearizationConst')
0124         ), 
0125         cms.PSet(
0126             record = cms.string('EcalTPGSlidingWindowRcd'),
0127             container = cms.string('EcalTPGSlidingWindow')
0128         ), 
0129         cms.PSet(
0130             record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0131             container = cms.string('EcalTPGFineGrainEBIdMap')
0132         ), 
0133         cms.PSet(
0134             record = cms.string('EcalTPGFineGrainStripEERcd'),
0135             container = cms.string('EcalTPGFineGrainStripEE')
0136         ), 
0137         cms.PSet(
0138             record = cms.string('EcalTPGFineGrainTowerEERcd'),
0139             container = cms.string('EcalTPGFineGrainTowerEE')
0140         ), 
0141         cms.PSet(
0142             record = cms.string('EcalTPGLutIdMapRcd'),
0143             container = cms.string('EcalTPGLutIdMap')
0144         ), 
0145         cms.PSet(
0146             record = cms.string('EcalTPGWeightIdMapRcd'),
0147             container = cms.string('EcalTPGWeightIdMap')
0148         ), 
0149         cms.PSet(
0150             record = cms.string('EcalTPGWeightGroupRcd'),
0151             container = cms.string('EcalTPGWeightGroup')
0152         ), 
0153         cms.PSet(
0154             record = cms.string('EcalTPGLutGroupRcd'),
0155             container = cms.string('EcalTPGLutGroup')
0156         ), 
0157         cms.PSet(
0158             record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0159             container = cms.string('EcalTPGFineGrainEBGroup')
0160         ), 
0161         cms.PSet(
0162             record = cms.string('EcalTPGPhysicsConstRcd'),
0163             container = cms.string('EcalTPGPhysicsConst')
0164         ),
0165     cms.PSet(
0166             record = cms.string('EcalTPGSpikeRcd'),
0167             container = cms.string('EcalTPGSpike')
0168         ),
0169     cms.PSet(
0170             record = cms.string('EcalTPGCrystalStatusRcd'),
0171             container = cms.string('EcalTPGCrystalStatus')
0172         ),
0173     cms.PSet(
0174             record = cms.string('EcalTPGTowerStatusRcd'),
0175             container = cms.string('EcalTPGTowerStatus')
0176         ),
0177     cms.PSet(
0178             record = cms.string('EcalTPGStripStatusRcd'),
0179             container = cms.string('EcalTPGStripStatus')
0180         ))
0181 )
0182 
0183 process.p = cms.Path(process.dbCopy)
0184 
0185 
0186