Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-07-28 03:10:25

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0005 process.load('FWCore.MessageService.MessageLogger_cfi')
0006 
0007 #Geometry
0008 #
0009 process.load("Configuration.Geometry.GeometrySimAll_cff")
0010 process.load("Configuration.Geometry.GeometryReco_cff")
0011 
0012 #Magnetic Field
0013 #
0014 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0015 
0016 # Detector simulation (Geant4-based)
0017 #
0018 process.load("SimG4Core.Application.g4SimHits_cfi")
0019 
0020 process.load("IOMC.RandomEngine.IOMC_cff")
0021 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0022 process.RandomNumberGeneratorService.g4SimHits.initialSeed = 9876
0023 
0024 if hasattr(process,'MessageLogger'):
0025     process.MessageLogger.MaterialBudget=dict()
0026 
0027 process.source = cms.Source("EmptySource",
0028     firstRun        = cms.untracked.uint32(1),
0029     firstEvent      = cms.untracked.uint32(1)
0030 )
0031 
0032 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0033     PGunParameters = cms.PSet(
0034         PartID = cms.vint32(14),
0035         MinEta = cms.double(-5.65),
0036         MaxEta = cms.double(-5.55),
0037         MinPhi = cms.double(-3.14159265359),
0038         MaxPhi = cms.double(3.14159265359),
0039         MinE   = cms.double(10.0),
0040         MaxE   = cms.double(10.0)
0041     ),
0042     AddAntiParticle = cms.bool(False),
0043     Verbosity       = cms.untracked.int32(0)
0044 )
0045 
0046 process.maxEvents = cms.untracked.PSet(
0047     input = cms.untracked.int32(10)
0048 )
0049 
0050 process.TFileService = cms.Service("TFileService",
0051     fileName = cms.string('matbdg_Castor.root')
0052 )
0053 
0054 process.p1 = cms.Path(process.generator*process.g4SimHits)
0055 process.g4SimHits.UseMagneticField = False
0056 process.g4SimHits.StackingAction.TrackNeutrino = True
0057 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0058 process.g4SimHits.Physics.DummyEMPhysics = True
0059 process.g4SimHits.Physics.CutsPerRegion = False
0060 process.g4SimHits.Generator.ApplyEtaCuts = False
0061 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0062     MaterialBudgetHcal = cms.PSet(
0063         FillHisto    = cms.untracked.bool(False),
0064         PrintSummary = cms.untracked.bool(False),
0065         DoHCAL       = cms.untracked.bool(False),
0066         NBinPhi      = cms.untracked.int32(180),
0067         NBinEta      = cms.untracked.int32(100),
0068         EtaLow       = cms.untracked.double(-7.0),
0069         EtaHigh      = cms.untracked.double(-5.0),
0070         RMax         = cms.untracked.double(1.0),
0071         ZMax         = cms.untracked.double(18.0)
0072     ),
0073     type = cms.string('MaterialBudgetHcal')),
0074 cms.PSet(
0075     CheckForHighEtPhotons = cms.untracked.bool(False),
0076     TrackMin     = cms.untracked.int32(0),
0077     TrackMax     = cms.untracked.int32(999999999),
0078     TrackStep    = cms.untracked.int32(1),
0079     EventMin     = cms.untracked.int32(0),
0080     EventMax     = cms.untracked.int32(0),
0081     EventStep    = cms.untracked.int32(1),
0082     PDGids       = cms.untracked.vint32(),
0083     VerboseLevel = cms.untracked.int32(0),
0084     G4Verbose    = cms.untracked.bool(True),
0085     DEBUG        = cms.untracked.bool(False),
0086     type      = cms.string('TrackingVerboseAction')
0087 ))
0088 
0089