# 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/HIN-pAWinter13-00086-fragment.py --filein dbs:/Hijing_PPb502_MinimumBias/HiWinter13-pa-START53_V10-v2/GEN-SIM --fileout file:HIN-pAWinter13-00086.root --mc --eventcontent RAWSIM --pileup NoPileUp --datatier GEN-SIM --processName HISIGNAL --conditions STARTHI53_V27::All --beamspot Match8TeVCollisionPPbBoost --customise_commands process.genParticles.src=cms.InputTag("hiSignal") \n process.VtxSmeared.Beta=cms.double(0.434) --step GEN,SIM --himix --datamix NODATAMIXER --python_filename /afs/cern.ch/cms/PPD/PdmV/work/McM/submit/HIN-pAWinter13-00086/HIN-pAWinter13-00086_1_cfg.py --no_exec --customise Configuration/DataProcessing/Utils.addMonitoring -n 22
import FWCore.ParameterSet.Config as cms

process = cms.Process('HISIGNAL')

# 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.EventContentHeavyIons_cff')
process.load('SimGeneral.MixingModule.HiEventMixing_cff')
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('GeneratorInterface.HiGenCommon.VtxSmearedMatchPPbBoost8TeVCollision_cff')
process.load('GeneratorInterface.Core.genFilterSummary_cff')
process.load('Configuration.StandardSequences.SimIdeal_cff')
process.load('SimGeneral.MixingModule.himixSIMIdeal_cff')
process.load('Configuration.StandardSequences.EndOfProcess_cff')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

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

# Input source
process.source = cms.Source("PoolSource",
    secondaryFileNames = cms.untracked.vstring(),
    fileNames = cms.untracked.vstring('/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/0015D4C9-899D-E211-AA60-001EC9AAA035.root', 
        '/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/001B91C1-979D-E211-B47E-003048BD80FE.root', 
        '/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/0023303A-AF9D-E211-AD49-68B599B5780F.root', 
        '/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/007A65D5-879D-E211-96A8-001EC94CB3A6.root', 
        '/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/007D8605-8E9D-E211-9E3B-0002C94CD092.root', 
        '/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/00F41CCB-A19D-E211-A581-B499BAAC00E0.root', 
        '/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/020B03C5-8F9D-E211-B10C-6C3BE5B594A8.root', 
        '/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/0406F6E4-989D-E211-9074-90B11C06954E.root', 
        '/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/04867247-859D-E211-97B1-001EC9AA9FC7.root', 
        '/store/mc/HiWinter13/Hijing_PPb502_MinimumBias/GEN-SIM/pa-START53_V10-v2/10000/04F7785A-969D-E211-AFC2-001517E73B50.root'),
    inputCommands = cms.untracked.vstring('drop *', 
        'keep *_generator_*_*', 
        'keep *_g4SimHits_*_*'),
    dropDescendantsOfDroppedBranches = cms.untracked.bool(False)
)

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/HIN-pAWinter13-00086-fragment.py nevts:22'),
    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:HIN-pAWinter13-00086.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, 'STARTHI53_V27::All', '')

process.hiSignal = cms.EDFilter("PyquenGeneratorFilter",
    qgpInitialTemperature = cms.double(1.0),
    doCollisionalEnLoss = cms.bool(False),
    qgpNumQuarkFlavor = cms.int32(0),
    qgpProperTimeFormation = cms.double(0.1),
    numQuarkFlavor = cms.int32(0),
    hadronFreezoutTemperature = cms.double(0.14),
    doRadiativeEnLoss = cms.bool(True),
    backgroundLabel = cms.InputTag("generator"),
    embeddingMode = cms.bool(True),
    angularSpectrumSelector = cms.int32(0),
    doIsospin = cms.bool(True),
    doQuench = cms.bool(False),
    particleStatus = cms.vint32(2, 2, 2, 2),
    partons = cms.vint32(1, 2, 3, 4, 5, 
        6, 21, 22),
    bFixed = cms.double(0.0),
    partonPt = cms.vdouble(0, 0, 0, 0, 0, 
        0, 0, 0),
    bMax = cms.double(0.0),
    filterType = cms.untracked.string('EcalGenEvtSelector'),
    particles = cms.vint32(221, 331, 223, 111),
    bMin = cms.double(0.0),
    aBeamTarget = cms.double(208.0),
    comEnergy = cms.double(5020.0),
    particlePt = cms.vdouble(35, 35, 35, 35),
    cFlag = cms.int32(0),
    partonStatus = cms.vint32(2, 2, 2, 2, 2, 
        2, 2, 1),
    protonSide = cms.untracked.int32(1),
    etaMax = cms.double(3.0),
    maxTries = cms.untracked.int32(5000),
    PythiaParameters = cms.PSet(
        pythiaUESettings = cms.vstring('MSTU(21)=1     ! Check on possible errors during program execution', 
            'MSTJ(22)=2     ! Decay those unstable particles', 
            'PARJ(71)=10 .  ! for which ctau  10 mm', 
            'MSTP(33)=0     ! no K factors in hard cross sections', 
            'MSTP(2)=1      ! which order running alphaS', 
            'MSTP(51)=10042 ! structure function chosen (external PDF CTEQ6L1)', 
            'MSTP(52)=2     ! work with LHAPDF', 
            'PARP(82)=1.832 ! pt cutoff for multiparton interactions', 
            'PARP(89)=1800. ! sqrts for which PARP82 is set', 
            'PARP(90)=0.275 ! Multiple interactions: rescaling power', 
            'MSTP(95)=6     ! CR (color reconnection parameters)', 
            'PARP(77)=1.016 ! CR', 
            'PARP(78)=0.538 ! CR', 
            'PARP(80)=0.1   ! Prob. colored parton from BBR', 
            'PARP(83)=0.356 ! Multiple interactions: matter distribution parameter', 
            'PARP(84)=0.651 ! Multiple interactions: matter distribution parameter', 
            'PARP(62)=1.025 ! ISR cutoff', 
            'MSTP(91)=1     ! Gaussian primordial kT', 
            'PARP(93)=10.0  ! primordial kT-max', 
            'MSTP(81)=21    ! multiple parton interactions 1 is Pythia default', 
            'MSTP(82)=4     ! Defines the multi-parton model'),
        ppJets = cms.vstring('MSEL=1   ! QCD hight pT processes'),
        parameterSets = cms.vstring('pythiaUESettings', 
            'ppJets', 
            'kinematics'),
        kinematics = cms.vstring('CKIN(3)=80', 
            'CKIN(4)=9999')
    )
)


process.ProductionFilterSequence = cms.Sequence(process.hiSignal)

# 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

# Customisation from command line
process.genParticles.src=cms.InputTag("hiSignal") 
process.VtxSmeared.Beta=cms.double(0.434)