Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:04:53

0001 # A script to produce Z events using pythia8 and with no FSR
0002 # This script is to be used to compare with DYphotospp_Tune4C_13TeV_pythia8.py to demonstrate/test
0003 # the additions of FSR by Photos++
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process('VALIDATION')
0008 
0009 # import of standard configurations
0010 process.load('Configuration.StandardSequences.Services_cff')
0011 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0012 process.load('FWCore.MessageService.MessageLogger_cfi')
0013 process.load('Configuration.EventContent.EventContent_cff')
0014 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0015 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0016 process.load('Configuration.StandardSequences.MagneticField_38T_cff')
0017 process.load('Configuration.StandardSequences.Generator_cff')
0018 process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_cfi')
0019 process.load('GeneratorInterface.Core.genFilterSummary_cff')
0020 process.load('Configuration.StandardSequences.Validation_cff')
0021 process.load('Configuration.StandardSequences.EndOfProcess_cff')
0022 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0023 
0024 process.maxEvents = cms.untracked.PSet(
0025     input = cms.untracked.int32(3000)
0026 )
0027 
0028 # Input source
0029 process.source = cms.Source("EmptySource")
0030 
0031 process.options = cms.untracked.PSet(
0032 
0033 )
0034 
0035 # Production Info
0036 process.configurationMetadata = cms.untracked.PSet(
0037     version = cms.untracked.string('$Revision: 1.19 $'),
0038     annotation = cms.untracked.string('Configuration/Generator/python/ThirteenTeV/WToMuNu_M_500_Tune4C_13TeV_pythia8_cfi.py nevts:100000'),
0039     name = cms.untracked.string('Applications')
0040 )
0041 
0042 # Output definition
0043 
0044 process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
0045     splitLevel = cms.untracked.int32(0),
0046     eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
0047     outputCommands = process.RAWSIMEventContent.outputCommands,
0048     fileName = cms.untracked.string('DYnorad_Tune4C_13TeV_pythia8_cfi_py_GEN_VALIDATION.root'),
0049     dataset = cms.untracked.PSet(
0050         filterName = cms.untracked.string(''),
0051         dataTier = cms.untracked.string('GEN')
0052     ),
0053     SelectEvents = cms.untracked.PSet(
0054         SelectEvents = cms.vstring('generation_step')
0055     )
0056 )
0057 
0058 # Additional output definition
0059 
0060 # Other statements
0061 process.genstepfilter.triggerConditions=cms.vstring("generation_step")
0062 process.mix.playback = True
0063 process.mix.digitizers = cms.PSet()
0064 for a in process.aliases: delattr(process, a)
0065 from Configuration.AlCa.GlobalTag import GlobalTag
0066 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:startup', '')
0067 
0068 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0069     UseExternalGenerators = cms.untracked.bool(True),
0070     pythiaPylistVerbosity = cms.untracked.int32(1),
0071     filterEfficiency = cms.untracked.double(1),
0072     pythiaHepMCVerbosity = cms.untracked.bool(False),
0073     comEnergy = cms.double(13000.0),
0074     crossSection = cms.untracked.double(0.2188),
0075     maxEventsToPrint = cms.untracked.int32(1),
0076     PythiaParameters = cms.PSet(
0077         processParameters = cms.vstring('Main:timesAllowErrors = 10000', 
0078                     'ParticleDecays:limitTau0 = on', 
0079                     'ParticleDecays:tauMax = 10', 
0080                     'Tune:ee 3', 
0081                     'Tune:pp 5',
0082                     'PartonLevel:FSR = off',
0083                     'WeakSingleBoson:ffbar2gmZ = on', 
0084                     '23:onMode = off', 
0085                     '23:onIfAny = 13', 
0086                     '23:mMin = 50.', 
0087                     '23:mMax = 120.'
0088                     ),
0089         parameterSets = cms.vstring('processParameters')
0090     )
0091 )
0092 
0093 process.ProductionFilterSequence = cms.Sequence(process.generator)
0094 
0095 # Path and EndPath definitions
0096 process.generation_step = cms.Path(process.pgen)
0097 process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
0098 process.validation_step = cms.EndPath(process.genstepfilter+process.genvalid_all)
0099 process.endjob_step = cms.EndPath(process.endOfProcess)
0100 process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
0101 
0102 # Schedule definition
0103 process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.validation_step,process.endjob_step,process.RAWSIMoutput_step)
0104 # filter all path with the production filter sequence
0105 for path in process.paths:
0106     getattr(process,path)._seq = process.ProductionFilterSequence * getattr(process,path)._seq 
0107 
0108 # customisation of the process.
0109 
0110 # Automatic addition of the customisation function from SimGeneral.MixingModule.fullMixCustomize_cff
0111 from SimGeneral.MixingModule.fullMixCustomize_cff import setCrossingFrameOn 
0112 
0113 #call to customisation function setCrossingFrameOn imported from SimGeneral.MixingModule.fullMixCustomize_cff
0114 process = setCrossingFrameOn(process)
0115 
0116 # End of customisation functions