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 
0005 process.load("SimGeneral.HepPDTESSource.pythiapdt_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.g4SimHits.initialSeed = 9876
0022 
0023 process.MessageLogger = cms.Service("MessageLogger",
0024     cerr = cms.untracked.PSet(
0025         enable = cms.untracked.bool(False)
0026     ),
0027     cout = cms.untracked.PSet(
0028         MaterialBudget = cms.untracked.PSet(
0029             limit = cms.untracked.int32(0)
0030         ),
0031         default = cms.untracked.PSet(
0032             limit = cms.untracked.int32(0)
0033         ),
0034         enable = cms.untracked.bool(True)
0035     )
0036 )
0037 
0038 process.source = cms.Source("PoolSource",
0039     fileNames = cms.untracked.vstring('file:single_neutrinoP_random.root',
0040                                       'file:single_neutrinoN_random.root')
0041 )
0042 
0043 process.maxEvents = cms.untracked.PSet(
0044     input = cms.untracked.int32(-1)
0045 )
0046 
0047 process.TFileService = cms.Service("TFileService",
0048     fileName = cms.string('matbdg_Castor.root')
0049 )
0050 
0051 process.p1 = cms.Path(process.g4SimHits)
0052 process.g4SimHits.UseMagneticField = False
0053 process.g4SimHits.StackingAction.TrackNeutrino = True
0054 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0055 process.g4SimHits.Physics.DummyEMPhysics = True
0056 process.g4SimHits.Physics.CutsPerRegion = False
0057 process.g4SimHits.Generator.ApplyEtaCuts = False
0058 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0059     MaterialBudgetHcal = cms.PSet(
0060         FillHisto    = cms.untracked.bool(True),
0061         PrintSummary = cms.untracked.bool(False),
0062         DoHCAL       = cms.untracked.bool(False),
0063         NBinPhi      = cms.untracked.int32(360),
0064         NBinEta      = cms.untracked.int32(100),
0065         EtaLow       = cms.untracked.double(-7.0),
0066         EtaHigh      = cms.untracked.double(-5.0),
0067         RMax         = cms.untracked.double(1.0),
0068         ZMax         = cms.untracked.double(18.0)
0069     ),
0070     type = cms.string('MaterialBudgetHcal')
0071 ))
0072 
0073