-
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 #26371 from ianna/dd4hep-mdt-geometry-v0
DD4hep: MTD Geometry Description
- Loading branch information
Showing
12 changed files
with
159 additions
and
28 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
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
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
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
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
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
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
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
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
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
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,69 @@ | ||
<?xml version="1.0"?> | ||
<DDDefinition> | ||
<debug> | ||
<debug_shapes/> | ||
<debug_includes/> | ||
<debug_rotations/> | ||
<debug_includes/> | ||
<debug_volumes/> | ||
<debug_constants/> | ||
<debug_materials/> | ||
<debug_namespaces/> | ||
<debug_placements/> | ||
<debug_algorithms/> | ||
<debug_materials/> | ||
<debug_visattr/> | ||
<debug_specpars/> | ||
</debug> | ||
|
||
<open_geometry/> | ||
<close_geometry/> | ||
|
||
<ConstantsSection label="" eval="true"> | ||
<Constant name="world_x" value="100*m"/> | ||
<Constant name="world_y" value="100*m"/> | ||
<Constant name="world_z" value="100*m"/> | ||
<Constant name="fm" value="1e-12*m"/> | ||
<Constant name="mum" value="1.e-3*mm"/> | ||
<Constant name="Air" value="materials:Air" type="string"/> | ||
<Constant name="Vacuum" value="materials:Vacuum" type="string"/> | ||
</ConstantsSection> | ||
|
||
<IncludeSection> | ||
<Include ref='Geometry/CMSCommonData/data/materials.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/rotations.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/extend/v2/cmsextent.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/cms/2023/v2/cms.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/eta3/etaMax.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/cmsMother.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/cmsTracker.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/caloBase/2023/v1/caloBase.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/cmsCalo.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/muonBase/2023/v2/muonBase.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/cmsMuon.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/mgnt.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/beampipe/2023/v1/beampipe.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/cmsBeam/2023/v1/cmsBeam.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/muonMB.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/muonMagnet.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/cavern/2017/v2/cavern.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/cavernData/2017/v1/cavernData.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/cavernFloor/2017/v1/cavernFloor.xml'/> | ||
<Include ref='Geometry/CMSCommonData/data/caloBase/2023/v2/caloBase.xml'/> | ||
<Include ref='Geometry/TrackerCommonData/data/PhaseII/TiltedTracker613/pixfwd.xml'/> | ||
<Include ref='Geometry/TrackerCommonData/data/PhaseII/TiltedTracker613/tracker.xml'/> | ||
<Include ref='Geometry/TrackerCommonData/data/PhaseII/TiltedTracker404/pixbar.xml'/> | ||
<Include ref='Geometry/MTDCommonData/data/btl.xml'/> | ||
<Include ref='Geometry/MTDCommonData/data/etl/v2/etl.xml'/> | ||
<Include ref='Geometry/MTDCommonData/data/CrystalBarPhiFlat/v2/mtd.xml'/> | ||
<Include ref='Geometry/MTDCommonData/data/CrystalBarPhiFlat/mtdStructureTopology.xml'/> | ||
<Include ref='Geometry/MTDCommonData/data/CrystalBarPhiFlat/mtdParameters.xml'/> | ||
</IncludeSection> | ||
|
||
<PosPartSection label=""> | ||
<PosPart copyNumber="1"> | ||
<rParent name=":world_volume"/> | ||
<rChild name="cms:OCMS"/> | ||
</PosPart> | ||
</PosPartSection> | ||
</DDDefinition> |
58 changes: 58 additions & 0 deletions
58
Geometry/MTDGeometryBuilder/test/python/testMTDGeometry.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,58 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("MTDGeometryTest") | ||
|
||
process.source = cms.Source("EmptySource") | ||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(1) | ||
) | ||
|
||
process.MessageLogger = cms.Service( | ||
"MessageLogger", | ||
statistics = cms.untracked.vstring('cout', 'mtdGeometry'), | ||
categories = cms.untracked.vstring('Geometry'), | ||
cout = cms.untracked.PSet( | ||
threshold = cms.untracked.string('WARNING'), | ||
noLineBreaks = cms.untracked.bool(True) | ||
), | ||
mtdGeometry = cms.untracked.PSet( | ||
INFO = cms.untracked.PSet( | ||
limit = cms.untracked.int32(0) | ||
), | ||
noLineBreaks = cms.untracked.bool(True), | ||
DEBUG = cms.untracked.PSet( | ||
limit = cms.untracked.int32(0) | ||
), | ||
WARNING = cms.untracked.PSet( | ||
limit = cms.untracked.int32(0) | ||
), | ||
ERROR = cms.untracked.PSet( | ||
limit = cms.untracked.int32(0) | ||
), | ||
threshold = cms.untracked.string('INFO'), | ||
Geometry = cms.untracked.PSet( | ||
limit = cms.untracked.int32(-1) | ||
) | ||
), | ||
destinations = cms.untracked.vstring('cout', | ||
'mtdGeometry') | ||
) | ||
|
||
process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer", | ||
confGeomXMLFiles = cms.FileInPath('Geometry/MTDCommonData/data/dd4hep/cms-mtd-geometry.xml'), | ||
appendToDataLabel = cms.string('MTD') | ||
) | ||
|
||
process.DDSpecParRegistryESProducer = cms.ESProducer("DDSpecParRegistryESProducer", | ||
appendToDataLabel = cms.string('MTD') | ||
) | ||
|
||
process.DDVectorRegistryESProducer = cms.ESProducer("DDVectorRegistryESProducer", | ||
appendToDataLabel = cms.string('MTD') | ||
) | ||
|
||
process.test = cms.EDAnalyzer("DDCMSDetector", | ||
DDDetector = cms.ESInputTag('MTD') | ||
) | ||
|
||
process.p = cms.Path(process.test) |