CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_6_2_5/src/SimCalorimetry/EcalElectronicsEmulation/python/EcalElecEmulExample_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("EcalSimRawData")
00004 #
00005 #
00006 #
00007 # Digitization
00008 #
00009 process.load("Configuration.StandardSequences.Digi_cff")
00010 
00011 process.load("Configuration.StandardSequences.MixingNoPileUp_cff")
00012 
00013 # TPG: defines the ecalTriggerPrimitiveDigis module
00014 process.load("SimCalorimetry.EcalTrigPrimProducers.ecalTriggerPrimitiveDigis_cfi")
00015 
00016 #
00017 #
00018 #
00019 # Simulation of raw data. Defines the EcalSimRawData module:
00020 #
00021 process.load("SimCalorimetry.EcalElectronicsEmulation.EcalSimRawData_cfi")
00022 
00023 # Set EcalSimRawData.unsuppressedDigiProducer to "EcalSimpleProducer" if the digis
00024 # are produced by the EcalSimpleProducer module, keep the default value
00025 # otherwise:
00026 #replace EcalSimRawData.unsuppressedDigiProducer = "EcalSimpleProducer"
00027 # Set EcalSimRawData.trigPrimProducer to "EcalSimpleProducer" if the TP digis
00028 # are produced by the EcalSimpleProducer module, keep the default value
00029 # otherwise:
00030 #replace EcalSimRawData.trigPrimProducer = "EcalSimpleProducer"
00031 #
00032 #
00033 #
00034 # Geometry
00035 #
00036 process.load("Geometry.CMSCommonData.cmsSimIdealGeometryXML_cfi")
00037 
00038 # Calo Geometry service model
00039 process.load("Geometry.CaloEventSetup.CaloGeometry_cff")
00040 
00041 # Description of EE trigger tower map
00042 process.load("Geometry.CaloEventSetup.EcalTrigTowerConstituents_cfi")
00043 
00044 process.source = cms.Source("EmptySource")
00045 
00046 process.maxEvents = cms.untracked.PSet(
00047     # number of events to generate:
00048     input = cms.untracked.int32(1)
00049 )
00050 
00051 process.EcalSimpleProducer = cms.EDProducer("EcalSimpleProducer",
00052     #xtal channel digis. Set to empty string for no digis.
00053     # some realistic shape. Gain 12 (ID=1, see 1<<12). Every crystals with a 
00054     # 160 ADC count amplitude above a 200 ADC count baseline. 
00055     # string formula = "min(4095.,200+160.*((isample0==3)*.01+(isample0==4)*.76+(isample0==5)*1.+(isample0==6)*.89+(isample0==7)*.67+(isample0==8)*.47+(isample0==9)*.32))+1<<12"
00056     formula = cms.string(''),
00057     # sim hits. Set to empty string for no sim hit.
00058     # Pattern example with energy set to (eta index in EB)*10MeV in first event 
00059     # and then incremented by 10MeV at each event:
00060     simHitFormula = cms.string('(ieta0+ievt0)/100.'),
00061     #TT samples. Set to empy string for no TP digis.
00062     #  TT sample format:
00063     #        | 10 |    9 - 0    |
00064     #        |fgvb|      Et     |
00065     # Pattern example with energy set to TT id within SM in first event and then 
00066     # incremented at each event:
00067     # string tpFormula = "max(1023, itt0+ievt0)"
00068     tpFormula = cms.string(''),
00069     #verbosity switch:
00070     verbose = cms.untracked.bool(False)
00071 )
00072 
00073 process.EcalTrivialConditionRetriever = cms.ESSource("EcalTrivialConditionRetriever")
00074 
00075 process.out = cms.OutputModule("PoolOutputModule",
00076     fileName = cms.untracked.string('file:toto.root')
00077 )
00078 
00079 process.p = cms.Path(process.EcalSimpleProducer*process.mix*process.simEcalUnsuppressedDigis*process.simEcalTriggerPrimitiveDigis*process.simEcalDigis*process.EcalSimRawData)
00080 process.fine = cms.EndPath(process.out)
00081 process.simEcalTriggerPrimitiveDigis.Label = 'simEcalUnsuppressedDigis'
00082 process.simEcalTriggerPrimitiveDigis.InstanceEB = ''
00083 process.simEcalTriggerPrimitiveDigis.InstanceEE = ''
00084 process.ecalTriggerPrimitiveDigis.TcpOutput = True
00085 process.simEcalDigis.dumpFlags = 10
00086 process.simEcalDigis.trigPrimBypass = False
00087 process.simEcalDigis.writeSrFlags = True
00088 
00089