Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Analysis")
0004 
0005 # run the input file through the end;
0006 # for a limited number of events, replace -1 with the desired number 
0007 #
0008 process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
0009 
0010 process.load( "SimGeneral.HepPDTESSource.pythiapdt_cfi" )
0011 
0012 process.source = cms.Source( "PoolSource",
0013                              fileNames = cms.untracked.vstring(
0014                  'file:MG_ZJetsLNu_tauola.root'
0015                  )
0016                            )
0017           
0018 # FileService is mandatory, as the following analyzer module 
0019 # will want it, to create output histogram file
0020 # 
0021 process.TFileService = cms.Service("TFileService",
0022         fileName = cms.string("BasicGenTester_MG_ZJetsLNu_tauola.root")
0023 )
0024 
0025 # the analyzer itself - empty parameter set 
0026 #
0027 process.BasicGenTest = cms.EDAnalyzer( "BasicGenTester",
0028         NPartForHisto = cms.untracked.int32(1000),
0029         PtMaxForHisto = cms.untracked.double(5.0)
0030 )
0031 
0032 process.p1 = cms.Path( process.BasicGenTest )
0033