# Auto generated configuration file
# using: 
# Revision: 1.381.2.28 
# Source: /local/reps/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v 
# with command line options: Configuration/GenProduction/python/TOP-Summer12-00238-fragment.py --dbsquery find file where dataset=/TT_noCorr_scaleup_8TeV-mcatnlo/Summer12-START53_V7C-v2/GEN --fileout file:TOP-Summer12-00238.root --mc --eventcontent RAWSIM --datatier GEN-SIM --conditions START53_V7C::All --beamspot Realistic8TeVCollision --step GEN,SIM --python_filename /afs/cern.ch/cms/PPD/PdmV/work/McM/submit/TOP-Summer12-00238/TOP-Summer12-00238_1_cfg.py --no_exec --customise Configuration/DataProcessing/Utils.addMonitoring -n 288
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.StandardSequences.GeometrySimDB_cff')
process.load('Configuration.StandardSequences.MagneticField_38T_cff')
process.load('Configuration.StandardSequences.Generator_cff')
process.load('IOMC.EventVertexGenerators.VtxSmearedRealistic8TeVCollision_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(288)
)

# Input source
process.source = cms.Source("PoolSource",
    secondaryFileNames = cms.untracked.vstring(),
    fileNames = cms.untracked.vstring('/store/generator/Summer12/TT_noCorr_scaleup_8TeV-mcatnlo/GEN/START53_V7C-v2/00000/FE411D88-DB68-E311-B484-0025901AF676.root', 
        '/store/generator/Summer12/TT_noCorr_scaleup_8TeV-mcatnlo/GEN/START53_V7C-v2/00000/EAD1EF0C-DB68-E311-98F7-002481E0DC70.root', 
        '/store/generator/Summer12/TT_noCorr_scaleup_8TeV-mcatnlo/GEN/START53_V7C-v2/00000/D2EDE2B5-DB68-E311-A285-02163E00E877.root', 
        '/store/generator/Summer12/TT_noCorr_scaleup_8TeV-mcatnlo/GEN/START53_V7C-v2/00000/B286B47A-DB68-E311-8C86-02163E00E6DB.root', 
        '/store/generator/Summer12/TT_noCorr_scaleup_8TeV-mcatnlo/GEN/START53_V7C-v2/00000/66EC4858-DC68-E311-AE35-02163E00CB1A.root', 
        '/store/generator/Summer12/TT_noCorr_scaleup_8TeV-mcatnlo/GEN/START53_V7C-v2/00000/64B75BB9-DB68-E311-BF56-02163E00CC4F.root', 
        '/store/generator/Summer12/TT_noCorr_scaleup_8TeV-mcatnlo/GEN/START53_V7C-v2/00000/466EBD96-DB68-E311-A004-02163E00E85C.root', 
        '/store/generator/Summer12/TT_noCorr_scaleup_8TeV-mcatnlo/GEN/START53_V7C-v2/00000/44750067-DC68-E311-A7E7-02163E00B74C.root', 
        '/store/generator/Summer12/TT_noCorr_scaleup_8TeV-mcatnlo/GEN/START53_V7C-v2/00000/2C921DA0-DB68-E311-B99E-02163E008DB7.root')
)

process.options = cms.untracked.PSet(

)

# Production Info
process.configurationMetadata = cms.untracked.PSet(
    version = cms.untracked.string('$Revision: 1.381.2.28 $'),
    annotation = cms.untracked.string('Configuration/GenProduction/python/TOP-Summer12-00238-fragment.py nevts:288'),
    name = cms.untracked.string('PyReleaseValidation')
)

# 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:TOP-Summer12-00238.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, 'START53_V7C::All', '')

process.dileptonFilter = cms.EDFilter("MCParticlePairFilter",
    Status = cms.untracked.vint32(3, 3),
    MinPt = cms.untracked.vdouble(15, 15),
    ParticleID2 = cms.untracked.vint32(11, 13, 15, -11, -13, 
        -15),
    ParticleID1 = cms.untracked.vint32(11, 13, 15, -11, -13, 
        -15)
)


process.generator = cms.EDFilter("Herwig6HadronizerFilter",
    HerwigParameters = cms.PSet(
        parameterSets = cms.vstring('herwigUEsettings', 
            'herwigMcatnlo'),
        herwigMcatnlo = cms.vstring('PTMIN      = 0.5    ! minimum pt in hadronic jet'),
        herwigUEsettings = cms.vstring('JMUEO     = 1       ! multiparton interaction model', 
            'PTJIM     = 4.189   ! 2.8x(sqrt(s)/1.8TeV)^0.27 @ 8 TeV', 
            'JMRAD(73) = 1.8     ! inverse proton radius squared', 
            'PRSOF     = 0.0     ! prob. of a soft underlying event', 
            'MAXER     = 1000000 ! max error')
    ),
    doMPInteraction = cms.bool(True),
    useJimmy = cms.bool(True),
    herwigHepMCVerbosity = cms.untracked.bool(False),
    filterEfficiency = cms.untracked.double(1.0),
    herwigVerbosity = cms.untracked.int32(0),
    emulatePythiaStatusCodes = cms.untracked.bool(True),
    comEnergy = cms.double(8000.0),
    lhapdfSetPath = cms.untracked.string(''),
    printCards = cms.untracked.bool(False),
    crossSection = cms.untracked.double(211.1),
    maxEventsToPrint = cms.untracked.int32(0)
)


process.ProductionFilterSequence = cms.Sequence(process.generator+process.dileptonFilter)

# 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.ProductionFilterSequence * 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)

# End of customisation functions
