Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("myprocess")
0004 process.TFileService=cms.Service("TFileService", fileName=cms.string('JERplots.root'))
0005 
0006 ##-------------------- Communicate with the DB -----------------------
0007 process.load('Configuration.StandardSequences.Services_cff')
0008 process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
0009 from Configuration.AlCa.GlobalTag import GlobalTag
0010 process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:run2_mc')
0011 
0012 ##-------------------- Define the source  ----------------------------
0013 process.maxEvents = cms.untracked.PSet(
0014         input = cms.untracked.int32(10)
0015 )
0016 
0017 from PhysicsTools.PatAlgos.patInputFiles_cff import filesRelValTTbarPileUpMINIAODSIM
0018 
0019 process.source = cms.Source("PoolSource",
0020     fileNames = filesRelValTTbarPileUpMINIAODSIM
0021 )
0022 
0023 ##-------------------- User analyzer  --------------------------------
0024 process.demo  = cms.EDAnalyzer('JetResolutionDemo',
0025     jets = cms.InputTag('slimmedJets'),
0026     rho = cms.InputTag('fixedGridRhoAll'),
0027 
0028     payload = cms.string('AK4PFchs'),
0029 
0030     resolutionsFile = cms.FileInPath('CondFormats/JetMETObjects/data/Summer15_V0_MC_JER_AK4PFchs.txt'),
0031     scaleFactorsFile = cms.FileInPath('CondFormats/JetMETObjects/data/Summer12_V1_MC_JER_SF_AK5PFchs.txt'),
0032 
0033     debug = cms.untracked.bool(False),
0034     useCondDB = cms.untracked.bool(False)
0035 )
0036 
0037 process.p = cms.Path(process.demo)
0038