File indexing completed on 2024-04-06 12:15:31
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("CTPPS")
0004
0005 from FWCore.MessageLogger.MessageLogger_cfi import *
0006
0007 process.load("Configuration.StandardSequences.GeometryExtended_cff")
0008 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0009
0010 from Geometry.VeryForwardGeometry.geometryRPFromDD_2018_cfi import XMLIdealGeometryESSource_CTPPS
0011
0012 process.XMLIdealGeometryESSource = XMLIdealGeometryESSource_CTPPS.clone()
0013
0014 process.maxEvents = cms.untracked.PSet(
0015 input = cms.untracked.int32(1)
0016 )
0017 process.source = cms.Source("EmptySource")
0018
0019 process.prod = cms.EDProducer("GeometryProducer",
0020 MagneticField = cms.PSet(
0021 delta = cms.double(1.0)
0022 ),
0023 UseMagneticField = cms.bool(False),
0024 UseSensitiveDetectors = cms.bool(False)
0025 )
0026
0027 process.add_(
0028 cms.ESProducer("TGeoMgrFromDdd",
0029 verbose = cms.untracked.bool(False),
0030 level = cms.untracked.int32(14)
0031 )
0032 )
0033
0034 process.dump = cms.EDAnalyzer("DumpSimGeometry",
0035 outputFileName = cms.untracked.string('ctppsGeometry.root')
0036 )
0037
0038 process.p = cms.Path(process.prod+process.dump)