Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:31:11

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PrintGeom")
0004 
0005 #process.load("SimG4Core.PrintGeomInfo.testTotemGeometryXML_cfi")
0006 # choose the current geometry
0007 #process.load("Geometry.CMSCommonData.trackerSimGeometryXML_cfi")
0008 # or choose an upgrade geometry
0009 process.load("SLHCUpgradeSimulations.Geometry.Phase1_R34F16_cmsSimIdealGeometryXML_cff")
0010 #process.load("SLHCUpgradeSimulations.Geometry.hybrid_cmsIdealGeometryXML_cff")
0011 #process.load("SLHCUpgradeSimulations.Geometry.longbarrel_cmsIdealGeometryXML_cff")
0012 
0013 #process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0014 #process.GlobalTag.globaltag = 'MC_31X_V8::All'
0015 
0016 process.TrackerGeometricDetESModule = cms.ESProducer("TrackerGeometricDetESModule",
0017     fromDDD = cms.bool(True)
0018 )
0019 
0020 process.MessageLogger = cms.Service("MessageLogger",
0021     destinations = cms.untracked.vstring('cout'),
0022     categories = cms.untracked.vstring(),
0023     cout = cms.untracked.PSet(
0024         threshold = cms.untracked.string('INFO')
0025     )
0026 )
0027 
0028 process.maxEvents = cms.untracked.PSet(
0029     input = cms.untracked.int32(1)
0030 )
0031 
0032 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0033 
0034 #process.load("Configuration.StandardSequences.Generator_cff")
0035 
0036 process.load("FastSimulation/Configuration/FlatPtMuonGun_cfi")
0037 process.generator.PGunParameters.PartID[0] = 13
0038 process.generator.PGunParameters.MinPt = 0.9
0039 process.generator.PGunParameters.MaxPt = 50.0
0040 process.generator.PGunParameters.MinEta = -2.4
0041 process.generator.PGunParameters.MaxEta = 2.4
0042 process.generator.AddAntiParticle = False
0043 
0044 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0045     moduleSeeds = cms.PSet(
0046         generator = cms.untracked.uint32(456789),
0047         g4SimHits = cms.untracked.uint32(9876),
0048         VtxSmeared = cms.untracked.uint32(98765432)
0049     ),
0050     sourceSeed = cms.untracked.uint32(123456789)
0051 )
0052 
0053 process.load("SimG4Core.Application.g4SimHits_cfi")
0054 
0055 process.p1 = cms.Path(process.generator*process.g4SimHits)
0056 #process.p1 = cms.Path(process.g4SimHits)
0057 
0058 process.g4SimHits.Physics.type            = 'SimG4Core/Physics/DummyPhysics'
0059 process.g4SimHits.UseMagneticField        = False
0060 process.g4SimHits.Physics.DummyEMPhysics  = True
0061 process.g4SimHits.Physics.DefaultCutValue = 10. 
0062 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0063     DumpSummary    = cms.untracked.bool(True),
0064     DumpLVTree     = cms.untracked.bool(False),
0065     DumpLVMatBudget= cms.untracked.bool(True),
0066 # Standard geometry
0067 #        LVNames2Dump   = cms.untracked.vstring('PixelBarrelLayer0','PixelBarrelLayer1','PixelBarrelLayer2'),
0068 #        LVNames2Dump   = cms.untracked.vstring('PixelBarrel'),
0069 #        LVNames2Dump   = cms.untracked.vstring('PixelForwardZPlus','PixelForwardZMinus'),
0070 #        Radius2Use     = cms.untracked.vdouble(44.2558, 73.1232, 101.776),
0071 #        Z2Use          = cms.untracked.vdouble(567.8, 567.8, 567.8),
0072 #        LVNames2Dump   = cms.untracked.vstring('PixelBarrelLayer0','PixelBarrelLayer1','PixelBarrelLayer2',
0073 #'PixelBarrelSuppTub', 'PixelBarrelSuppBox', 'PixelBarrelShield1', 'PixelBarrelShield2', 'PixelBarrelShield3', 'PixelBarrelShield4'),
0074 #        Radius2Use     = cms.untracked.vdouble(44.2558, 73.1232, 101.776,
0075 #101.776, 101.776, 44.2558, 44.2558, 101.776, 101.776),
0076 #        Z2Use          = cms.untracked.vdouble(567.8, 567.8, 567.8,
0077 #567.8, 567.8, 567.8, 567.8, 567.8, 567.8),
0078 #
0079 # Phase 1 geometry
0080         LVNames2Dump   = cms.untracked.vstring('PixelBarrelLayer0','PixelBarrelLayer1','PixelBarrelLayer2',
0081                                                'PixelBarrelLayer3','BEAM'),
0082         Radius2Use     = cms.untracked.vdouble(38.7995, 67.8557, 108.92, 159.958, 30.0),
0083         Z2Use          = cms.untracked.vdouble(567.8, 567.8, 567.8, 567.8, 567.8),
0084 #        LVNames2Dump   = cms.untracked.vstring('PixelBarrel'),
0085 #        Radius2Use     = cms.untracked.vdouble(38.7995),
0086 #        Z2Use          = cms.untracked.vdouble(567.8),
0087 #        LVNames2Dump   = cms.untracked.vstring('PixelForward'),
0088 #        Radius2Use     = cms.untracked.vdouble(38.7995),
0089 #        Z2Use          = cms.untracked.vdouble(567.8),
0090 # Hybrid geometry
0091 #        LVNames2Dump   = cms.untracked.vstring('PixelBarrelLayer0','PixelBarrelLayer1','PixelBarrelLayer2',
0092 #                                               'PixelBarrelLayer3','PixelBarrelLayerStack0','PixelBarrelLayerStack1','BEAM',
0093 #                                               'TOBLayer0','TOBLayer1','TOBLayer4','TOBLayer5'),
0094 #        Radius2Use     = cms.untracked.vdouble(38.9527, 67.9102, 108.943, 159.99, 252.588, 351.876, 30.0,
0095 #                                               509.188, 692.92, 865.77, 1080.65),
0096 #        Z2Use          = cms.untracked.vdouble(567.8, 567.8, 567.8, 567.8, 3185.2, 4185.2, 567.8,
0097 #                                               2168.86, 2168.86, 2168.86, 2168.86),
0098 # Longbarrel
0099 #        LVNames2Dump   = cms.untracked.vstring('PixelBarrelLayer0','PixelBarrelLayer1','PixelBarrelLayer2',
0100 #                                               'PixelBarrelLayer3','PixelBarrelLayerStack0','PixelBarrelLayerStack1',
0101 #                                               'PixelBarrelLayerStack2','PixelBarrelLayerStack3','PixelBarrelLayerStack4',
0102 #                                               'PixelBarrelLayerStack5','PixelBarrelLayerStack6','PixelBarrelLayerStack7',
0103 #                                               'PixelBarrelLayerStack8','PixelBarrelLayerStack9'),
0104 #        Radius2Use     = cms.untracked.vdouble(38.9544, 67.9106, 108.943, 159.990, 321.882, 361.684,
0105 #                                               481.283, 521.189, 643.973, 683.920, 803.791, 843.756, 
0106 #                                               985.655, 1025.63),
0107 #        Z2Use          = cms.untracked.vdouble( 567.8,  567.8,  567.8,  567.8, 4185.2, 4185.2,
0108 #                                               5385.2, 5385.2, 1196.0, 1196.0, 1196.0, 1196.0,
0109 #                                               5385.2, 5385.2),
0110     DumpMaterial   = cms.untracked.bool(False),
0111     DumpLVList     = cms.untracked.bool(False),
0112     DumpLV         = cms.untracked.bool(False),
0113     DumpSolid      = cms.untracked.bool(False),
0114     DumpAttributes = cms.untracked.bool(False),
0115     DumpPV         = cms.untracked.bool(False),
0116     DumpRotation   = cms.untracked.bool(False),
0117     DumpReplica    = cms.untracked.bool(False),
0118     DumpTouch      = cms.untracked.bool(False),
0119     DumpSense      = cms.untracked.bool(False),
0120     Name           = cms.untracked.string('PixelBarrel*'),
0121     Names          = cms.untracked.vstring('PixelBarrelActiveFull'),
0122     type           = cms.string('PrintGeomMatInfo')
0123 ))
0124