Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-01-10 06:13:58

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("G4PrintGeometry")
0004 
0005 process.load("Geometry.ForwardCommonData.testForwardXML_cfi")
0006 process.load('FWCore.MessageService.MessageLogger_cfi')
0007 
0008 if 'MessageLogger' in process.__dict__:
0009     process.MessageLogger.SimG4CoreApplication=dict()
0010     process.MessageLogger.G4cout=dict()
0011     process.MessageLogger.ForwardGeom=dict()
0012 
0013 from SimG4Core.PrintGeomInfo.g4TestGeometry_cfi import *
0014 process = checkOverlap(process)
0015 
0016 # enable Geant4 overlap check 
0017 process.g4SimHits.CheckGeometry = True
0018 
0019 # Geant4 geometry check 
0020 process.g4SimHits.G4CheckOverlap.OutputBaseName = cms.string("forward")
0021 process.g4SimHits.G4CheckOverlap.OverlapFlag = cms.bool(True)
0022 process.g4SimHits.G4CheckOverlap.Tolerance  = cms.double(0.0)
0023 process.g4SimHits.G4CheckOverlap.Resolution = cms.int32(10000)
0024 # tells if NodeName is G4Region or G4PhysicalVolume
0025 process.g4SimHits.G4CheckOverlap.RegionFlag = cms.bool(False)
0026 # list of names
0027 process.g4SimHits.G4CheckOverlap.NodeNames  = cms.vstring('CMSE')
0028 # enable dump gdml file 
0029 process.g4SimHits.G4CheckOverlap.gdmlFlag   = cms.bool(False)
0030 # if defined a G4PhysicsVolume info is printed
0031 process.g4SimHits.G4CheckOverlap.PVname     = ''
0032 # if defined a list of daughter volumes is printed
0033 process.g4SimHits.G4CheckOverlap.LVname     = ''
0034 
0035 # extra output files, created if a name is not empty
0036 process.g4SimHits.FileNameField   = ''
0037 process.g4SimHits.FileNameGDML    = ''
0038 process.g4SimHits.FileNameRegions = ''
0039 #
0040 process.g4SimHits.OnlySDs = cms.vstring('ZdcSensitiveDetector', 'TotemT2ScintSensitiveDetector', 'TotemSensitiveDetector', 'BCM1FSensitiveDetector', 'BHMSensitiveDetector', 'PLTSensitiveDetector')