Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-12 09:07:48

0001 import FWCore.ParameterSet.Config as cms
0002 from Configuration.Eras.Era_Run2_2017_cff import Run2_2017
0003 from Configuration.Eras.Modifier_run2_nanoAOD_92X_cff import run2_nanoAOD_92X
0004 process = cms.Process('NANO',Run2_2017,run2_nanoAOD_92X)
0005 
0006 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0007 
0008 process.load("Configuration.StandardSequences.GeometryDB_cff")
0009 process.load('SimGeneral.HepPDTESSource.pythiapdt_cfi')
0010 process.load('Configuration.StandardSequences.GeometryRecoDB_cff')
0011 process.load('Configuration.StandardSequences.MagneticField_cff')
0012 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0013 process.load('Configuration.StandardSequences.Services_cff')
0014 from Configuration.AlCa.autoCond import autoCond
0015 process.GlobalTag.globaltag = autoCond['phase1_2017_realistic']
0016 
0017 process.options   = cms.untracked.PSet( wantSummary = cms.untracked.bool(True) )
0018 process.MessageLogger.cerr.FwkReport.reportEvery = 100
0019 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(100))
0020 
0021 process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring())
0022 process.source.fileNames = [
0023 #relvals:
0024 # '/store/relval/CMSSW_9_3_0_pre4/RelValTTbar_13/MINIAODSIM/93X_mc2017_realistic_v1-v1/00000/1CFF7C9C-6A86-E711-A1F2-0CC47A7C35F4.root',
0025 # '/store/relval/CMSSW_9_3_0_pre4/RelValTTbar_13/MINIAODSIM/93X_mc2017_realistic_v1-v1/00000/107D499F-6A86-E711-8A51-0025905B8592.root',
0026 # '/store/relval/CMSSW_9_4_0_pre3/RelValProdTTbar_13/MINIAODSIM/94X_mcRun2_asymptotic_v0-v1/10000/06F85EC5-7BB9-E711-A2CB-0025905A6134.root'
0027 
0028 #sample with LHE
0029 '/store/cmst3/group/nanoAOD/pre-94XMiniAODv2/TTToSemiLeptonic_TuneCP5_PSweights_13TeV-powheg-pythia8.root'
0030 ]
0031 
0032 process.load("PhysicsTools.NanoAOD.nano_cff")
0033 
0034 
0035 process.nanoPath = cms.Path(process.nanoSequenceMC)
0036 #for data:
0037 #process.nanoPath = cms.Path(process.nanoSequence)
0038 #process.GlobalTag.globaltag = autoCond['run2_data']
0039 
0040 process.out = cms.OutputModule("NanoAODOutputModule",
0041     fileName = cms.untracked.string('nano.root'),
0042     outputCommands = process.NanoAODEDMEventContent.outputCommands,
0043    #compressionLevel = cms.untracked.int32(9),
0044     #compressionAlgorithm = cms.untracked.string("LZMA"),
0045 
0046 )
0047 process.out1 = cms.OutputModule("NanoAODOutputModule",
0048     fileName = cms.untracked.string('lzma.root'),
0049     outputCommands = process.NanoAODEDMEventContent.outputCommands,
0050     compressionLevel = cms.untracked.int32(9),
0051     compressionAlgorithm = cms.untracked.string("LZMA"),
0052 
0053 )
0054 process.end = cms.EndPath(process.out+process.out1)