Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:51:54

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetriever_cfi")
0005 process.EcalTrivialConditionRetriever.producedEcalSimPulseShape = cms.untracked.bool(True)
0006 process.EcalTrivialConditionRetriever.getSimPulseShapeFromFile = cms.untracked.bool(True) ### if set False hadrdcoded shapes will be loaded by default
0007 
0008 
0009 ### phase I Pulse Shapes
0010 #process.EcalTrivialConditionRetriever.sim_pulse_shape_TI = cms.untracked.double( 1.0)
0011 #process.EcalTrivialConditionRetriever.sim_pulse_shape_EB_thresh = cms.double(0.00013)
0012 #process.EcalTrivialConditionRetriever.sim_pulse_shape_EE_thresh = cms.double(0.00025)
0013 #process.EcalTrivialConditionRetriever.sim_pulse_shape_APD_thresh = cms.double(0)
0014 #process.EcalTrivialConditionRetriever.EBSimPulseShapeFile = cms.untracked.string("EB_SimPulseShape.txt")
0015 #process.EcalTrivialConditionRetriever.EESimPulseShapeFile = cms.untracked.string("EE_SimPulseShape.txt")
0016 #process.EcalTrivialConditionRetriever.APDSimPulseShapeFile = cms.untracked.string("APD_SimPulseShape.txt")
0017 
0018 ### phase II Pulse Shapes
0019 process.EcalTrivialConditionRetriever.sim_pulse_shape_TI = cms.untracked.double(0.250)
0020 process.EcalTrivialConditionRetriever.sim_pulse_shape_EB_thresh = cms.double(0.201244)
0021 process.EcalTrivialConditionRetriever.sim_pulse_shape_EE_thresh = cms.double(0.201244)
0022 process.EcalTrivialConditionRetriever.sim_pulse_shape_APD_thresh = cms.double(0.201244)
0023 process.EcalTrivialConditionRetriever.EBSimPulseShapeFile = cms.untracked.string("EB_SimPulseShape_PhaseII.txt")
0024 process.EcalTrivialConditionRetriever.EESimPulseShapeFile = cms.untracked.string("EB_SimPulseShape_PhaseII.txt")
0025 process.EcalTrivialConditionRetriever.APDSimPulseShapeFile = cms.untracked.string("EB_SimPulseShape_PhaseII.txt")
0026 
0027 
0028 process.load("CondCore.CondDB.CondDB_cfi")
0029 #process.CondDBCommon.connect = 'oracle://cms_orcon_prod/CMS_COND_31X_ECAL'
0030 #process.CondDBCommon.DBParameters.authenticationPath = '/nfshome0/popcondev/conddb'
0031 process.CondDB.connect = 'sqlite_file:DB.db'
0032 
0033 process.MessageLogger = cms.Service("MessageLogger",
0034     cerr = cms.untracked.PSet(
0035         enable = cms.untracked.bool(False)
0036     ),
0037     cout = cms.untracked.PSet(
0038         enable = cms.untracked.bool(True)
0039     ),
0040     debugModules = cms.untracked.vstring('*')
0041 )
0042 
0043 process.source = cms.Source("EmptyIOVSource",
0044   firstValue = cms.uint64(1),
0045   lastValue = cms.uint64(1),
0046   timetype = cms.string('runnumber'),
0047   interval = cms.uint64(1)
0048 )
0049 
0050 process.PoolDBOutputService = cms.Service("PoolDBOutputService",
0051   process.CondDB,
0052   toPut = cms.VPSet(
0053     cms.PSet(
0054       record = cms.string('EcalSimPulseShapeRcd'),
0055       tag = cms.string('EcalSimPulseShape_default_mc')
0056     )
0057   )
0058 )
0059 
0060 process.dbCopy = cms.EDAnalyzer("EcalDBCopy",
0061   timetype = cms.string('runnumber'),
0062   toCopy = cms.VPSet(
0063     cms.PSet(
0064       record = cms.string('EcalSimPulseShapeRcd'),
0065       container = cms.string('EcalSimPulseShape')
0066     )
0067   )
0068 )
0069 
0070 process.prod = cms.EDAnalyzer("EcalTrivialObjectAnalyzer")
0071 
0072 process.p = cms.Path(process.prod*process.dbCopy)