Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:30:06

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Modifier_h2tb_cff import h2tb
0003 
0004 process = cms.Process("PROD", h2tb)
0005 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0006 
0007 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0008 
0009 process.load("SimG4CMS.HcalTestBeam.TB2002GeometryXML_cfi")
0010 process.load("Geometry.HcalTestBeamData.hcalDDDSimConstants_cff")
0011 process.load('GeneratorInterface.Core.generatorSmeared_cfi')
0012 process.load("Configuration.EventContent.EventContent_cff")
0013 
0014 process.load("SimG4Core.Application.g4SimHits_cfi")
0015 
0016 process.TFileService = cms.Service("TFileService",
0017     fileName = cms.string('hcaltb02.root')
0018 )
0019 
0020 process.load('FWCore.MessageService.MessageLogger_cfi')
0021 if hasattr(process,'MessageLogger'):
0022     process.MessageLogger.HcalTBSim=dict()
0023     process.MessageLogger.VertexGenerator=dict()
0024 
0025 process.load("IOMC.RandomEngine.IOMC_cff")
0026 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0027 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0028 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0029 
0030 process.common_beam_direction_parameters = cms.PSet(
0031     MinEta       = cms.double(0.7397),
0032     MaxEta       = cms.double(0.7397),
0033     MinPhi       = cms.double(6.23955),
0034     MaxPhi       = cms.double(6.23955),
0035     BeamPosition = cms.double(0.0)
0036 )
0037 
0038 process.maxEvents = cms.untracked.PSet(
0039     input = cms.untracked.int32(100)
0040 )
0041 
0042 process.source = cms.Source("EmptySource",
0043     firstRun   = cms.untracked.uint32(1),
0044     firstEvent = cms.untracked.uint32(1)
0045 )
0046 
0047 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0048     PGunParameters = cms.PSet(
0049         process.common_beam_direction_parameters,
0050         MinE   = cms.double(19.99),
0051         MaxE   = cms.double(20.01),
0052         PartID = cms.vint32(211)
0053     ),
0054     Verbosity       = cms.untracked.int32(0),
0055     AddAntiParticle = cms.bool(False)
0056 )
0057 
0058 process.o1 = cms.OutputModule("PoolOutputModule",
0059     process.FEVTSIMEventContent,
0060     fileName = cms.untracked.string('sim2002.root')
0061 )
0062 
0063 process.Tracer = cms.Service("Tracer")
0064 
0065 process.Timing = cms.Service("Timing")
0066 
0067 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits)
0068 process.outpath = cms.EndPath(process.o1)
0069 process.VtxSmeared.MeanX = -420.0
0070 process.VtxSmeared.MeanY = 18.338
0071 process.VtxSmeared.MeanZ = -340.11
0072 process.VtxSmeared.SigmaX = 0.000001
0073 process.VtxSmeared.SigmaY = 0.000001
0074 process.VtxSmeared.SigmaZ = 0.000001
0075 process.g4SimHits.NonBeamEvent = True
0076 process.g4SimHits.UseMagneticField = False
0077 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0078 process.g4SimHits.OnlySDs = ['CaloTrkProcessing',
0079                              'HcalTB02SensitiveDetector']
0080 process.g4SimHits.CaloSD.EminHits = [0.0,0.0,0.0,0.0]
0081 process.g4SimHits.CaloSD.TmaxHits = [1000.0,1000.0,1000.0,1000.0]
0082 process.g4SimHits.CaloSD.UseMap = True
0083 process.g4SimHits.HCalSD.ForTBH2 = True
0084 process.g4SimHits.CaloTrkProcessing.TestBeam = True
0085 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0086     type = cms.string('HcalTB02Analysis'),
0087     HcalTB02Analysis = cms.PSet(
0088         Names           = cms.vstring('HcalHits', 'EcalHitsEB'),
0089         HcalClusterOnly = cms.untracked.bool(False),
0090         Verbose         = cms.untracked.bool(True)
0091     )
0092 ))
0093