Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 23:31:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("convertLHE2HepMC")
0004 process.load("FWCore.MessageLogger.MessageLogger_cfi")    
0005 
0006 process.MessageLogger.cerr.INFO = cms.untracked.PSet(limit = cms.untracked.int32(-1))
0007 process.MessageLogger.cerr.Generator = cms.untracked.PSet(limit = cms.untracked.int32(0))
0008 process.MessageLogger.cerr.LHEInterface = cms.untracked.PSet(limit = cms.untracked.int32(0))
0009 process.MessageLogger.cerr.FwkReport.reportEvery = cms.untracked.int32(10000)
0010 
0011 
0012 process.maxEvents = cms.untracked.PSet(
0013     input = cms.untracked.int32(10000)
0014 )
0015 process.source = cms.Source("LHESource",
0016     fileNames = cms.untracked.vstring()
0017 )
0018 process.source.fileNames = ([
0019 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10001.lhe',
0020 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10002.lhe',
0021 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10003.lhe',
0022 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10004.lhe',
0023 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10005.lhe',
0024 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10006.lhe',
0025 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10007.lhe',
0026 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10008.lhe',
0027 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10009.lhe',
0028 '/store/eos/user/lenzip/Madgraph/8TeV/W1JetsToLNu_8TeV-madgraph/W1JetsToLNu_8TeV-madgraph_10010.lhe'
0029 ])
0030 
0031 process.load('Configuration.EventContent.EventContent_cff')                                                                                                   
0032 process.load('Configuration/StandardSequences/EndOfProcess_cff')                                                                                              
0033 process.load("GeneratorInterface.LHEInterface.lheCOMWeightProducer")
0034 process.load('Configuration.StandardSequences.Generator_cff')
0035 process.load("GeneratorInterface.LHEInterface.lhe2HepMCConverter_cfi")
0036 process.genParticles.src = 'lhe2HepMCConverter'
0037 process.load("Validation.EventGenerator.BasicGenValidation_cff")                                                                                            
0038 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0039 ANALYSISEventContent = cms.PSet(
0040   outputCommands = cms.untracked.vstring('drop *')
0041 )
0042 ANALYSISEventContent.outputCommands.extend(process.MEtoEDMConverterFEVT.outputCommands)
0043 
0044 process.out = cms.OutputModule("PoolOutputModule",
0045   fileName = cms.untracked.string('output8TeVReweight.root'),
0046   outputCommands = ANALYSISEventContent.outputCommands
0047 )
0048 
0049 # DQM Services
0050 
0051 from DQMServices.Components.DQMEnvironment_cfi import *
0052 
0053 DQMStore = cms.Service("DQMStore")
0054 
0055 dqmSaver.convention = 'Offline'
0056 dqmSaver.workflow = '/BasicHepMCValidation/Workflow/GEN'
0057 
0058 from Validation.EventGenerator.genvalidTools import *
0059 
0060 switchGenSourceForValidation(process, cms.InputTag('lhe2HepMCConverter'))
0061 useExternalWeightForValidation(process, cms.VInputTag(cms.InputTag('lheCOMWeightProducer', 'comTo7000'))) 
0062 
0063 
0064 process.out = cms.OutputModule("PoolOutputModule",
0065   fileName = cms.untracked.string('output8TeVReweight.root'),
0066   outputCommands = ANALYSISEventContent.outputCommands
0067 )
0068 
0069 
0070 process.gen = cms.Sequence(process.GeneInfo+process.genJetMET)
0071 process.p = cms.Path( process.lheCOMWeightProducer +
0072                       process.lhe2HepMCConverter + 
0073                       process.gen +
0074                       process.genvalid_all + 
0075                       process.endOfProcess )
0076 process.e = cms.EndPath(process.out)