-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35015 from bsunanda/Run3-sim104
Run3-sim104 Update the tools to investigate geometry setups
- Loading branch information
Showing
4 changed files
with
128 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
SimG4Core/PrintGeomInfo/test/python/g4OverlapCheckBigXML_cfg.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Configuration.Eras.Era_Run3_cff import Run3 | ||
process = cms.Process('SIM',Run3) | ||
process.load('SimG4Core.PrintGeomInfo.cmsExtendedGeometry2021_cfi') | ||
process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cff") | ||
process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff") | ||
process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff") | ||
process.load("Geometry.HcalCommonData.hcalDDDRecConstants_cfi") | ||
process.load("Geometry.MuonNumbering.muonGeometryConstants_cff") | ||
process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff") | ||
|
||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
|
||
#if hasattr(process,'MessageLogger'): | ||
# process.MessageLogger.HCalGeom=dict() | ||
|
||
from SimG4Core.PrintGeomInfo.g4TestGeometry_cfi import * | ||
process = checkOverlap(process) | ||
|
||
# enable Geant4 overlap check | ||
process.g4SimHits.CheckGeometry = True | ||
|
||
# Geant4 geometry check | ||
process.g4SimHits.G4CheckOverlap.OutputBaseName = cms.string("cms2021") | ||
process.g4SimHits.G4CheckOverlap.OverlapFlag = cms.bool(True) | ||
process.g4SimHits.G4CheckOverlap.Tolerance = cms.double(0.1) | ||
process.g4SimHits.G4CheckOverlap.Resolution = cms.int32(10000) | ||
process.g4SimHits.G4CheckOverlap.Depth = cms.int32(-1) | ||
# tells if NodeName is G4Region or G4PhysicalVolume | ||
process.g4SimHits.G4CheckOverlap.RegionFlag = cms.bool(False) | ||
# list of names | ||
process.g4SimHits.G4CheckOverlap.NodeNames = cms.vstring('OCMS') | ||
# enable dump gdml file | ||
process.g4SimHits.G4CheckOverlap.gdmlFlag = cms.bool(False) | ||
# if defined a G4PhysicsVolume info is printed | ||
process.g4SimHits.G4CheckOverlap.PVname = '' | ||
# if defined a list of daughter volumes is printed | ||
process.g4SimHits.G4CheckOverlap.LVname = '' | ||
|
||
# extra output files, created if a name is not empty | ||
process.g4SimHits.FileNameField = '' | ||
process.g4SimHits.FileNameGDML = '' | ||
process.g4SimHits.FileNameRegions = '' | ||
# |
47 changes: 47 additions & 0 deletions
47
SimG4Core/PrintGeomInfo/test/python/g4OverlapCheckBigXMLdd4hep_cfg.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep | ||
process = cms.Process('G4PrintGeometry',Run3_dd4hep) | ||
process.load("Configuration.Geometry.GeometryDD4hep_cff") | ||
process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cff") | ||
process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff") | ||
process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff") | ||
process.load("Geometry.HcalCommonData.hcalDDDRecConstants_cfi") | ||
process.load("Geometry.MuonNumbering.muonGeometryConstants_cff") | ||
process.load("Geometry.MuonNumbering.muonOffsetESProducer_cff") | ||
|
||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
|
||
#if hasattr(process,'MessageLogger'): | ||
# process.MessageLogger.HCalGeom=dict() | ||
|
||
from SimG4Core.PrintGeomInfo.g4TestGeometry_cfi import * | ||
process = checkOverlap(process) | ||
|
||
# enable Geant4 overlap check | ||
process.g4SimHits.CheckGeometry = True | ||
|
||
process.DDDetectorESProducer.confGeomXMLFiles = cms.FileInPath("SimG4Core/PrintGeomInfo/data/dd4hep/cmsExtendedGeometry2021.xml") | ||
|
||
# Geant4 geometry check | ||
process.g4SimHits.G4CheckOverlap.OutputBaseName = cms.string("cms2021") | ||
process.g4SimHits.G4CheckOverlap.OverlapFlag = cms.bool(True) | ||
process.g4SimHits.G4CheckOverlap.Tolerance = cms.double(0.1) | ||
process.g4SimHits.G4CheckOverlap.Resolution = cms.int32(10000) | ||
process.g4SimHits.G4CheckOverlap.Depth = cms.int32(-1) | ||
# tells if NodeName is G4Region or G4PhysicalVolume | ||
process.g4SimHits.G4CheckOverlap.RegionFlag = cms.bool(False) | ||
# list of names | ||
process.g4SimHits.G4CheckOverlap.NodeNames = cms.vstring('cms:OCMS_1') | ||
# enable dump gdml file | ||
process.g4SimHits.G4CheckOverlap.gdmlFlag = cms.bool(False) | ||
# if defined a G4PhysicsVolume info is printed | ||
process.g4SimHits.G4CheckOverlap.PVname = '' | ||
# if defined a list of daughter volumes is printed | ||
process.g4SimHits.G4CheckOverlap.LVname = '' | ||
|
||
# extra output files, created if a name is not empty | ||
process.g4SimHits.FileNameField = '' | ||
process.g4SimHits.FileNameGDML = '' | ||
process.g4SimHits.FileNameRegions = '' | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters