Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:37

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # with command line options: Configuration/Generator/python/SingleGammaE50_cfi.py -s GEN,SIM,DIGI --conditions auto:mc --datatier GEN-SIM-DIGI --eventcontent FEVTDEBUGHLT -n 1 --no_exec
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process('DIGI')
0009 
0010 # import of standard configurations
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(10)
0031 )
0032 
0033 # Input source
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(99.99),
0046     MaxE = cms.double(100.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 # Production Info
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 # Output definition
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('MyOutput.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 # Special settings    
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 # Additional output definition
0098 
0099 # Other statements
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 # Path and EndPath definitions
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 # Schedule definition
0116 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.digitisation_step,process.endjob_step,process.FEVTDEBUGHLToutput_step)
0117 # filter all path with the production filter sequence
0118 for path in process.paths:
0119     getattr(process,path)._seq = process.generator * getattr(process,path)._seq 
0120 
0121 
0122 def customise(process):
0123     #Adding SimpleMemoryCheck service:
0124     process.SimpleMemoryCheck=cms.Service("SimpleMemoryCheck",
0125                                           ignoreTotal=cms.untracked.int32(1),
0126                                           oncePerEventMode=cms.untracked.bool(True))
0127     #Adding Timing service:
0128     process.Timing=cms.Service("Timing")
0129     
0130     #Tweak Message logger to dump G4cout and G4cerr messages in G4msg.log
0131     #print process.MessageLogger.__dict__
0132     process.MessageLogger.debugModules=cms.untracked.vstring('g4SimHits')
0133                                                            
0134     #Configuring the G4msg.log output
0135     process.MessageLogger.files.G4msg =  cms.untracked.PSet(
0136         noTimeStamps = cms.untracked.bool(True)
0137         #First eliminate unneeded output
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         #TimeModule, TimeEvent, TimeReport are written to LogAsbolute instead of LogInfo with a category
0150         #so they cannot be eliminated from any destination (!) unless one uses the summaryOnly option
0151         #in the Timing Service... at the price of silencing the output needed for the TimingReport profiling
0152         #
0153         #Then add the wanted ones:
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     #Add these 3 lines to put back the summary for timing information at the end of the logfile
0162     #(needed for TimeReport report)
0163     process.options = cms.untracked.PSet(
0164         wantSummary = cms.untracked.bool(True)
0165         )
0166 
0167 #    process.g4SimHits.G4Commands = cms.vstring('/tracking/verbose 1')
0168 
0169     return(process)
0170 
0171 # End of customisation function definition
0172 
0173 process = customise(process)