-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 #34964 from bsunanda/Run3-sim103
Run3-sim103 Add tools to study big xml file which goes in the DB
- Loading branch information
Showing
8 changed files
with
332 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
SimG4Core/PrintGeomInfo/data/dd4hep/cmsExtendedGeometry2021.xml
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,11 @@ | ||
<?xml version="1.0"?> | ||
<DDDefinition> | ||
<open_geometry/> | ||
<close_geometry/> | ||
|
||
<IncludeSection> | ||
<Include ref='SimG4Core/PrintGeomInfo/data/dd4hep/dd4hepDBBigFile.xml'/> | ||
<Include ref='SimG4Core/PrintGeomInfo/data/hcalSimNumbering.xml'/> | ||
<Include ref='SimG4Core/PrintGeomInfo/data/hcalRecNumbering.xml'/> | ||
</IncludeSection> | ||
</DDDefinition> |
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,33 @@ | ||
<?xml version="1.0"?> | ||
<DDDefinition> | ||
|
||
<ConstantsSection label="hcalRecNumbering.xml" eval="true"> | ||
<Vector name="etagroup" type="numeric" nEntries="29"> | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 | ||
</Vector> | ||
<Vector name="phigroup" type="numeric" nEntries="29"> | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, | ||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 | ||
</Vector> | ||
<Vector name="layerGroupRecEta1" type="numeric" nEntries="19"> | ||
1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4 | ||
</Vector> | ||
<Vector name="layerGroupRecEta16" type="numeric" nEntries="19"> | ||
1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 | ||
</Vector> | ||
<Vector name="layerGroupRecEta17" type="numeric" nEntries="19"> | ||
2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 | ||
</Vector> | ||
<Vector name="layerGroupRecEta18" type="numeric" nEntries="19"> | ||
1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 | ||
</Vector> | ||
<Vector name="layerGroupRecEta19" type="numeric" nEntries="19"> | ||
1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 | ||
</Vector> | ||
<Vector name="layerGroupRecEta26" type="numeric" nEntries="19"> | ||
1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7 | ||
</Vector> | ||
</ConstantsSection> | ||
|
||
</DDDefinition> |
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,91 @@ | ||
<?xml version="1.0"?> | ||
<DDDefinition> | ||
|
||
<ConstantsSection label="hcalSimNumbering.xml" eval="true"> | ||
<Vector name="phioff" type="numeric" nEntries="5"> | ||
0.0*deg, 0.0*deg, 0.0*deg, 10.0*deg, 10.0*deg | ||
</Vector> | ||
<Vector name="etaTable" type="numeric" nEntries="30"> | ||
0.000, 0.087, 0.174, 0.261, 0.348, 0.435, 0.522, 0.609, 0.696, | ||
0.783, 0.870, 0.957, 1.044, 1.131, 1.218, 1.305, 1.392, 1.479, | ||
1.566, 1.653, 1.740, 1.830, 1.930, 2.043, 2.172, 2.322, 2.500, | ||
2.650, 2.868, 3.000 | ||
</Vector> | ||
<Vector name="rTable" type="numeric" nEntries="14"> | ||
12.50*cm, 16.90*cm, 20.10*cm, 24.00*cm, 28.60*cm, 34.00*cm, | ||
40.60*cm, 48.30*cm, 57.60*cm, 68.60*cm, 81.80*cm, 97.50*cm, | ||
116.20*cm, 130.00*cm | ||
</Vector> | ||
<Vector name="phibin" type="numeric" nEntries="29"> | ||
5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, | ||
5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, | ||
5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, 5.0*deg, 10.0*deg, | ||
10.0*deg, 10.0*deg, 10.0*deg, 10.0*deg, 10.0*deg, 10.0*deg, | ||
10.0*deg, 10.0*deg | ||
</Vector> | ||
<Vector name="phitable" type="numeric" nEntries="13"> | ||
10.0*deg, 10.0*deg, 10.0*deg, 10.0*deg, 10.0*deg, 10.0*deg, | ||
10.0*deg, 10.0*deg, 10.0*deg, 10.0*deg, 10.0*deg, 20.0*deg, | ||
20.0*deg | ||
</Vector> | ||
<Vector name="layerGroupSimEta1" type="numeric" nEntries="19"> | ||
1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4 | ||
</Vector> | ||
<Vector name="layerGroupSimEta16" type="numeric" nEntries="19"> | ||
1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 | ||
</Vector> | ||
<Vector name="layerGroupSimEta17" type="numeric" nEntries="19"> | ||
2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 | ||
</Vector> | ||
<Vector name="layerGroupSimEta18" type="numeric" nEntries="19"> | ||
1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5 | ||
</Vector> | ||
<Vector name="layerGroupSimEta19" type="numeric" nEntries="19"> | ||
1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6 | ||
</Vector> | ||
<Vector name="layerGroupSimEta26" type="numeric" nEntries="19"> | ||
1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7 | ||
</Vector> | ||
<Vector name="etaMin" type="numeric" nEntries="4"> | ||
1, 16, 29, 1 | ||
</Vector> | ||
<Vector name="etaMax" type="numeric" nEntries="4"> | ||
16, 29, 41, 15 | ||
</Vector> | ||
<Vector name="MaxDepth" type="numeric" nEntries="4"> | ||
4, 7, 4, 4 | ||
</Vector> | ||
<Vector name="etaRange" type="numeric" nEntries="4"> | ||
1.392, 3.000, 5.500, 1.305 | ||
</Vector> | ||
<Vector name="gparHF" type="numeric" nEntries="7"> | ||
22.0*cm, 165.0*cm, 30.0*cm, 0.0*cm, 1115.0*cm, 0.375*cm, | ||
1137.0*cm | ||
</Vector> | ||
<Vector name="noff" type="numeric" nEntries="18"> | ||
15, 29, 4, 10, 5, 2, 4, 18, 19, 11, 12, 13, 14, 3, 4, 3, 1, 0 | ||
</Vector> | ||
<Vector name="Layer0Wt" type="numeric" nEntries="2"> | ||
0.5, 1.2 | ||
</Vector> | ||
<Vector name="HBGains" type="numeric" nEntries="4"> | ||
117.0, 117.0, 117.0, 217.0 | ||
</Vector> | ||
<Vector name="HBShift" type="numeric" nEntries="4"> | ||
0, 0, 0, 0 | ||
</Vector> | ||
<Vector name="HEGains" type="numeric" nEntries="7"> | ||
178.0, 178.0, 178.0, 178.0, 178.0, 178.0, 178.0 | ||
</Vector> | ||
<Vector name="HEShift" type="numeric" nEntries="7"> | ||
0, 0, 0, 0, 0, 0, 0 | ||
</Vector> | ||
<Vector name="HFGains" type="numeric" nEntries="4"> | ||
2.840, 2.090, 2.840, 2.090 | ||
</Vector> | ||
<Vector name="HFShift" type="numeric" nEntries="4"> | ||
0, 0, 0, 0 | ||
</Vector> | ||
</ConstantsSection> | ||
|
||
</DDDefinition> |
9 changes: 9 additions & 0 deletions
9
SimG4Core/PrintGeomInfo/python/cmsExtendedGeometry2021_cfi.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,9 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource", | ||
geomXMLFiles = cms.vstring( | ||
'SimG4Core/PrintGeomInfo/data/dddDBBigFile.xml', | ||
'SimG4Core/PrintGeomInfo/data/hcalSimNumbering.xml', | ||
'SimG4Core/PrintGeomInfo/data/hcalRecNumbering.xml'), | ||
rootNodeName = cms.string('cms:OCMS') | ||
) |
47 changes: 47 additions & 0 deletions
47
SimG4Core/PrintGeomInfo/test/python/runDD4HepBigXML_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') | ||
|
||
from SimG4Core.PrintGeomInfo.g4PrintGeomInfo_cfi import * | ||
|
||
process = printGeomInfo(process) | ||
|
||
if hasattr(process,'MessageLogger'): | ||
process.MessageLogger.G4cerr=dict() | ||
process.MessageLogger.G4cout=dict() | ||
|
||
process.DDDetectorESProducer.confGeomXMLFiles = cms.FileInPath("SimG4Core/PrintGeomInfo/data/dd4hep/cmsExtendedGeometry2021.xml") | ||
|
||
process.g4SimHits.Watchers = cms.VPSet(cms.PSet( | ||
DumpSummary = cms.untracked.bool(True), | ||
DumpLVTree = cms.untracked.bool(False), | ||
DumpMaterial = cms.untracked.bool(False), | ||
DumpLVList = cms.untracked.bool(False), | ||
DumpLV = cms.untracked.bool(False), | ||
DumpSolid = cms.untracked.bool(False), | ||
DumpAttributes = cms.untracked.bool(False), | ||
DumpPV = cms.untracked.bool(False), | ||
DumpRotation = cms.untracked.bool(False), | ||
DumpReplica = cms.untracked.bool(False), | ||
DumpTouch = cms.untracked.bool(False), | ||
DumpSense = cms.untracked.bool(False), | ||
DD4Hep = cms.untracked.bool(True), | ||
Name = cms.untracked.string(''), | ||
Names = cms.untracked.vstring(''), | ||
MaterialFileName = cms.untracked.string('matfileBigDD4Hep.txt'), | ||
SolidFileName = cms.untracked.string('solidfileBigDD4Hep.txt'), | ||
LVFileName = cms.untracked.string('lvfileBigDD4Hep.txt'), | ||
PVFileName = cms.untracked.string('pvfileBigDD4Hep.txt'), | ||
TouchFileName = cms.untracked.string('touchfileBigDD4Hep.txt'), | ||
FileDetail = cms.untracked.bool(True), | ||
type = cms.string('PrintGeomInfoAction') | ||
)) |
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('G4PrintGeometry',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') | ||
|
||
from SimG4Core.PrintGeomInfo.g4PrintGeomInfo_cfi import * | ||
|
||
process = printGeomInfo(process) | ||
|
||
if hasattr(process,'MessageLogger'): | ||
process.MessageLogger.G4cerr=dict() | ||
process.MessageLogger.G4cout=dict() | ||
|
||
process.g4SimHits.Watchers = cms.VPSet(cms.PSet( | ||
DumpSummary = cms.untracked.bool(True), | ||
DumpLVTree = cms.untracked.bool(False), | ||
DumpMaterial = cms.untracked.bool(False), | ||
DumpLVList = cms.untracked.bool(False), | ||
DumpLV = cms.untracked.bool(False), | ||
DumpSolid = cms.untracked.bool(False), | ||
DumpAttributes = cms.untracked.bool(False), | ||
DumpPV = cms.untracked.bool(False), | ||
DumpRotation = cms.untracked.bool(False), | ||
DumpReplica = cms.untracked.bool(False), | ||
DumpTouch = cms.untracked.bool(False), | ||
DumpSense = cms.untracked.bool(False), | ||
DD4Hep = cms.untracked.bool(False), | ||
Name = cms.untracked.string(''), | ||
Names = cms.untracked.vstring(''), | ||
MaterialFileName = cms.untracked.string('matfileBigDDD.txt'), | ||
SolidFileName = cms.untracked.string('solidfileBigDDD.txt'), | ||
LVFileName = cms.untracked.string('lvfileBigDDD.txt'), | ||
PVFileName = cms.untracked.string('pvfileBigDDD.txt'), | ||
TouchFileName = cms.untracked.string('touchfileBigDDD.txt'), | ||
FileDetail = cms.untracked.bool(True), | ||
type = cms.string('PrintGeomInfoAction') | ||
)) |
49 changes: 49 additions & 0 deletions
49
Validation/Geometry/test/runMaterialBudgetVolumeBigDD4HepXML_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,49 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep | ||
process = cms.Process('PROD',Run3_dd4hep) | ||
process.load("Configuration.Geometry.GeometryDD4hepExtended2021Reco_cff") | ||
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("SimGeneral.HepPDTESSource.pythiapdt_cfi") | ||
process.load("Configuration.StandardSequences.MagneticField_cff") | ||
process.load("SimG4Core.Application.g4SimHits_cfi") | ||
process.load("Validation.Geometry.materialBudgetVolume_cfi") | ||
|
||
process.load("IOMC.RandomEngine.IOMC_cff") | ||
process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876 | ||
|
||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000) | ||
if hasattr(process,'MessageLogger'): | ||
process.MessageLogger.MaterialBudget=dict() | ||
|
||
process.source = cms.Source("PoolSource", | ||
noEventSort = cms.untracked.bool(True), | ||
duplicateCheckMode = cms.untracked.string("noDuplicateCheck"), | ||
fileNames = cms.untracked.vstring('file:single_neutrino_random.root') | ||
) | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(-1) | ||
) | ||
|
||
process.TFileService = cms.Service("TFileService", | ||
fileName = cms.string('matbdgRun3dd4hepBigXML.root') | ||
) | ||
|
||
process.DDDetectorESProducer.confGeomXMLFiles = cms.FileInPath("SimG4Core/PrintGeomInfo/data/dd4hep/cmsExtendedGeometry2021.xml") | ||
process.g4SimHits.UseMagneticField = False | ||
process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics' | ||
process.g4SimHits.StackingAction.TrackNeutrino = True | ||
process.g4SimHits.Physics.DummyEMPhysics = True | ||
process.g4SimHits.Physics.CutsPerRegion = False | ||
|
||
process.load("Validation.Geometry.materialBudgetVolumeAnalysis_cfi") | ||
process.p1 = cms.Path(process.g4SimHits+process.materialBudgetVolumeAnalysis) |
47 changes: 47 additions & 0 deletions
47
Validation/Geometry/test/runMaterialBudgetVolumeBigDDDXML_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_cff import Run3 | ||
process = cms.Process('PROD',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("SimGeneral.HepPDTESSource.pythiapdt_cfi") | ||
process.load("Configuration.StandardSequences.MagneticField_cff") | ||
process.load("SimG4Core.Application.g4SimHits_cfi") | ||
process.load("Validation.Geometry.materialBudgetVolume_cfi") | ||
|
||
process.load("IOMC.RandomEngine.IOMC_cff") | ||
process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876 | ||
|
||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(1000) | ||
if hasattr(process,'MessageLogger'): | ||
process.MessageLogger.MaterialBudget=dict() | ||
|
||
process.source = cms.Source("PoolSource", | ||
noEventSort = cms.untracked.bool(True), | ||
duplicateCheckMode = cms.untracked.string("noDuplicateCheck"), | ||
fileNames = cms.untracked.vstring('file:single_neutrino_random.root') | ||
) | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(-1) | ||
) | ||
|
||
process.TFileService = cms.Service("TFileService", | ||
fileName = cms.string('matbdgRun3dddBigXML.root') | ||
) | ||
|
||
process.g4SimHits.UseMagneticField = False | ||
process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics' | ||
process.g4SimHits.StackingAction.TrackNeutrino = True | ||
process.g4SimHits.Physics.DummyEMPhysics = True | ||
process.g4SimHits.Physics.CutsPerRegion = False | ||
|
||
process.load("Validation.Geometry.materialBudgetVolumeAnalysis_cfi") | ||
process.p1 = cms.Path(process.g4SimHits+process.materialBudgetVolumeAnalysis) |