process.MessageLogger.cerr.FwkReport.reportEvery = 5000

process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(-1)
)

process.load('UserCode.TopMassSecVtx.fragAnalyzer_cfi')
process.TFileService = cms.Service("TFileService", fileName = cms.string("FragmentationDist_%s.root"%model))

process.options = cms.untracked.PSet(
)

from UserCode.TopMassSecVtx.MarkusSherpaSamples_cfi import getMarkusSherpaSamplesFor
process.source = cms.Source("PoolSource",
                            fileNames = getMarkusSherpaSamplesFor(model),
                            duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
                            )

# Production Info
process.configurationMetadata = cms.untracked.PSet(
    version = cms.untracked.string('$Revision: 1.381.2.28 $'),
    annotation = cms.untracked.string('tt nevts:1'),
    name = cms.untracked.string('PyReleaseValidation')
)

# Other statements
from Configuration.AlCa.GlobalTag import GlobalTag
process.GlobalTag = GlobalTag(process.GlobalTag, 'START53_V23::All', '')

# Path and EndPath definitions
process.load("Configuration.StandardSequences.Reconstruction_cff")
process.load("Configuration.StandardSequences.MagneticField_cff")
process.load("Configuration.Geometry.GeometryIdeal_cff")

## MessageLogger
process.load("FWCore.MessageLogger.MessageLogger_cfi")
process.MessageLogger.cerr.FwkReport.reportEvery = 5000
process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True),
                                        SkipEvent = cms.untracked.vstring('ProductNotFound')
                                        ) 

#the source and output
from UserCode.TopMassSecVtx.MarkusSherpaSamples_cfi import getMarkusSherpaSamplesFor
process.source = cms.Source("PoolSource",
                            fileNames = getMarkusSherpaSamplesFor('Lund'),
                            duplicateCheckMode = cms.untracked.string('noDuplicateCheck')
                            )


process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )

process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")

process.TFileService = cms.Service("TFileService", fileName = cms.string("AcceptanceAnalysis.root"))

process.accAnalyzer = cms.EDFilter("GeneratorLevelAcceptanceAnalyzer")

process.p = cms.Path( process.accAnalyzer )