# Auto generated configuration file
# using: 
# Revision: 1.19 
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
# with command line options: Configuration/GenProduction/python/SUS-RunIISummer15wmLHEGS-00029-fragment.py --fileout file:SUS-RunIISummer15wmLHEGS-00029.root --mc --eventcontent RAWSIM,LHE --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1,Configuration/DataProcessing/Utils.addMonitoring --datatier GEN-SIM,LHE --conditions MCRUN2_71_V1::All --beamspot Realistic50ns13TeVCollision --step LHE,GEN,SIM --magField 38T_PostLS1 --python_filename /afs/cern.ch/cms/PPD/PdmV/work/McM/submit/SUS-RunIISummer15wmLHEGS-00029/SUS-RunIISummer15wmLHEGS-00029_1_cfg.py --no_exec -n 147
import FWCore.ParameterSet.Config as cms

process = cms.Process('SIM')

# import of standard configurations
process.load('Configuration.StandardSequences.Services_cff')
process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('SimGeneral.MixingModule.mixNoPU_cfi')
process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
process.load('Configuration.Geometry.GeometrySimDB_cff')
process.load('Configuration.StandardSequences.MagneticField_38T_PostLS1_cff')
process.load('Configuration.StandardSequences.Generator_cff')
process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic50ns13TeVCollision_cfi')
process.load('GeneratorInterface.Core.genFilterSummary_cff')
process.load('Configuration.StandardSequences.SimIdeal_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(147)
)

# Input source
process.source = cms.Source("EmptySource")

process.options = cms.untracked.PSet(

)

# Production Info
process.configurationMetadata = cms.untracked.PSet(
    version = cms.untracked.string('$Revision: 1.19 $'),
    annotation = cms.untracked.string('Configuration/GenProduction/python/SUS-RunIISummer15wmLHEGS-00029-fragment.py nevts:147'),
    name = cms.untracked.string('Applications')
)

# Output definition

process.RAWSIMoutput = cms.OutputModule("PoolOutputModule",
    splitLevel = cms.untracked.int32(0),
    eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
    outputCommands = process.RAWSIMEventContent.outputCommands,
    fileName = cms.untracked.string('file:SUS-RunIISummer15wmLHEGS-00029.root'),
    dataset = cms.untracked.PSet(
        filterName = cms.untracked.string(''),
        dataTier = cms.untracked.string('GEN-SIM')
    ),
    SelectEvents = cms.untracked.PSet(
        SelectEvents = cms.vstring('generation_step')
    )
)

process.LHEoutput = cms.OutputModule("PoolOutputModule",
    splitLevel = cms.untracked.int32(0),
    eventAutoFlushCompressedSize = cms.untracked.int32(5242880),
    outputCommands = process.LHEEventContent.outputCommands,
    fileName = cms.untracked.string('file:SUS-RunIISummer15wmLHEGS-00029_inLHE.root'),
    dataset = cms.untracked.PSet(
        filterName = cms.untracked.string(''),
        dataTier = cms.untracked.string('LHE')
    )
)

# Additional output definition

# Other statements
process.genstepfilter.triggerConditions=cms.vstring("generation_step")
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'MCRUN2_71_V1::All', '')

process.generator = cms.EDFilter("Pythia8HadronizerFilter",
    pythiaPylistVerbosity = cms.untracked.int32(1),
    filterEfficiency = cms.untracked.double(1.0),
    pythiaHepMCVerbosity = cms.untracked.bool(False),
    SLHATableForPythia8 = cms.string('\n#\nBLOCK MASS # \n      6 1.730000e+02 #  mt\n      25 1.25e02 #  mh01\n      35 1.00e05 #  mh02\n      36 1.00e05 #  ma0\n      37 1.00e05 #  mh\n      1000001 1.00e05 #  set of param :1*msd1, 1*msd2\n      1000002 1.00e05 #  set of param :1*msu1, 1*msu2\n      1000003 1.00e05 #  sl : msd1\n      1000004 1.00e05 #  cl : msu1\n      1000005 500   #  msd3\n      1000006 1.00e05 #  msu3\n      1000011 1.00e05 #  set of param :1*msl1, 1*msl2\n      1000012 1.00e05 #  set of param :1*msn1, 1*msn2\n      1000013 1.00e05 #  mul- : msl1\n      1000014 1.00e05 #  svm : msn1\n      1000015 1.00e05 #  msl3\n      1000016 1.00e05 #  msn3\n      1000021 1.00e05 #  mgo\n      1000022 50  #  mneu1\n      1000023 180 #  mneu2\n      1000024 1.00e05 #  mch1\n      1000025 1.00e05 #  mneu3\n      1000035 1.00e05 #  mneu4\n      1000037 1.00e05 #  mch2\n      2000001 1.00e05 #  set of param :1*msd4, 1*msd5\n      2000002 1.00e05 #  set of param :1*msu4, 1*msu5\n      2000003 1.00e05 #  sr : msd4\n      2000004 1.00e05 #  cr : msu4\n      2000005 1.00e05 #  msd6\n      2000006 1.00e05 #  msu6\n      2000011 1.00e05 #  set of param :1*msl4, 1*msl5\n      2000013 1.00e05 #  mur- : msl4\n      2000015 1.00e05 #  msl6\n## INFORMATION FOR DECAY\nDECAY 1000001 5.312788e+00 #  wsd1\nDECAY 1000002 5.477195e+00 #  wsu1\nDECAY 1000003 5.312788e+00 #  wsd2\nDECAY 1000004 5.477195e+00 #  wsu2\nDECAY 1000005 1.000000e+00 #  wsd3\n     1.00000000E+00    2     1000023       5\nDECAY 1000006 2.021596e+00 #  wsu3\nDECAY 1000011 2.136822e-01 #  wsl1\nDECAY 1000012 1.498816e-01 #  wsn1\nDECAY 1000013 2.136822e-01 #  wsl2\nDECAY 1000014 1.498816e-01 #  wsn2\nDECAY 1000015 1.483273e-01 #  wsl3\nDECAY 1000016 1.475190e-01 #  wsn3\nDECAY 1000021 5.506754e+00 #  wgo\nDECAY 1000022 0.000000e+00 #  n1 : 0.0\nDECAY 1000023 1.000000e-01 #  wneu2\n     1.00000000E+00    2     1000022       25\nDECAY 1000024 1.704145e-02 #  wch1\nDECAY 1000025 1.915985e+00 #  wneu3\nDECAY 1000035 2.585851e+00 #  wneu4\nDECAY 1000037 2.486895e+00 #  wch2\nDECAY 2000001 2.858123e-01 #  wsd4\nDECAY 2000002 1.152973e+00 #  wsu4\nDECAY 2000003 2.858123e-01 #  wsd5\nDECAY 2000004 1.152973e+00 #  wsu5\nDECAY 2000005 8.015663e-01 #  wsd6\nDECAY 2000006 7.373133e+00 #  wsu6\nDECAY 2000011 2.161216e-01 #  wsl4\nDECAY 2000013 2.161216e-01 #  wsl5\nDECAY 2000015 2.699061e-01 #  wsl6\n'),
    comEnergy = cms.double(13000.0),
    maxEventsToPrint = cms.untracked.int32(1),
    PythiaParameters = cms.PSet(
        pythia8CommonSettings = cms.vstring('Tune:preferLHAPDF = 2', 
            'Main:timesAllowErrors = 10000', 
            'Check:epTolErr = 0.01', 
            'Beams:setProductionScalesFromLHEF = off', 
            'SLHA:keepSM = on', 
            'SLHA:minMassSM = 1000.', 
            'ParticleDecays:limitTau0 = on', 
            'ParticleDecays:tau0Max = 10', 
            'ParticleDecays:allowPhotonRadiation = on'),
        pythia8CUEP8M1Settings = cms.vstring('Tune:pp 14', 
            'Tune:ee 7', 
            'MultipartonInteractions:pT0Ref=2.4024', 
            'MultipartonInteractions:ecmPow=0.25208', 
            'MultipartonInteractions:expPow=1.6'),
        JetMatchingParameters = cms.vstring('JetMatching:setMad = off', 
            'JetMatching:scheme = 1', 
            'JetMatching:merge = on', 
            'JetMatching:jetAlgorithm = 2', 
            'JetMatching:etaJetMax = 5.', 
            'JetMatching:coneRadius = 1.', 
            'JetMatching:slowJetPower = 1', 
            'JetMatching:qCut = 58', 
            'JetMatching:nQmatch = 5', 
            'JetMatching:nJetMax = 2', 
            'JetMatching:doShowerKt = off', 
            '25:m0 = 125.0', 
            'ResonanceDecayFilter:filter = on', 
            'ResonanceDecayFilter:mothers = 25', 
            'ResonanceDecayFilter:daughters = 22,22'),
        parameterSets = cms.vstring('pythia8CommonSettings', 
            'pythia8CUEP8M1Settings', 
            'JetMatchingParameters')
    )
)


process.externalLHEProducer = cms.EDProducer("ExternalLHEProducer",
    nEvents = cms.untracked.uint32(147),
    outputFile = cms.string('cmsgrid_final.lhe'),
    scriptName = cms.FileInPath('GeneratorInterface/LHEInterface/data/run_generic_tarball_cvmfs.sh'),
    numberOfParameters = cms.uint32(1),
    args = cms.vstring('/cvmfs/cms.cern.ch/phys_generator/gridpacks/slc6_amd64_gcc481/13TeV/madgraph/V5_2.3.3/sus_sms/T2bH-Hgg/T2bH-Hgg-sbm500-sbw1-chi2m230-chi2w0p1-chi1m100_tarball.tar.xz')
)


# Path and EndPath definitions
process.lhe_step = cms.Path(process.externalLHEProducer)
process.generation_step = cms.Path(process.pgen)
process.simulation_step = cms.Path(process.psim)
process.genfiltersummary_step = cms.EndPath(process.genFilterSummary)
process.endjob_step = cms.EndPath(process.endOfProcess)
process.RAWSIMoutput_step = cms.EndPath(process.RAWSIMoutput)
process.LHEoutput_step = cms.EndPath(process.LHEoutput)

# Schedule definition
process.schedule = cms.Schedule(process.lhe_step,process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.RAWSIMoutput_step,process.LHEoutput_step)
# filter all path with the production filter sequence
for path in process.paths:
	if path in ['lhe_step']: continue
	getattr(process,path)._seq = process.generator * getattr(process,path)._seq 

# customisation of the process.

# Automatic addition of the customisation function from Configuration.DataProcessing.Utils
from Configuration.DataProcessing.Utils import addMonitoring 

#call to customisation function addMonitoring imported from Configuration.DataProcessing.Utils
process = addMonitoring(process)

# Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.postLS1Customs
from SLHCUpgradeSimulations.Configuration.postLS1Customs import customisePostLS1 

#call to customisation function customisePostLS1 imported from SLHCUpgradeSimulations.Configuration.postLS1Customs
process = customisePostLS1(process)

# End of customisation functions
