Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-12-10 02:51:09

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD
0004 process = cms.Process('SIM',Run3_DDD)
0005 process.load("Geometry.MuonCommonData.testExtendedGeometry2021XML_cfi")
0006 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cff")
0007 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0008 process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff")
0009 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0010 process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff")
0011 process.load('FWCore.MessageService.MessageLogger_cfi')
0012 
0013 from SimG4Core.PrintGeomInfo.g4TestGeometry_cfi import *
0014 process = checkOverlap(process)
0015 
0016 #if hasattr(process,'MessageLogger'):
0017 #    process.MessageLogger.SimG4CoreGeometry=dict()
0018 
0019 # enable Geant4 overlap check 
0020 process.g4SimHits.CheckGeometry = True
0021 
0022 # Geant4 geometry check 
0023 process.g4SimHits.G4CheckOverlap.OutputBaseName = cms.string("cms2021")
0024 process.g4SimHits.G4CheckOverlap.OverlapFlag = cms.bool(True)
0025 process.g4SimHits.G4CheckOverlap.Tolerance  = cms.double(0.01)
0026 process.g4SimHits.G4CheckOverlap.Resolution = cms.int32(10000)
0027 process.g4SimHits.G4CheckOverlap.Depth      = cms.int32(-1)
0028 # tells if NodeName is G4Region or G4PhysicalVolume
0029 process.g4SimHits.G4CheckOverlap.RegionFlag = cms.bool(False)
0030 # list of names
0031 process.g4SimHits.G4CheckOverlap.NodeNames  = cms.vstring('OCMS')
0032 # enable dump gdml file 
0033 process.g4SimHits.G4CheckOverlap.gdmlFlag   = cms.bool(False)
0034 # if defined a G4PhysicsVolume info is printed
0035 process.g4SimHits.G4CheckOverlap.PVname     = ''
0036 # if defined a list of daughter volumes is printed
0037 process.g4SimHits.G4CheckOverlap.LVname     = ''
0038 
0039 # extra output files, created if a name is not empty
0040 process.g4SimHits.FileNameField   = ''
0041 process.g4SimHits.FileNameGDML    = ''
0042 process.g4SimHits.FileNameRegions = ''
0043 #