# 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/HIG-RunIISummer15GS-00073-fragment.py --filein dbs:/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/RunIIWinter15wmLHE-MCRUN2_71_V1-v2/LHE --fileout file:HIG-RunIISummer15GS-00073.root --mc --eventcontent RAWSIM --customise SLHCUpgradeSimulations/Configuration/postLS1Customs.customisePostLS1,Configuration/DataProcessing/Utils.addMonitoring --datatier GEN-SIM --conditions MCRUN2_71_V1::All --beamspot Realistic50ns13TeVCollision --step GEN,SIM --magField 38T_PostLS1 --python_filename /afs/cern.ch/cms/PPD/PdmV/work/McM/submit/HIG-RunIISummer15GS-00073/HIG-RunIISummer15GS-00073_1_cfg.py --no_exec -n 171
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(171)
)

# Input source
process.source = cms.Source("PoolSource",
    secondaryFileNames = cms.untracked.vstring(),
    fileNames = cms.untracked.vstring('/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/062F4063-0F40-E511-9DF6-001E673983F4.root', 
        '/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/0AB42575-8B48-E511-B16C-782BCB407CFD.root', 
        '/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/0CC27703-8C48-E511-99B1-001E673D2EB9.root', 
        '/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/0E79BB8C-0E40-E511-A114-02163E0137FD.root', 
        '/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/1C7248E4-0E40-E511-B750-02163E0135C3.root', 
        '/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/1CB7BF85-9448-E511-9049-F45214C74958.root', 
        '/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/1CBC28D2-4942-E511-88F7-000F532734B4.root', 
        '/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/20D99786-7040-E511-B6E9-0025905AA9F0.root', 
        '/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/20F6CE06-0B40-E511-B1CB-002590200B4C.root', 
        '/store/mc/RunIIWinter15wmLHE/ggZH_HToBB_ZToLL_M125_13TeV_amcatnlo_pythia/LHE/MCRUN2_71_V1-v2/30000/225D5B18-6D40-E511-90EF-00266CF9C1E0.root'),
    inputCommands = cms.untracked.vstring('keep *', 
        'drop LHEXMLStringProduct_*_*_*'),
    dropDescendantsOfDroppedBranches = cms.untracked.bool(False)
)

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/HIG-RunIISummer15GS-00073-fragment.py nevts:171'),
    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:HIG-RunIISummer15GS-00073.root'),
    dataset = cms.untracked.PSet(
        filterName = cms.untracked.string(''),
        dataTier = cms.untracked.string('GEN-SIM')
    ),
    SelectEvents = cms.untracked.PSet(
        SelectEvents = cms.vstring('generation_step')
    )
)

# 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),
    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'),
        processParameters = 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 = 30.', 
            'JetMatching:nQmatch = 5', 
            'JetMatching:nJetMax = 1', 
            'JetMatching:doShowerKt = off', 
            '25:m0 = 125.0', 
            '25:onMode = off', 
            '25:onIfMatch = 5 -5'),
        parameterSets = cms.vstring('pythia8CommonSettings', 
            'pythia8CUEP8M1Settings', 
            'processParameters')
    )
)


# Path and EndPath definitions
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)

# Schedule definition
process.schedule = cms.Schedule(process.generation_step,process.genfiltersummary_step,process.simulation_step,process.endjob_step,process.RAWSIMoutput_step)
# filter all path with the production filter sequence
for path in process.paths:
	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
