Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add few more default geometry tests in Geometry/TrackerGeometryBuilder #45866

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing

import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
###################################################################
# Setup 'standard' options
###################################################################
options = VarParsing.VarParsing()
options.register('Scenario',
_settings.DEFAULT_VERSION, # default value
VarParsing.VarParsing.multiplicity.singleton, # singleton or list
VarParsing.VarParsing.varType.string, # string, int, or float
"geometry version to use: 2026DXXX")
options.parseArguments()

###################################################################
# get Global Tag and ERA
###################################################################
GLOBAL_TAG, ERA = _settings.get_era_and_conditions(options.Scenario)

process = cms.Process("GeometryTest",ERA)
process.load("FWCore.MessageLogger.MessageLogger_cfi")

# Choose Tracker Geometry
if(options.Scenario == _settings.DEFAULT_VERSION):
print("Loading default scenario: ", _settings.DEFAULT_VERSION)
process.load('Configuration.Geometry.GeometryExtended2026DefaultReco_cff')
else:
process.load('Configuration.Geometry.GeometryExtended'+options.Scenario+'Reco_cff')

process.source = cms.Source("EmptySource")

process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(1)
)
process.prod = cms.EDAnalyzer("GeoHierarchy",
fromDDD = cms.bool(True)
)

process.load("Alignment.CommonAlignmentProducer.FakeAlignmentSource_cfi")
process.preferFakeAlign = cms.ESPrefer("FakeAlignmentSource")

process.p1 = cms.Path(process.prod)
Original file line number Diff line number Diff line change
@@ -1,12 +1,33 @@
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing

from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
###################################################################
# Setup 'standard' options
###################################################################
options = VarParsing.VarParsing()
options.register('Scenario',
_settings.DEFAULT_VERSION, # default value
VarParsing.VarParsing.multiplicity.singleton, # singleton or list
VarParsing.VarParsing.varType.string, # string, int, or float
"geometry version to use: 2026DXXX")
options.parseArguments()

process = cms.Process("GeometryTest", Run3_dd4hep)
###################################################################
# get Global Tag and ERA
###################################################################
GLOBAL_TAG, ERA = _settings.get_era_and_conditions(options.Scenario)

from Configuration.ProcessModifiers.dd4hep_cff import dd4hep
process = cms.Process("GeometryTest", ERA, dd4hep)
process.load("FWCore.MessageLogger.MessageLogger_cfi")

# Choose Tracker Geometry
process.load('Configuration.Geometry.GeometryDD4hepExtended2026D100Reco_cff')
if(options.Scenario == _settings.DEFAULT_VERSION):
print("Loading default scenario: ", _settings.DEFAULT_VERSION)
process.load('Configuration.Geometry.GeometryDD4hepExtended2026DefaultReco_cff')
else:
process.load('Configuration.Geometry.GeometryDD4hepExtended'+options.Scenario+'Reco_cff')

process.TrackerGeometricDetESModule = cms.ESProducer( "TrackerGeometricDetESModule",
fromDDD = cms.bool( False ),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
import FWCore.ParameterSet.Config as cms
import FWCore.ParameterSet.VarParsing as VarParsing

process = cms.Process("GeometryTest")
import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
###################################################################
# Setup 'standard' options
###################################################################
options = VarParsing.VarParsing()
options.register('Scenario',
_settings.DEFAULT_VERSION, # default value
VarParsing.VarParsing.multiplicity.singleton, # singleton or list
VarParsing.VarParsing.varType.string, # string, int, or float
"geometry version to use: 2026DXXX")
options.parseArguments()

###################################################################
# get Global Tag and ERA
###################################################################
GLOBAL_TAG, ERA = _settings.get_era_and_conditions(options.Scenario)

process = cms.Process("GeometryTest",ERA)
# empty input service, fire 10 events
process.load("FWCore.MessageLogger.MessageLogger_cfi")

# Choose Tracker Geometry
process.load('Configuration.Geometry.GeometryExtended2026D100_cff')
if(options.Scenario == _settings.DEFAULT_VERSION):
print("Loading default scenario: ", _settings.DEFAULT_VERSION)
process.load('Configuration.Geometry.GeometryExtended2026Default_cff')
else:
process.load('Configuration.Geometry.GeometryExtended'+options.Scenario+'_cff')

process.load('Geometry.CommonTopologies.globalTrackingGeometry_cfi')
process.load('Geometry.TrackerGeometryBuilder.trackerParameters_cfi')
process.load('Geometry.TrackerNumberingBuilder.trackerTopology_cfi')
Expand Down