/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Geometry/DTGeometryBuilder/test/python/validateDTGeometry_cfg.py
55 строк
3 KB
Ianna Osborne
address issue 33373
05 ноя 2021, 13:10
05 ноя 2021, 13:10
806de2f
Код
Авторство
О чём код?
# This config does not work with the version of DD4hep that uses Geant4 units. This config performs a comparison # with a reference geometry which might use the ROOT units convention. This mismatch somehow triggers a ROOT exception. # We don't currently have a fix for this problem. import FWCore.ParameterSet.Config as cms process = cms.Process('VALID') process.source = cms.Source('EmptySource') process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(1) ) process.load('Configuration.StandardSequences.DD4hep_GeometrySim_cff') process.load("FWCore.MessageLogger.MessageLogger_cfi") process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi") process.load("Geometry.MuonNumbering.muonGeometryConstants_cff") process.MessageLogger = cms.Service("MessageLogger", destinations = cms.untracked.vstring('myLog'), myLog = cms.untracked.PSet( threshold = cms.untracked.string('INFO'), ) ) process.DTGeometryESProducer = cms.ESProducer("DTGeometryESProducer", DDDetector = cms.ESInputTag('',''), appendToDataLabel = cms.string(''), applyAlignment = cms.bool(False), alignmentsLabel = cms.string(''), attribute = cms.string('MuStructure'), value = cms.string('MuonBarrelDT'), fromDDD = cms.bool(True) ) process.DDCompactViewESProducer = cms.ESProducer("DDCompactViewESProducer", appendToDataLabel = cms.string('') ) process.DDSpecParRegistryESProducer = cms.ESProducer("DDSpecParRegistryESProducer", appendToDataLabel = cms.string('') ) process.muonGeometryConstants.fromDD4hep = True process.valid = cms.EDAnalyzer("DTGeometryValidate", infileName = cms.untracked.string('Geometry/DTGeometryBuilder/data/cmsRecoGeom-2021.root'), outfileName = cms.untracked.string('validateDTGeometry.root'), tolerance = cms.untracked.int32(7) ) process.p = cms.Path(process.valid)