Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:12

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("convertLHE2HepMC")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0005 
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(-1)
0008 )
0009 process.source = cms.Source("LHESource",
0010     fileNames = cms.untracked.vstring()
0011 )
0012 process.source.fileNames = ([
0013         '/store/lhe/3589/7TeV_wz2l2q_run50001_unweighted_events_qcut18_mgPostv2.lhe',
0014         '/store/lhe/3589/7TeV_wz2l2q_run50002_unweighted_events_qcut18_mgPostv2.lhe',
0015         '/store/lhe/3589/7TeV_wz2l2q_run50003_unweighted_events_qcut18_mgPostv2.lhe',
0016 ])
0017 
0018 process.load("GeneratorInterface.LHEInterface.lhe2HepMCConverter_cfi")
0019 process.load("PhysicsTools.HepMCCandAlgos.genParticles_cfi")
0020 process.genParticles.src = 'lhe2HepMCConverter'
0021 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0022 process.load("RecoJets.Configuration.RecoGenJets_cff")
0023 process.load("RecoMET.Configuration.RecoGenMET_cff")
0024 process.load("RecoJets.Configuration.GenJetParticles_cff")
0025 process.load("RecoMET.Configuration.GenMETParticles_cff")
0026 
0027 
0028 #process.load("Validation.EventGenerator.MBUEandQCDValidation_cff")                                                                                           
0029 process.load("Validation.EventGenerator.BasicHepMCValidation_cff")                                                                                            
0030 #process.mbueAndqcdValidation.hepmcCollection = 'lhe2HepMCConverter'                                                                                         
0031 process.basicHepMCValidation.hepmcCollection = 'lhe2HepMCConverter'                                                                                 
0032 process.load('Configuration.EventContent.EventContent_cff')                                                                                                   
0033 process.load('Configuration/StandardSequences/EndOfProcess_cff')                                                                                              
0034 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0035 ANALYSISEventContent = cms.PSet(
0036         outputCommands = cms.untracked.vstring('drop *')
0037         )
0038 ANALYSISEventContent.outputCommands.extend(process.MEtoEDMConverterFEVT.outputCommands)
0039 
0040 process.out = cms.OutputModule("PoolOutputModule",
0041                                    fileName = cms.untracked.string('output.root'),
0042                                    outputCommands = ANALYSISEventContent.outputCommands
0043                                )
0044 
0045 # DQM Services
0046 
0047 from DQMServices.Components.DQMEnvironment_cfi import *
0048 
0049 DQMStore = cms.Service("DQMStore")
0050 
0051 dqmSaver.convention = 'Offline'
0052 dqmSaver.workflow = '/BasicHepMCValidation/Workflow/GEN'
0053 
0054 process.p = cms.Path(process.lhe2HepMCConverter + 
0055                       process.genParticles +
0056                       process.genJetParticles + 
0057                       process.recoGenJets + 
0058                       process.genMETParticles +
0059                       process.recoGenMET
0060                       +process.basicHepMCValidation+process.endOfProcess
0061                       )
0062 process.e = cms.EndPath(process.out)