Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-15 04:27:01

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.MessageLogger = cms.Service("MessageLogger",
0006     debugModules = cms.untracked.vstring('*'),
0007     cout = cms.untracked.PSet(
0008         threshold = cms.untracked.string('DEBUG')
0009     ),
0010     destinations = cms.untracked.vstring('cout')
0011 )
0012 
0013 process.source = cms.Source("EmptyIOVSource",
0014     lastValue = cms.uint64(1),
0015     timetype = cms.string('runnumber'),
0016     firstValue = cms.uint64(1),
0017     interval = cms.uint64(1)
0018 )
0019 
0020 process.load("SimCalorimetry.EcalTrigPrimProducers.ecalTrigPrimESProducer_cff")
0021 process.tpparams12 = cms.ESSource("EmptyESSource",
0022     recordName = cms.string('EcalTPGPhysicsConstRcd'),
0023     iovIsRunNotTime = cms.bool(True),
0024     firstValid = cms.vuint32(1)
0025 )
0026 
0027 process.EcalTrigPrimESProducer.DatabaseFile = 'TPG_beamv7.txt.gz'
0028 
0029 from CondCore.CondDB.CondDB_cfi import CondDB
0030 
0031 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0032      CondDB.clone(connect = cms.string("sqlite_file:TPG_beamv7.db")),
0033      timetype = cms.untracked.string("runnumber"),
0034      toPut = cms.VPSet(cms.PSet(
0035         record = cms.string('EcalTPGPedestalsRcd'),
0036         tag = cms.string('EcalTPGPedestals_beamv7')
0037         ),
0038         cms.PSet(
0039             record = cms.string('EcalTPGLinearizationConstRcd'),
0040             tag = cms.string('EcalTPGLinearizationConst_beamv7')
0041         ),
0042         cms.PSet(
0043             record = cms.string('EcalTPGSlidingWindowRcd'),
0044             tag = cms.string('EcalTPGSlidingWindow_beamv7')
0045         ),
0046         cms.PSet(
0047             record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0048             tag = cms.string('EcalTPGFineGrainEBIdMap_beamv7')
0049         ),
0050         cms.PSet(
0051             record = cms.string('EcalTPGFineGrainStripEERcd'),
0052             tag = cms.string('EcalTPGFineGrainStripEE_beamv7')
0053         ),
0054         cms.PSet(
0055             record = cms.string('EcalTPGFineGrainTowerEERcd'),
0056             tag = cms.string('EcalTPGFineGrainTowerEE_beamv7')
0057         ),
0058         cms.PSet(
0059             record = cms.string('EcalTPGLutIdMapRcd'),
0060             tag = cms.string('EcalTPGLutIdMap_beamv7')
0061         ),
0062         cms.PSet(
0063             record = cms.string('EcalTPGWeightIdMapRcd'),
0064             tag = cms.string('EcalTPGWeightIdMap_beamv7')
0065         ),
0066         cms.PSet(
0067             record = cms.string('EcalTPGWeightGroupRcd'),
0068             tag = cms.string('EcalTPGWeightGroup_beamv7')
0069         ),
0070         cms.PSet(
0071             record = cms.string('EcalTPGOddWeightIdMapRcd'),
0072             tag = cms.string('EcalTPGOddWeightIdMap_beamv7')
0073         ),
0074         cms.PSet(
0075             record = cms.string('EcalTPGOddWeightGroupRcd'),
0076             tag = cms.string('EcalTPGOddWeightGroup_beamv7')
0077         ),
0078         cms.PSet(
0079             record = cms.string('EcalTPGTPModeRcd'),
0080             tag = cms.string('EcalTPGTPMode_beamv7')
0081         ),
0082         cms.PSet(
0083             record = cms.string('EcalTPGLutGroupRcd'),
0084             tag = cms.string('EcalTPGLutGroup_beamv7')
0085         ),
0086         cms.PSet(
0087             record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0088             tag = cms.string('EcalTPGFineGrainEBGroup_beamv7')
0089         ),
0090         cms.PSet(
0091             record = cms.string('EcalTPGPhysicsConstRcd'),
0092             tag = cms.string('EcalTPGPhysicsConst_beamv7')
0093         ),
0094     cms.PSet(
0095             record = cms.string('EcalTPGSpikeRcd'),
0096             tag = cms.string('EcalTPGSpike_beamv7')
0097         ),
0098         cms.PSet(
0099             record = cms.string('EcalTPGCrystalStatusRcd'),
0100             tag = cms.string('EcalTPGCrystalStatus_beamv7')
0101         ),
0102         cms.PSet(
0103             record = cms.string('EcalTPGTowerStatusRcd'),
0104             tag = cms.string('EcalTPGTowerStatus_beamv7')
0105         ),
0106         cms.PSet(
0107             record = cms.string('EcalTPGStripStatusRcd'),
0108             tag = cms.string('EcalTPGStripStatus_beamv7')
0109         ))
0110 )
0111 
0112 process.dbCopy = cms.EDAnalyzer("EcalTPGDBCopy",
0113     timetype = cms.string('runnumber'),
0114     toCopy = cms.VPSet(cms.PSet(
0115         record = cms.string('EcalTPGPedestalsRcd'),
0116         container = cms.string('EcalTPGPedestals')
0117     ),
0118         cms.PSet(
0119             record = cms.string('EcalTPGLinearizationConstRcd'),
0120             container = cms.string('EcalTPGLinearizationConst')
0121         ),
0122         cms.PSet(
0123             record = cms.string('EcalTPGSlidingWindowRcd'),
0124             container = cms.string('EcalTPGSlidingWindow')
0125         ),
0126         cms.PSet(
0127             record = cms.string('EcalTPGFineGrainEBIdMapRcd'),
0128             container = cms.string('EcalTPGFineGrainEBIdMap')
0129         ),
0130         cms.PSet(
0131             record = cms.string('EcalTPGFineGrainStripEERcd'),
0132             container = cms.string('EcalTPGFineGrainStripEE')
0133         ),
0134         cms.PSet(
0135             record = cms.string('EcalTPGFineGrainTowerEERcd'),
0136             container = cms.string('EcalTPGFineGrainTowerEE')
0137         ),
0138         cms.PSet(
0139             record = cms.string('EcalTPGLutIdMapRcd'),
0140             container = cms.string('EcalTPGLutIdMap')
0141         ),
0142         cms.PSet(
0143             record = cms.string('EcalTPGWeightIdMapRcd'),
0144             container = cms.string('EcalTPGWeightIdMap')
0145         ),
0146         cms.PSet(
0147             record = cms.string('EcalTPGWeightGroupRcd'),
0148             container = cms.string('EcalTPGWeightGroup')
0149         ),
0150         cms.PSet(
0151             record = cms.string('EcalTPGOddWeightIdMapRcd'),
0152             container = cms.string('EcalTPGOddWeightIdMap')
0153         ),
0154         cms.PSet(
0155             record = cms.string('EcalTPGOddWeightGroupRcd'),
0156             container = cms.string('EcalTPGOddWeightGroup')
0157         ),
0158         cms.PSet(
0159             record = cms.string('EcalTPGTPModeRcd'),
0160             container = cms.string('EcalTPGTPMode')
0161         ),
0162         cms.PSet(
0163             record = cms.string('EcalTPGLutGroupRcd'),
0164             container = cms.string('EcalTPGLutGroup')
0165         ),
0166         cms.PSet(
0167             record = cms.string('EcalTPGFineGrainEBGroupRcd'),
0168             container = cms.string('EcalTPGFineGrainEBGroup')
0169         ),
0170         cms.PSet(
0171             record = cms.string('EcalTPGPhysicsConstRcd'),
0172             container = cms.string('EcalTPGPhysicsConst')
0173         ),
0174     cms.PSet(
0175             record = cms.string('EcalTPGSpikeRcd'),
0176             container = cms.string('EcalTPGSpike')
0177         ),
0178     cms.PSet(
0179             record = cms.string('EcalTPGCrystalStatusRcd'),
0180             container = cms.string('EcalTPGCrystalStatus')
0181         ),
0182     cms.PSet(
0183             record = cms.string('EcalTPGTowerStatusRcd'),
0184             container = cms.string('EcalTPGTowerStatus')
0185         ),
0186     cms.PSet(
0187             record = cms.string('EcalTPGStripStatusRcd'),
0188             container = cms.string('EcalTPGStripStatus')
0189         ))
0190 )
0191 
0192 process.p = cms.Path(process.dbCopy)