00001 import FWCore.ParameterSet.Config as cms 00002 00003 process = cms.Process("ecalSimRawData") 00004 #simulation of raw data. Defines the ecalSimRawData module: 00005 process.load("SimCalorimetry.EcalElectronicsEmulation.EcalSimRawData_cfi") 00006 00007 # Geometry 00008 # 00009 process.load("Geometry.CMSCommonData.cmsSimIdealGeometryXML_cfi") 00010 00011 # Calo geometry service model 00012 process.load("Geometry.CaloEventSetup.CaloGeometry_cff") 00013 00014 # Description of EE trigger tower map 00015 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi") 00016 00017 process.source = cms.Source("EcalSimpleSource", 00018 #number of events to generate: 00019 maxEvents = cms.untracked.int32(2), 00020 # string formula = "200+(4<=isample0)*(isample0<=6)*16*(1.)+1<<12" 00021 formula = cms.string(''), 00022 #TT samples: 00023 # TT sample format: 00024 # |11 | 10 | 9 - 0 | 00025 # |gap|fgvb| Et | 00026 # energy set to TT id in first event and then incremented at each event: 00027 tpFormula = cms.string('itt0+ievt0'), 00028 verbose = cms.untracked.bool(False) 00029 ) 00030 00031 process.p = cms.Path(process.ecalSimRawData) 00032 process.ecalSimRawData.trigPrimProducer = 'source' 00033 process.ecalSimRawData.tcpDigiCollection = '' 00034 process.ecalSimRawData.tcc2dccData = False 00035 process.ecalSimRawData.srp2dccData = False 00036 process.ecalSimRawData.fe2dccData = False 00037 process.ecalSimRawData.tpVerbose = False 00038 00039