Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:38

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