Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:19

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.GeometryExtendedReco_cff")
0010 
0011 #Magnetic Field
0012 #
0013 process.load("Configuration.StandardSequences.MagneticField_38T_cff")
0014 
0015 # Output of events, etc...
0016 #
0017 # Explicit note : since some histos/tree might be dumped directly,
0018 #                 better NOT use PoolOutputModule !
0019 # Detector simulation (Geant4-based)
0020 #
0021 process.load("SimG4Core.Application.g4SimHits_cfi")
0022 
0023 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0024     moduleSeeds = cms.PSet(
0025         g4SimHits = cms.untracked.uint32(9876)
0026     )
0027 )
0028 
0029 process.load('FWCore.MessageService.MessageLogger_cfi')
0030 if 'MessageLogger' in process.__dict__:
0031     process.MessageLogger.MaterialBudget=dict()
0032 
0033 process.source = cms.Source("PoolSource",
0034     fileNames = cms.untracked.vstring('file:single_neutrino_random.root')
0035 )
0036 
0037 process.maxEvents = cms.untracked.PSet(
0038     input = cms.untracked.int32(-1)
0039 )
0040 
0041 process.p1 = cms.Path(process.g4SimHits)
0042 process.g4SimHits.UseMagneticField = False
0043 process.g4SimHits.StackingAction.TrackNeutrino = True
0044 process.g4SimHits.Physics.type = 'SimG4Core/Physics/DummyPhysics'
0045 process.g4SimHits.Physics.DummyEMPhysics = True
0046 process.g4SimHits.Physics.CutsPerRegion = False
0047 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0048     type = cms.string('MaterialBudgetAction'),
0049     MaterialBudgetAction = cms.PSet(
0050         HistosFile = cms.string('matbdg_InFrontOfECAL.root'),
0051         AllStepsToTree = cms.bool(False),
0052         HistogramList = cms.string('ECAL'),
0053         SelectedVolumes = cms.vstring('BEAM', 
0054             'Tracker'),
0055         # string TextFile = "None"          # "None" means this option 
0056         TreeFile = cms.string('None'),
0057         StopAfterProcess = cms.string('None'),
0058         TextFile = cms.string('matbdg_InFrontOfECAL.txt')
0059     )
0060 ))
0061 
0062