# 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-00038-fragment.py --filein dbs:/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/RunIIWinter15wmLHE-MCRUN2_71_V1-v2/LHE --fileout file:HIG-RunIISummer15GS-00038.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-00038/HIG-RunIISummer15GS-00038_1_cfg.py --no_exec -n 137
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(137)
)

# Input source
process.source = cms.Source("PoolSource",
    secondaryFileNames = cms.untracked.vstring(),
    fileNames = cms.untracked.vstring('/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/000A49C0-E3F9-E411-BBAE-001EC9AF1F2E.root', 
        '/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/0058E6C6-CEF9-E411-96F8-FA163E7E4FEC.root', 
        '/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/006D921A-E2F9-E411-9E08-002590E2F65E.root', 
        '/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/007784CE-DCF9-E411-ADA6-00259082117A.root', 
        '/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/00AC56DA-D3F9-E411-8F77-D4AE526A0B29.root', 
        '/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/00B19DEC-CFF9-E411-8FA1-00E08148331D.root', 
        '/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/00BD0EDA-D3F9-E411-A529-A0040420FE80.root', 
        '/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/021A645D-E7F9-E411-B0E4-0025904897C2.root', 
        '/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/02358AE8-D9F9-E411-B822-0024E850EE78.root', 
        '/store/mc/RunIIWinter15wmLHE/GluGluHToBB_M125_13TeV_amcatnloFXFX_pythia8/LHE/MCRUN2_71_V1-v2/80000/02418397-D0F9-E411-99B9-0022198273C0.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-00038-fragment.py nevts:137'),
    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-00038.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'),
        pythia8aMCatNLOSettings = cms.vstring('SpaceShower:pTmaxMatch = 1', 
            'SpaceShower:pTmaxFudge = 1', 
            'SpaceShower:MEcorrections = off', 
            'TimeShower:pTmaxMatch = 1', 
            'TimeShower:pTmaxFudge = 1', 
            'TimeShower:MEcorrections = off', 
            'TimeShower:globalRecoil = on', 
            'TimeShower:limitPTmaxGlobal = on', 
            'TimeShower:nMaxGlobalRecoil = 1', 
            'TimeShower:globalRecoilMode = 2', 
            'TimeShower:nMaxGlobalBranch = 1'),
        processParameters = cms.vstring('JetMatching:setMad = off', 
            'JetMatching:scheme = 1', 
            'JetMatching:merge = on', 
            'JetMatching:jetAlgorithm = 2', 
            'JetMatching:etaJetMax = 999.', 
            'JetMatching:coneRadius = 1.', 
            'JetMatching:slowJetPower = 1', 
            'JetMatching:qCut = 30.', 
            'JetMatching:doFxFx = on', 
            'JetMatching:qCutME = 10.', 
            'JetMatching:nQmatch = 5', 
            'JetMatching:nJetMax = 2', 
            'SLHA:useDecayTable = off', 
            '25:m0 = 125.0', 
            '25:onMode = off', 
            '25:onIfAny = 24', 
            '24:onMode = off', 
            '24:onIfAny = 5 -5'),
        parameterSets = cms.vstring('pythia8CommonSettings', 
            'pythia8CUEP8M1Settings', 
            'pythia8aMCatNLOSettings', 
            '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
