Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0005 #https://twiki.cern.ch/twiki/bin/view/CMS/SWGuideFrontierConditions#Global_Tags_for_Monte_Carlo_Prod
0006 process.load("FWCore.MessageService.MessageLogger_cfi")
0007 process.load("GeneratorInterface.TauolaInterface.TauSpinner_cfi")
0008 
0009 process.MessageLogger.cerr = cms.untracked.PSet(
0010     threshold = cms.untracked.string('INFO'),
0011     FwkReport = cms.untracked.PSet(limit = cms.untracked.int32(0)),
0012     DEBUG = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0013     )
0014 
0015 numberOfEvents = 1000
0016 
0017 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0018                                                    TauSpinnerReco = cms.PSet(
0019     initialSeed = cms.untracked.uint32(123456789),
0020     engineName = cms.untracked.string('HepJamesRandom')
0021     )
0022                                                    )
0023 process.randomEngineStateProducer = cms.EDProducer("RandomEngineStateProducer")
0024 
0025 process.GlobalTag.globaltag = 'MC_50_V13::All'
0026 
0027 process.source = cms.Source("PoolSource",fileNames = cms.untracked.vstring('file:/afs/cern.ch/user/i/inugent/tmp/5C3DF315-CF96-E111-9323-0025B3E05BF4.root'))
0028 
0029 process.debugOutput = cms.OutputModule("PoolOutputModule",
0030                                        outputCommands = cms.untracked.vstring('keep *'),
0031                                        fileName = cms.untracked.string('TauSpinerRecoTest.root'),
0032                                        )
0033 process.out_step = cms.EndPath(process.debugOutput)
0034 
0035 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(numberOfEvents) )
0036 process.p1 = cms.Path(process.TauSpinnerReco )
0037 process.schedule = cms.Schedule(process.p1)
0038 process.schedule.append(process.out_step)