Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-11-22 02:45:26

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("G4PrintGeometry")
0004 
0005 #process.load('Configuration.Geometry.GeometryExtended2015Reco_cff')
0006 process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
0007 #process.load('Configuration.Geometry.GeometryExtended2021Reco_cff')
0008 #process.load('Configuration.Geometry.GeometryExtendedRun4D110Reco_cff')
0009 #process.load('Configuration.Geometry.GeometryExtendedRun4D108Reco_cff')
0010 
0011 from SimG4Core.PrintGeomInfo.g4TestGeometry_cfi import *
0012 process = checkOverlap(process)
0013 
0014 process.MessageLogger.cerr.enable = False
0015 process.MessageLogger.files.Ecal2017 = dict(extension ="info")
0016 
0017 # enable Geant4 overlap check 
0018 process.g4SimHits.CheckGeometry = cms.bool(True)
0019 
0020 # Geant4 geometry check 
0021 process.g4SimHits.G4CheckOverlap.OutputBaseName = cms.string("2017")
0022 #process.g4SimHits.G4CheckOverlap.OutputBaseName = cms.string("Run4D110")
0023 process.g4SimHits.G4CheckOverlap.OverlapFlag = cms.bool(False)
0024 process.g4SimHits.G4CheckOverlap.Tolerance  = cms.double(0.0)
0025 process.g4SimHits.G4CheckOverlap.Resolution = cms.int32(10000)
0026 # tells if NodeName is G4Region or G4PhysicalVolume
0027 process.g4SimHits.G4CheckOverlap.RegionFlag = cms.bool(True)
0028 # list of region names for which overlap check is performed
0029 process.g4SimHits.G4CheckOverlap.NodeNames  = cms.vstring('EcalRegion')
0030 # enable dump gdml file 
0031 process.g4SimHits.G4CheckOverlap.gdmlFlag   = cms.bool(False)
0032 # if defined a G4PhysicsVolume info is printed
0033 process.g4SimHits.G4CheckOverlap.PVname     = ''
0034 # if defined a list of daughter volumes is printed
0035 process.g4SimHits.G4CheckOverlap.LVname     = 'ECAL'
0036 
0037 # extra output files, created if a name is not empty
0038 process.g4SimHits.FileNameField   = ''
0039 process.g4SimHits.FileNameGDML    = ''
0040 process.g4SimHits.FileNameRegions = ''
0041 #