CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/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 "source" if the digis
00024 # are produced by the EcalSimpleSource module, keep the default value
00025 # otherwise:
00026 #replace EcalSimRawData.unsuppressedDigiProducer = "source"
00027 # Set EcalSimRawData.trigPrimProducer to "source" if the TP digis
00028 # are produced by the EcalSimpleSource module, keep the default value
00029 # otherwise:
00030 #replace EcalSimRawData.trigPrimProducer = "source"
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("EcalSimpleSource",
00045     # number of events to generate:
00046     maxEvents = cms.untracked.int32(1),
00047     #xtal channel digis. Set to empty string for no digis.
00048     # some realistic shape. Gain 12 (ID=1, see 1<<12). Every crystals with a 
00049     # 160 ADC count amplitude above a 200 ADC count baseline. 
00050     # 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"
00051     formula = cms.string(''),
00052     # sim hits. Set to empty string for no sim hit.
00053     # Pattern example with energy set to (eta index in EB)*10MeV in first event 
00054     # and then incremented by 10MeV at each event:
00055     simHitFormula = cms.string('(ieta0+ievt0)/100.'),
00056     #TT samples. Set to empy string for no TP digis.
00057     #  TT sample format:
00058     #        | 10 |    9 - 0    |
00059     #        |fgvb|      Et     |
00060     # Pattern example with energy set to TT id within SM in first event and then 
00061     # incremented at each event:
00062     # string tpFormula = "max(1023, itt0+ievt0)"
00063     tpFormula = cms.string(''),
00064     #verbosity switch:
00065     verbose = cms.untracked.bool(False)
00066 )
00067 
00068 process.EcalTrivialConditionRetriever = cms.ESSource("EcalTrivialConditionRetriever")
00069 
00070 process.out = cms.OutputModule("PoolOutputModule",
00071     fileName = cms.untracked.string('file:toto.root')
00072 )
00073 
00074 process.p = cms.Path(process.mix*process.simEcalUnsuppressedDigis*process.simEcalTriggerPrimitiveDigis*process.simEcalDigis*process.EcalSimRawData)
00075 process.fine = cms.EndPath(process.out)
00076 process.simEcalTriggerPrimitiveDigis.Label = 'simEcalUnsuppressedDigis'
00077 process.simEcalTriggerPrimitiveDigis.InstanceEB = ''
00078 process.simEcalTriggerPrimitiveDigis.InstanceEE = ''
00079 process.ecalTriggerPrimitiveDigis.TcpOutput = True
00080 process.simEcalDigis.dumpFlags = 10
00081 process.simEcalDigis.trigPrimBypass = False
00082 process.simEcalDigis.writeSrFlags = True
00083 
00084