Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-05-21 03:38:55

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Phase2C11_cff import Phase2C11
0003 
0004 process = cms.Process("OverlapTest",Phase2C11)
0005 
0006 process.load('Geometry.HGCalCommonData.testHGCalV16XML_cfi')
0007 
0008 process.load('FWCore.MessageService.MessageLogger_cfi')
0009 
0010 if hasattr(process,'MessageLogger'):
0011     process.MessageLogger.SimG4CoreGeometry=dict()
0012     process.MessageLogger.HGCalGeom=dict()
0013 
0014 from SimG4Core.PrintGeomInfo.g4TestGeometry_cfi import *
0015 process = checkOverlap(process)
0016 
0017 # enable Geant4 overlap check 
0018 process.g4SimHits.CheckGeometry = True
0019 #process.g4SimHits.OnlySDs = ['CaloTrkProcessing', 'HGCSensitiveDetector', 'HGCalSensitiveDetector', 'HGCScintillatorSensitiveDetector']
0020 
0021 # Geant4 geometry check 
0022 process.g4SimHits.G4CheckOverlap.OutputBaseName = "hgcal"
0023 process.g4SimHits.G4CheckOverlap.OverlapFlag = True
0024 process.g4SimHits.G4CheckOverlap.Tolerance  = 0.01
0025 process.g4SimHits.G4CheckOverlap.Resolution = 10000
0026 process.g4SimHits.G4CheckOverlap.Depth      = -1
0027 # tells if NodeName is G4Region or G4PhysicalVolume
0028 process.g4SimHits.G4CheckOverlap.RegionFlag = False
0029 # list of names
0030 process.g4SimHits.G4CheckOverlap.NodeNames  = ['OCMS']
0031 # enable dump gdml file 
0032 process.g4SimHits.G4CheckOverlap.gdmlFlag   = False
0033 # if defined a G4PhysicsVolume info is printed
0034 process.g4SimHits.G4CheckOverlap.PVname     = ''
0035 # if defined a list of daughter volumes is printed
0036 process.g4SimHits.G4CheckOverlap.LVname     = ''
0037 
0038 # extra output files, created if a name is not empty
0039 process.g4SimHits.FileNameField   = ''
0040 process.g4SimHits.FileNameGDML    = ''
0041 process.g4SimHits.FileNameRegions = ''
0042 #