Exemplo n.º 1
0
process = cms.Process('LHE')

# parse variables from cmsRun
from FWCore.ParameterSet.VarParsing import VarParsing
options = VarParsing ('analysis')

options.register ('skipEvents',
                  0,
                  VarParsing.multiplicity.singleton,
                  VarParsing.varType.int,
                  "Number of events to skip before processing")

options.inputFiles = "file:/cms/tuanqui/CMSSW_7_2_3/src/Zprime10000events_Mzp10.lhe"
options.outputFile = "step1.root"
options.maxEvents = -1
options.skipEvents = 0
options.parseArguments() 

# import of standard configurations
process.load('FWCore.MessageService.MessageLogger_cfi')
process.load('Configuration.EventContent.EventContent_cff')
process.load('SimGeneral.MixingModule.mixNoPU_cfi')
process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')

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

# Input source
process.source = cms.Source("LHESource",
    fileNames = cms.untracked.vstring(options.inputFiles),