Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:14:27

0001 # This config does not work with the version of DD4hep that uses Geant4 units. This config performs a comparison
0002 # with a reference geometry which might use the ROOT units convention. This mismatch somehow triggers a ROOT exception.
0003 # We don't currently have a fix for this problem.
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process('VALID')
0008 
0009 process.source = cms.Source('EmptySource')
0010 
0011 process.maxEvents = cms.untracked.PSet(
0012     input = cms.untracked.int32(1)
0013     )
0014 
0015 process.load('Configuration.StandardSequences.DD4hep_GeometrySim_cff')
0016 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0017 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0018 process.load("Geometry.MuonNumbering.muonGeometryConstants_cff")
0019 
0020 process.MessageLogger = cms.Service("MessageLogger",
0021                                 destinations = cms.untracked.vstring('myLog'),
0022                                 myLog = cms.untracked.PSet(
0023                                 threshold = cms.untracked.string('INFO'),
0024                                 )
0025                             )
0026 
0027 process.DTGeometryESProducer = cms.ESProducer("DTGeometryESProducer",
0028                                               DDDetector = cms.ESInputTag('',''),
0029                                               appendToDataLabel = cms.string(''),
0030                                               applyAlignment = cms.bool(False),
0031                                               alignmentsLabel = cms.string(''),
0032                                               attribute = cms.string('MuStructure'),
0033                                               value = cms.string('MuonBarrelDT'),
0034                                               fromDDD = cms.bool(True)
0035                                               )
0036 
0037 process.DDCompactViewESProducer = cms.ESProducer("DDCompactViewESProducer",
0038                                                  appendToDataLabel = cms.string('')
0039 )
0040 
0041 process.DDSpecParRegistryESProducer = cms.ESProducer("DDSpecParRegistryESProducer",
0042                                                      appendToDataLabel = cms.string('')
0043                                                      )
0044 
0045 process.muonGeometryConstants.fromDD4hep = True
0046 
0047 
0048 process.valid = cms.EDAnalyzer("DTGeometryValidate",
0049 
0050                                infileName = cms.untracked.string('Geometry/DTGeometryBuilder/data/cmsRecoGeom-2021.root'),
0051                                outfileName = cms.untracked.string('validateDTGeometry.root'),
0052                                tolerance = cms.untracked.int32(7)
0053                                )
0054 
0055 process.p = cms.Path(process.valid)