CMS 3D CMS Logo

EcalElecEmulTccOnlyExample_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("EcalSimRawData")
4 #simulation of raw data. Defines the ecalSimRawData module:
5 process.load("SimCalorimetry.EcalElectronicsEmulation.EcalSimRawData_cfi")
6 
7 # Geometry
8 #
9 process.load("Geometry.CMSCommonData.cmsSimIdealGeometryXML_cfi")
10 
11 # Calo geometry service model
12 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
13 
14 # Description of EE trigger tower map
15 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
16 
17 process.source = cms.Source("EmptySource")
18 
19 process.maxEvents = cms.untracked.PSet(
20  # number of events to generate:
21  input = cms.untracked.int32(2)
22 )
23 
24 process.ecalSimpleProducer = cms.EDProducer("EcalSimpleProducer",
25  # string formula = "200+(4<=isample0)*(isample0<=6)*16*(1.)+1<<12"
26  formula = cms.string(''),
27  #TT samples:
28  # TT sample format:
29  # |11 | 10 | 9 - 0 |
30  # |gap|fgvb| Et |
31  # energy set to TT id in first event and then incremented at each event:
32  tpFormula = cms.string('itt0+ievt0'),
33  verbose = cms.untracked.bool(False)
34 )
35 
36 process.p = cms.Path(process.ecalSimpleProducer*process.ecalSimRawData)
37 process.ecalSimRawData.trigPrimProducer = 'ecalSimpleProducer'
38 process.ecalSimRawData.tcpDigiCollection = ''
39 process.ecalSimRawData.tcc2dccData = False
40 process.ecalSimRawData.srp2dccData = False
41 process.ecalSimRawData.fe2dccData = False
42 process.ecalSimRawData.tpVerbose = False
43 
44