Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:36

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Ana")
0004 process.load("FWCore.MessageService.MessageLogger_cfi")
0005 #############   Set the number of events #############
0006 process.maxEvents = cms.untracked.PSet(
0007     input = cms.untracked.int32(1000)
0008 )
0009 #############   Define the source file ###############
0010 process.load("JetMETCorrections.MCJet.RelValQCD_cfi") 
0011 #process.source = cms.Source("PoolSource",
0012 #    fileNames = cms.untracked.vstring('/store/relval/CMSSW_3_4_0_pre2/RelValQCD_FlatPt_15_3000/GEN-SIM-RECO/MC_3XY_V10-v1/0003/D085615A-A5BD-DE11-8897-0026189437E8.root')
0013 #)
0014 #############    CaloJets ############################
0015 process.caloMctruthTree = cms.EDAnalyzer("CaloMCTruthTreeProducer",
0016     jets               = cms.string('ak4CaloJets'),
0017     genjets            = cms.string('ak4GenJets'),
0018     histogramFile      = cms.string('ak4CaloMctruthTree.root')
0019 )
0020 #############    PFJets   ############################
0021 process.pfMctruthTree = cms.EDAnalyzer("PFMCTruthTreeProducer",
0022     jets               = cms.string('ak4PFJets'),
0023     genjets            = cms.string('ak4GenJets'),
0024     histogramFile      = cms.string('ak4PFMctruthTree.root')
0025 )
0026 #############   Path       ###########################
0027 process.p = cms.Path(process.caloMctruthTree * process.pfMctruthTree)
0028 #############   Format MessageLogger #################
0029 process.MessageLogger.cerr.FwkReport.reportEvery = 10