Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:29:44

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 
0008 process.source = cms.Source("EmptySource")
0009 
0010 process.generator = cms.EDFilter("Pythia8GeneratorFilter",
0011     maxEventsToPrint = cms.untracked.int32(0),
0012     pythiaPylistVerbosity = cms.untracked.int32(0),
0013     filterEfficiency = cms.untracked.double(1.0),
0014     pythiaHepMCVerbosity = cms.untracked.bool(True),
0015     comEnergy = cms.double(7000.),
0016     
0017     ExternalDecays = cms.PSet(
0018         Tauola = cms.untracked.PSet( # tauola++ is actually used
0019          UseTauolaPolarization = cms.bool(True),
0020          InputCards = cms.PSet
0021          ( 
0022             # 0 = generic decay
0023         pjak1 = cms.int32(0), # 1 = electron mode
0024         pjak2 = cms.int32(0), # 2 = muon mode
0025         mdtau = cms.int32(0)  # does NOT matter at this point...
0026          )
0027     ),
0028         parameterSets = cms.vstring('Tauola')
0029     ),
0030     
0031     PythiaParameters = cms.PSet(
0032         py8GeneralSettings = cms.vstring(  'Main:timesAllowErrors    = 10000', 
0033                                            'ParticleDecays:limitTau0 = on',
0034                                        'ParticleDecays:tauMax = 10'
0035         ),
0036         py8UESettings = cms.vstring(       'Tune:pp 2',
0037                                        'Tune:ee 3'
0038     ),
0039         py8SpecialSettings   = cms.vstring('HadronLevel:Hadronize = off',     # mstp(111)=1
0040                            #' ParticleDecays:limitTau0 = on',  # mstj(22)=2 - decay unstable particles
0041                            # 'ParticleDecays:tau0Max   = 10.', # parj(71)=10.- for which ctau < 10 mm
0042                        'PartonLevel:ISR = off',
0043                        'PartonLevel:FSR = off',
0044                        'PartonLevel:MPI = off',           # mstp(81)=0
0045                        # for pp intractions, SpaceShower things are not important,
0046                        # but TimeShower settings are relevant
0047                        'TimeShower:QEDshowerByL = off',
0048                        'TimeShower:QEDshowerByQ = off',
0049                        'SpaceShower:QEDshowerByL = off',
0050                        'SpaceShower:QEDshowerByQ = off',
0051                        'PhaseSpace:pTHatMin = 5.',
0052                        'PhaseSpace:pTHatMax = 150.',
0053                        'StringZ:usePetersonB = on', # these 2 together ==
0054                        'StringZ:usePetersonC = on'  # mstj(11)=3
0055     ),
0056         py8ProcessSettings = cms.vstring(  # 'HiggsSM:gg2H = on',
0057                        # 'HiggsSM:ff2Hff(t:ZZ) = on',
0058                        # 'HiggsSM:ff2Hff(t:WW) = on'
0059                        # 'WeakDoubleBoson:ffbar2ZW = on' 
0060                        # 'WeakSingleBoson:ffbar2gmZ = on' # msel=11
0061                        'WeakSingleBoson:ffbar2W = on' 
0062     ),
0063     py8WDecaySettings = cms.vstring(   '24:onMode = off', 
0064                                        '24:onIfAny = 15' 
0065     ),
0066         parameterSets = cms.vstring('py8GeneralSettings',
0067                                 'py8UESettings',
0068                                 'py8ProcessSettings',
0069                     'py8WDecaySettings' 
0070                     )
0071     )
0072 )
0073 
0074 # The following three lines reduce the clutter of repeated printouts
0075 # of the same exception message.
0076 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0077 
0078 process.MessageLogger.cerr.enableStatistics = False
0079 
0080 
0081 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0082     generator = cms.PSet(
0083         initialSeed = cms.untracked.uint32(123456789),
0084         engineName = cms.untracked.string('HepJamesRandom')
0085     )
0086 )
0087 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0088 
0089 process.Timing=cms.Service("Timing",
0090     summaryOnly=cms.untracked.bool(True))
0091 
0092 process.maxEvents = cms.untracked.PSet(
0093     input = cms.untracked.int32(5)
0094 )
0095 
0096 process.GEN = cms.OutputModule("PoolOutputModule",
0097     fileName = cms.untracked.string('Test_Py8_W2TauNu_TauolaCxx.root')
0098 )
0099 
0100 process.p = cms.Path(process.generator)
0101 process.p1 = cms.Path(process.randomEngineStateProducer)
0102 process.outpath = cms.EndPath(process.GEN)
0103 
0104 #process.schedule = cms.Schedule(process.p, process.p1, process.outpath)
0105 process.schedule = cms.Schedule(process.p)
0106