Back to home page

Project CMSSW displayed by LXR

 
 

    


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

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