Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:32:26

0001 # Auto generated configuration file
0002 # using: 
0003 # Revision: 1.19 
0004 # Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v 
0005 # with command line options: testpdf -s NONE --no_exec --conditions auto:run2_mc -n -1 --filein file:~/work/CMSSWpdfweight/events_orig.lhe
0006 import FWCore.ParameterSet.Config as cms
0007 
0008 process = cms.Process('LHE')
0009 
0010 # import of standard configurations
0011 process.load('FWCore.MessageService.MessageLogger_cfi')
0012 process.load('Configuration.EventContent.EventContent_cff')
0013 process.load('SimGeneral.MixingModule.mixNoPU_cfi')
0014 process.load('Configuration.StandardSequences.FrontierConditions_GlobalTag_cff')
0015 
0016 process.maxEvents = cms.untracked.PSet(
0017     input = cms.untracked.int32(1000)
0018 )
0019 
0020 # Input source
0021 process.source = cms.Source("PoolSource",
0022     fileNames = cms.untracked.vstring('/store/mc/RunIISpring15FSPremix/SMS-T1bbbb_mGluino-1150_mLSP-400to975-1100to1125_TuneCUETP8M1_13TeV-madgraphMLM-pythia8/MINIAODSIM/MCRUN2_74_V9-v1/50000/320B2CE3-BE5D-E511-8C9E-B083FED76C6C.root')
0023 )
0024 
0025 process.options = cms.untracked.PSet(
0026 
0027 )
0028 
0029 # Production Info
0030 process.configurationMetadata = cms.untracked.PSet(
0031     annotation = cms.untracked.string('testpdf nevts:-1'),
0032     name = cms.untracked.string('Applications'),
0033     version = cms.untracked.string('$Revision: 1.19 $')
0034 )
0035 
0036 
0037 #TFileService for output 
0038 process.TFileService = cms.Service("TFileService", 
0039     fileName = cms.string("testpdf.root"),
0040     closeFileFast = cms.untracked.bool(True)
0041 )
0042 
0043 # Other statements
0044 from Configuration.AlCa.GlobalTag import GlobalTag
0045 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc', '')
0046 
0047 process.testpdf = cms.EDAnalyzer("PDFWeightsTest",
0048                                  pdfWeightOffset = cms.uint32(10), #index of first mc replica weight (careful, this should not be the nominal weight, which is repeated in some mc samples).  The majority of run2 LO madgraph_aMC@NLO samples with 5fs matrix element and pdf would use index 10, corresponding to pdf set 263001, the first alternate mc replica for the nominal pdf set 263000 used for these samples
0049                                  nPdfWeights = cms.uint32(100), #number of input weights
0050                                  nPdfEigWeights = cms.uint32(60), #number of output weights
0051                                  mc2hessianCSV = cms.FileInPath('PhysicsTools/HepMCCandAlgos/data/NNPDF30_lo_as_0130_hessian_60.csv'), #MC2Hessian transformation matrix
0052                                  )
0053 
0054 process.ana = cms.Path(process.testpdf)
0055 
0056 # Schedule definition
0057 process.schedule = cms.Schedule(process.ana)
0058 
0059