Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:29:58

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