import FWCore.ParameterSet.Config as cms

from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.MCTunesRun3ECM13p6TeV.PythiaCP5Settings_cfi import *


generator = cms.EDFilter("Pythia8ConcurrentGeneratorFilter",
                         crossSection = cms.untracked.double(71.39e+09),
                         maxEventsToPrint = cms.untracked.int32(0),
                         pythiaPylistVerbosity = cms.untracked.int32(1),
                         filterEfficiency = cms.untracked.double(1.0),
                         pythiaHepMCVerbosity = cms.untracked.bool(False),
                         comEnergy = cms.double(13600.0),
    PythiaParameters = cms.PSet(
        pythia8CommonSettingsBlock,
        pythia8CP5SettingsBlock,
        processParameters = cms.vstring(
            'SoftQCD:inelastic = on'),
        parameterSets = cms.vstring('pythia8CommonSettings',
                                    'pythia8CP5Settings', 
                                    'processParameters',
                                    )
        )
                         )

XiFilter = cms.EDFilter("PythiaFilter",
    MinPt = cms.untracked.double(1.0),
    ParticleID = cms.untracked.int32(3312),
    MaxEta = cms.untracked.double(2.6),
    MinEta = cms.untracked.double(-2.6)
)

ProductionFilterSequence = cms.Sequence(generator*XiFilter)
