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 #27739 from bsunanda/Phase2-hgx211
Phase2-hgx211 Modify the tests and try to put tests in HGCal Geometry area
- Loading branch information
Showing
14 changed files
with
203 additions
and
19 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
33 changes: 33 additions & 0 deletions
33
Geometry/HGCalCommonData/data/dd4hep/cms-test-ddhgcalwafer-algorithm.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,33 @@ | ||
<?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> | ||
|
||
<open_geometry/> | ||
<close_geometry/> | ||
|
||
<IncludeSection> | ||
<Include ref="Geometry/CMSCommonData/data/materials.xml"/> | ||
<Include ref="Geometry/CMSCommonData/data/rotations.xml"/> | ||
<Include ref="Geometry/HGCalCommonData/test/cms.xml"/> | ||
<Include ref="Geometry/HGCalCommonData/data/hgcalwafer/v8/hgcal.xml"/> | ||
<Include ref="Geometry/HGCalCommonData/data/hgcalwafer/v8/hgcalwafer.xml"/> | ||
</IncludeSection> | ||
|
||
</DDDefinition> | ||
|
34 changes: 34 additions & 0 deletions
34
Geometry/HGCalCommonData/data/dd4hep/cms-test-ddhgcalwafer8-algorithm.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,34 @@ | ||
<?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> | ||
|
||
<open_geometry/> | ||
<close_geometry/> | ||
|
||
<IncludeSection> | ||
<Include ref="Geometry/CMSCommonData/data/materials.xml"/> | ||
<Include ref="Geometry/CMSCommonData/data/rotations.xml"/> | ||
<Include ref="Geometry/HGCalCommonData/test/cms.xml"/> | ||
<Include ref="Geometry/HGCalCommonData/data/hgcalwafer/v9/hgcal.xml"/> | ||
<Include ref="Geometry/HGCalCommonData/data/hgcalcell/v9/hgcalcell.xml"/> | ||
<Include ref="Geometry/HGCalCommonData/data/hgcalwafer/v9/hgcalwafer.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,31 @@ | ||
<?xml version="1.0"?> | ||
<DDDefinition xmlns="http://www.cern.ch/cms/DDL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.cern.ch/cms/DDL ../../../DetectorDescription/Schema/DDLSchema.xsd"> | ||
|
||
<ConstantsSection label="hgcal.xml" eval="true"> | ||
<Constant name="WaferW" value="123.7*mm"/> | ||
</ConstantsSection> | ||
|
||
<PosPartSection label="hgcal.xml"> | ||
<PosPart copyNumber="1"> | ||
<rParent name="cms:CMSE"/> | ||
<rChild name="hgcalwafer:HGCalEEWaferCoarse"/> | ||
<Translation x="0*fm" y="0*fm" z="-0.5*cm"/> | ||
</PosPart> | ||
<PosPart copyNumber="1"> | ||
<rParent name="cms:CMSE"/> | ||
<rChild name="hgcalwafer:HGCalEEWaferFine"/> | ||
<Translation x="0*fm" y="0*fm" z="0.5*cm"/> | ||
</PosPart> | ||
<PosPart copyNumber="1"> | ||
<rParent name="cms:CMSE"/> | ||
<rChild name="hgcalwafer:HGCalHEWaferCoarse"/> | ||
<Translation x="0*fm" y="0*fm" z="-1.5*cm"/> | ||
</PosPart> | ||
<PosPart copyNumber="1"> | ||
<rParent name="cms:CMSE"/> | ||
<rChild name="hgcalwafer:HGCalHEWaferFine"/> | ||
<Translation x="0*fm" y="0*fm" z="1.5*cm"/> | ||
</PosPart> | ||
</PosPartSection> | ||
|
||
</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,13 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
XMLIdealGeometryESSource = cms.ESSource("XMLIdealGeometryESSource", | ||
geomXMLFiles = cms.vstring('Geometry/CMSCommonData/data/materials.xml', | ||
'Geometry/CMSCommonData/data/rotations.xml', | ||
'Geometry/HGCalCommonData/test/cms.xml', | ||
'Geometry/HGCalCommonData/data/hgcalwafer/v9/hgcal.xml', | ||
'Geometry/HGCalCommonData/data/hgcalwafer/v9/hgcalwafer.xml', | ||
'Geometry/HGCalCommonData/data/hgcalcell/v9/hgcalcell.xml'), | ||
rootNodeName = cms.string('cms:OCMS') | ||
) | ||
|
||
|
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,26 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("DUMP") | ||
process.load("Geometry.HGCalCommonData.testHGCalWafer8XML_cfi") | ||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
|
||
if 'MessageLogger' in process.__dict__: | ||
process.MessageLogger.categories.append('G4cerr') | ||
process.MessageLogger.categories.append('G4cout') | ||
process.MessageLogger.categories.append('HGCalGeom') | ||
|
||
process.source = cms.Source("EmptySource") | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(1) | ||
) | ||
|
||
process.add_(cms.ESProducer("TGeoMgrFromDdd", | ||
verbose = cms.untracked.bool(False), | ||
level = cms.untracked.int32(14) | ||
)) | ||
|
||
process.dump = cms.EDAnalyzer("DumpSimGeometry", | ||
outputFileName = cms.untracked.string('wafer8DDD.root')) | ||
|
||
process.p = cms.Path(process.dump) |
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,25 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("DDHGCalWafer8Test") | ||
|
||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
process.source = cms.Source("EmptySource") | ||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(1) | ||
) | ||
|
||
process.MessageLogger.cerr.FwkReport.reportEvery = 5 | ||
if hasattr(process,'MessageLogger'): | ||
process.MessageLogger.categories.append('HGCalGeom') | ||
|
||
process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer", | ||
confGeomXMLFiles = cms.FileInPath('Geometry/HGCalCommonData/data/dd4hep/cms-test-ddhgcalwafer8-algorithm.xml'), | ||
appendToDataLabel = cms.string('DDHGCalWafer8') | ||
) | ||
|
||
process.testDump = cms.EDAnalyzer("DDTestDumpFile", | ||
outputFileName = cms.untracked.string('hgcalWafer8DD4Hep.root'), | ||
DDDetector = cms.ESInputTag('','DDHGCalWafer8') | ||
) | ||
|
||
process.p = cms.Path(process.testDump) |
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,25 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("DDHGCalWafer8Test") | ||
|
||
process.load('FWCore.MessageService.MessageLogger_cfi') | ||
process.source = cms.Source("EmptySource") | ||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(1) | ||
) | ||
|
||
process.MessageLogger.cerr.FwkReport.reportEvery = 5 | ||
if hasattr(process,'MessageLogger'): | ||
process.MessageLogger.categories.append('HGCalGeom') | ||
|
||
process.DDDetectorESProducer = cms.ESSource("DDDetectorESProducer", | ||
confGeomXMLFiles = cms.FileInPath('Geometry/HGCalCommonData/data/dd4hep/cms-test-ddhgcalwafer-algorithm.xml'), | ||
appendToDataLabel = cms.string('DDHGCalWafer') | ||
) | ||
|
||
process.testDump = cms.EDAnalyzer("DDTestDumpFile", | ||
outputFileName = cms.untracked.string('hgcalWaferDD4Hep.root'), | ||
DDDetector = cms.ESInputTag('','DDHGCalWafer') | ||
) | ||
|
||
process.p = cms.Path(process.testDump) |