File indexing completed on 2024-04-06 12:32:27
0001
0002
0003
0004
0005
0006 import FWCore.ParameterSet.Config as cms
0007
0008 process = cms.Process('DIGI')
0009
0010
0011 process.load('Configuration.StandardSequences.Services_cff')
0012 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0013 process.load('FWCore.MessageService.MessageLogger_cfi')
0014 process.load('Configuration.EventContent.EventContent_cff')
0015 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0016 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0017 process.load('Configuration.Geometry.GeometrySimDB_cff')
0018 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0019 process.load('Configuration.StandardSequences.Generator_cff')
0020 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0021 process.load('Configuration.StandardSequences.Digi_cff')
0022 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0023 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0024 process.load('SimG4CMS.Forward.zdcGeometryXML_cfi')
0025 process.load('Configuration/StandardSequences/VtxSmearedNoSmear_cff')
0026 process.load('Configuration/StandardSequences/Sim_cff')
0027
0028
0029 process.maxEvents = cms.untracked.PSet(
0030 input = cms.untracked.int32(30000)
0031 )
0032
0033
0034 process.source = cms.Source("EmptySource")
0035
0036 process.options = cms.untracked.PSet()
0037
0038 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0039 PGunParameters = cms.PSet(
0040 PartID = cms.vint32(2112),
0041 MinEta = cms.double(8.5),
0042 MaxEta = cms.double(9.7),
0043 MinPhi = cms.double(-3.14159265359),
0044 MaxPhi = cms.double(3.14159265359),
0045 MinE = cms.double(1379.99),
0046 MaxE = cms.double(1380.01)
0047 ),
0048 Verbosity = cms.untracked.int32(0),
0049 psethack = cms.string('single neutron E 100'),
0050 AddAntiParticle = cms.bool(True),
0051 firstRun = cms.untracked.uint32(1)
0052 )
0053
0054
0055
0056 process.configurationMetadata = cms.untracked.PSet(
0057 version = cms.untracked.string('$Revision: 1.19 $'),
0058 annotation = cms.untracked.string('Configuration/Generator/python/SingleGammaE50_cfi.py nevts:1'),
0059 name = cms.untracked.string('Applications')
0060 )
0061
0062
0063
0064 process.FEVTDEBUGHLToutput = cms.OutputModule("PoolOutputModule",
0065 splitLevel = cms.untracked.int32(0),
0066 eventAutoFlushCompressedSize = cms.untracked.int32(1048576),
0067 outputCommands = process.FEVTDEBUGHLTEventContent.outputCommands,
0068 fileName = cms.untracked.string('MyOutput2.root'),
0069 dataset = cms.untracked.PSet(
0070 filterName = cms.untracked.string(''),
0071 dataTier = cms.untracked.string('GEN-SIM-DIGI')
0072 ),
0073 SelectEvents = cms.untracked.PSet(
0074 SelectEvents = cms.vstring('generation_step')
0075 )
0076 )
0077
0078
0079 process.g4SimHits.UseMagneticField = cms.bool(False)
0080 process.g4SimHits.Physics.DefaultCutValue = cms.double(10.)
0081 process.g4SimHits.Generator.MinEtaCut = cms.double(-9.0)
0082 process.g4SimHits.Generator.MaxEtaCut = cms.double(9.0)
0083 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0084 type = cms.string('ZdcTestAnalysis'),
0085 ZdcTestAnalysis = cms.PSet(
0086 Verbosity = cms.int32(0),
0087 StepNtupleFlag = cms.int32(0),
0088 EventNtupleFlag = cms.int32(1),
0089 StepNtupleFileName = cms.string('stepNtuple.root'),
0090 EventNtupleFileName = cms.string('eventNtuple.root')
0091 )
0092 ))
0093 process.g4SimHits.ZdcSD.UseShowerLibrary = cms.bool(True)
0094 process.g4SimHits.StackingAction.MaxTrackTime = cms.double(10000.)
0095 process.g4SimHits.CaloSD.TmaxHit = cms.double(10000.)
0096
0097
0098
0099
0100 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0101 from Configuration.AlCa.GlobalTag import GlobalTag
0102 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')
0103
0104
0105
0106 process.ProductionFilterSequence = cms.Sequence(process.generator)
0107
0108 process.generation_step = cms.Path(process.pgen)
0109 process.simulation_step = cms.Path(process.psim)
0110 process.digitisation_step = cms.Path(process.pdigi)
0111 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0112 process.endjob_step = cms.EndPath(process.endOfProcess)
0113 process.FEVTDEBUGHLToutput_step = cms.EndPath(process.FEVTDEBUGHLToutput)
0114
0115
0116 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.endjob_step,process.FEVTDEBUGHLToutput_step)
0117
0118 for path in process.paths:
0119 getattr(process,path)._seq = process.generator * getattr(process,path)._seq
0120
0121
0122 def customise(process):
0123
0124 process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
0125 ignoreTotal=cms.untracked.int32(1),
0126 oncePerEventMode=cms.untracked.bool(True))
0127
0128 process.Timing=cms.Service("Timing")
0129
0130
0131
0132 process.MessageLogger.debugModules=cms.untracked.vstring('g4SimHits')
0133
0134
0135 process.MessageLogger.files = dict(G4msg = cms.untracked.PSet(
0136 noTimeStamps = cms.untracked.bool(True)
0137
0138 ,threshold = cms.untracked.string('INFO')
0139 ,INFO = cms.untracked.PSet(limit = cms.untracked.int32(0))
0140 ,DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(0))
0141 ,FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(0))
0142 ,FwkSummary = cms.untracked.PSet(limit = cms.untracked.int32(0))
0143 ,Root_NoDictionary = cms.untracked.PSet(limit = cms.untracked.int32(0))
0144 ,FwkJob = cms.untracked.PSet(limit = cms.untracked.int32(0))
0145 ,TimeReport = cms.untracked.PSet(limit = cms.untracked.int32(0))
0146 ,TimeModule = cms.untracked.PSet(limit = cms.untracked.int32(0))
0147 ,TimeEvent = cms.untracked.PSet(limit = cms.untracked.int32(0))
0148 ,MemoryCheck = cms.untracked.PSet(limit = cms.untracked.int32(0))
0149
0150
0151
0152
0153
0154 ,PhysicsList = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0155 ,G4cout = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0156 ,G4cerr = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0157 ,CaloSim = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0158 ,ForwardSim = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0159 )
0160 )
0161
0162
0163 process.options = cms.untracked.PSet(
0164 wantSummary = cms.untracked.bool(True)
0165 )
0166
0167
0168
0169 return(process)
0170
0171
0172
0173 process = customise(process)