Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-09 23:35:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CaloTest")
0004 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0005 process.load("Configuration.EventContent.EventContent_cff")
0006 process.load('FWCore.MessageService.MessageLogger_cfi')
0007 process.load("SimG4CMS.CherenkovAnalysis.gun_cff")
0008 process.load("SimG4CMS.CherenkovAnalysis.SingleDREAMXML_cfi")
0009 process.load("Geometry.HcalCommonData.caloSimulationParameters_cff")
0010 process.load('GeneratorInterface.Core.generatorSmeared_cfi')
0011 process.load("SimG4Core.Application.g4SimHits_cfi")
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014     input = cms.untracked.int32(10)
0015 )
0016 
0017 process.TFileService = cms.Service("TFileService",
0018     fileName = cms.string('Cherenkov-e10-a0-ddd.root')
0019 )
0020 
0021 
0022 process.MessageLogger.cerr.FwkReport.reportEvery = 5
0023 if hasattr(process,'MessageLogger'):
0024     process.MessageLogger.EcalSim=dict()
0025     process.MessageLogger.HCalGeom=dict()
0026     process.MessageLogger.CherenkovAnalysis=dict()
0027     process.MessageLogger.SimG4CoreGeometry=dict()
0028 
0029 process.load("IOMC.RandomEngine.IOMC_cff")
0030 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0031 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0032 process.RandomNumberGeneratorService.VtxSmeared.initialSeed = 123456789
0033 
0034 process.load("SimG4CMS.CherenkovAnalysis.cherenkovAnalysis_cfi")
0035 
0036 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits*process.cherenkovAnalysis)
0037 
0038 process.generator.PGunParameters.MinE = 10.0
0039 process.generator.PGunParameters.MaxE = 10.0
0040 process.g4SimHits.UseMagneticField = False
0041 process.g4SimHits.Physics.type = 'SimG4Core/Physics/QGSP_FTFP_BERT_EML'
0042 process.g4SimHits.OnlySDs = ['CaloTrkProcessing', 'DreamSensitiveDetector']
0043 process.g4SimHits.ECalSD = cms.PSet(
0044     TestBeam = cms.untracked.bool(False),
0045     ReadBothSide = cms.untracked.bool(True),
0046     DD4hep = cms.untracked.bool(False),
0047     BirkL3Parametrization = cms.bool(False),
0048     doCherenkov = cms.bool(True),
0049     BirkCut = cms.double(0.1),
0050     BirkC1 = cms.double(0.013),
0051     BirkC3 = cms.double(0.0),
0052     BirkC2 = cms.double(9.6e-06),
0053     SlopeLightYield = cms.double(0.0),
0054     UseBirkLaw = cms.bool(False),
0055     BirkSlope = cms.double(0.253694)
0056 )
0057