00001 import FWCore.ParameterSet.Config as cms
00002
00003 process = cms.Process("EcalTBH4GenSimDigi")
00004
00005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
00006
00007 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
00008
00009 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
00010 saveFileName = cms.untracked.string(''),
00011 generator = cms.PSet(
00012 initialSeed = cms.untracked.uint32(123456789),
00013 engineName = cms.untracked.string('HepJamesRandom')
00014 ),
00015 VtxSmeared = cms.PSet(
00016 initialSeed = cms.untracked.uint32(98765432),
00017 engineName = cms.untracked.string('HepJamesRandom')
00018 ),
00019 g4SimHits = cms.PSet(
00020 initialSeed = cms.untracked.uint32(11),
00021 engineName = cms.untracked.string('HepJamesRandom')
00022 ),
00023 SimEcalTBG4Object = cms.PSet(
00024 initialSeed = cms.untracked.uint32(12),
00025 engineName = cms.untracked.string('HepJamesRandom')
00026 ),
00027 mix = cms.PSet(
00028 initialSeed = cms.untracked.uint32(12345),
00029 engineName = cms.untracked.string('HepJamesRandom')
00030 ),
00031 simEcalUnsuppressedDigis = cms.PSet(
00032 initialSeed = cms.untracked.uint32(1234567),
00033 engineName = cms.untracked.string('HepJamesRandom')
00034 ),
00035 )
00036
00037 process.RandomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
00038
00039
00040 process.maxEvents = cms.untracked.PSet(
00041 input = cms.untracked.int32(1000)
00042 )
00043
00044
00045
00046 process.load("Geometry.EcalTestBeam.TBH4_2007_GeometryIdeal_cfi")
00047
00048
00049
00050 process.load("MagneticField.Engine.uniformMagneticField_cfi")
00051
00052 process.source = cms.Source("EmptySource")
00053
00054
00055 process.load("SimG4CMS.EcalTestBeam.ee_PositionParticleGun_cff")
00056
00057 process.generator = cms.EDProducer("FlatRandomEGunProducer",
00058 PGunParameters = cms.PSet(
00059 process.common_beam_direction_parameters,
00060 PartID = cms.vint32(11),
00061 MinE = cms.double(119.99),
00062 MaxE = cms.double(120.01)
00063 ),
00064 Verbosity = cms.untracked.int32(1),
00065
00066 psethack = cms.string('single electron'),
00067 AddAntiParticle = cms.bool(False),
00068 )
00069
00070 process.ProductionFilterSequence = cms.Sequence(process.generator)
00071
00072 from IOMC.EventVertexGenerators.VtxSmearedParameters_cfi import *
00073
00074
00075
00076
00077
00078 process.VtxSmeared = cms.EDProducer("BeamProfileVtxGenerator",
00079 process.common_beam_direction_parameters,
00080 VtxSmearedCommon,
00081 BeamSigmaX = cms.double(2.4),
00082 BeamSigmaY = cms.double(2.4),
00083 GaussianProfile = cms.bool(False),
00084 BinX = cms.int32(50),
00085 BinY = cms.int32(50),
00086 File = cms.string('beam.profile'),
00087 UseFile = cms.bool(False),
00088 TimeOffset = cms.double(0.)
00089 )
00090
00091
00092
00093 process.load("SimG4Core.Application.g4SimHits_cfi")
00094
00095 process.g4SimHits.UseMagneticField = cms.bool(False)
00096 process.g4SimHits.Physics.DefaultCutValue = 1.
00097 process.g4SimHits.NonBeamEvent = cms.bool(True)
00098 process.g4SimHits.generator.HepMCProductLabel = cms.string('generator')
00099 process.g4SimHits.generator.ApplyPCuts = cms.bool(False)
00100 process.g4SimHits.generator.ApplyEtaCuts = cms.bool(True)
00101 process.g4SimHits.generator.ApplyPhiCuts = cms.bool(False)
00102 process.g4SimHits.generator.MaxEtaCut = cms.double(2.5)
00103 process.g4SimHits.generator.MinEtaCut = cms.double(0.0)
00104 process.g4SimHits.CaloSD.CorrectTOFBeam = cms.bool(True)
00105 process.g4SimHits.CaloSD.BeamPosition = cms.double(-26733.5)
00106 process.g4SimHits.CaloTrkProcessing.TestBeam = cms.bool(True)
00107 process.g4SimHits.StackingAction.MaxTrackTime = cms.double(10000.)
00108 process.g4SimHits.SteppingAction.MaxTrackTime = cms.double(10000.)
00109 process.g4SimHits.CaloSD.TmaxHit = cms.double(10000.)
00110 process.g4SimHits.CaloSD.TmaxHits = cms.vdouble(10000.,10000.,10000.,10000.,10000.)
00111
00112 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
00113 type = cms.string('EcalTBH4Trigger'),
00114 verbose = cms.untracked.bool(False),
00115
00116 trigEvents = cms.untracked.int32(25)
00117 ))
00118
00119
00120
00121
00122 process.SimEcalTBG4Object = cms.EDProducer("EcalTBMCInfoProducer",
00123 process.common_beam_direction_parameters,
00124 CrystalMapFile = cms.FileInPath('Geometry/EcalTestBeam/data/BarrelSM1CrystalCenterElectron120GeV.dat'),
00125 moduleLabelVtx = cms.untracked.string('generator')
00126 )
00127
00128
00129
00130 process.SimEcalTBHodoscope = cms.EDProducer("TBHodoActiveVolumeRawInfoProducer")
00131
00132
00133
00134 process.SimEcalEventHeader = cms.EDProducer("FakeTBEventHeaderProducer",
00135 EcalTBInfoLabel = cms.untracked.string('SimEcalTBG4Object')
00136 )
00137
00138
00139
00140
00141
00142 process.load("SimGeneral.MixingModule.mixNoPU_cfi")
00143
00144
00145
00146 process.load("CalibCalorimetry.EcalTrivialCondModules.EcalTrivialCondRetrieverTB_cfi")
00147
00148
00149
00150 process.load("SimCalorimetry.EcalTestBeam.ecaldigi_testbeam_cfi")
00151 process.simEcalUnsuppressedDigis.doReadout = False
00152
00153
00154
00155 process.output = cms.OutputModule("PoolOutputModule",
00156 outputCommands = cms.untracked.vstring('keep *',
00157 'drop PSimHits_g4SimHits_*_Sim',
00158 'keep PCaloHits_g4SimHits_EcalHitsEE_Sim',
00159 'keep PCaloHits_g4SimHits_CaloHitsTk_Sim',
00160 'keep PCaloHits_g4SimHits_EcalTBH4BeamHits_Sim'),
00161 fileName = cms.untracked.string('ECALH4TB_detsim_digi.root')
00162 )
00163
00164
00165
00166 process.doSimHits = cms.Sequence(process.ProductionFilterSequence*process.VtxSmeared*process.g4SimHits)
00167 process.doSimTB = cms.Sequence(process.SimEcalTBG4Object*process.SimEcalTBHodoscope*process.SimEcalEventHeader)
00168 process.doEcalDigis = cms.Sequence(process.mix*process.simEcalUnsuppressedDigis)
00169 process.p1 = cms.Path(process.doSimHits*process.doSimTB*process.doEcalDigis)
00170 process.outpath = cms.EndPath(process.output)
00171
00172
00173
00174
00175 process.MessageLogger.destinations=cms.untracked.vstring('cout'
00176 ,'cerr'
00177 ,'G4msg'
00178 )
00179 process.MessageLogger.categories=cms.untracked.vstring('FwkJob'
00180 ,'FwkReport'
00181 ,'FwkSummary'
00182 ,'Root_NoDictionary'
00183 ,'TimeReport'
00184 ,'TimeModule'
00185 ,'TimeEvent'
00186 ,'MemoryCheck'
00187 ,'PhysicsList'
00188 ,'G4cout'
00189 ,'G4cerr'
00190 ,'BeamProfileVtxGenerator'
00191 )
00192
00193 process.MessageLogger.debugModules = cms.untracked.vstring('g4SimHits','VtxSmeared')
00194
00195
00196 process.MessageLogger.G4msg = cms.untracked.PSet(
00197 noTimeStamps = cms.untracked.bool(True)
00198
00199 ,threshold = cms.untracked.string('INFO')
00200
00201 ,INFO = cms.untracked.PSet(limit = cms.untracked.int32(0))
00202 ,FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(0))
00203 ,FwkSummary = cms.untracked.PSet(limit = cms.untracked.int32(0))
00204 ,Root_NoDictionary = cms.untracked.PSet(limit = cms.untracked.int32(0))
00205 ,FwkJob = cms.untracked.PSet(limit = cms.untracked.int32(0))
00206 ,TimeReport = cms.untracked.PSet(limit = cms.untracked.int32(0))
00207 ,TimeModule = cms.untracked.PSet(limit = cms.untracked.int32(0))
00208 ,TimeEvent = cms.untracked.PSet(limit = cms.untracked.int32(0))
00209 ,MemoryCheck = cms.untracked.PSet(limit = cms.untracked.int32(0))
00210
00211
00212
00213
00214
00215 ,PhysicsList = cms.untracked.PSet(limit = cms.untracked.int32(-1))
00216 ,G4cout = cms.untracked.PSet(limit = cms.untracked.int32(99999))
00217 ,G4cerr = cms.untracked.PSet(limit = cms.untracked.int32(99999))
00218 ,BeamProfileVtxGenerator = cms.untracked.PSet(limit = cms.untracked.int32(-1))
00219 )
00220
00221
00222
00223 process.options = cms.untracked.PSet(
00224 wantSummary = cms.untracked.bool(True)
00225 )
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236