File indexing completed on 2024-04-06 12:26:39
0001 import FWCore.ParameterSet.Config as cms
0002
0003 process = cms.Process("TestLumiProducerFromBrilcalc")
0004
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.MessageLogger = cms.Service("MessageLogger",
0007 cerr = cms.untracked.PSet(
0008 enable = cms.untracked.bool(False)
0009 ),
0010 cout = cms.untracked.PSet(
0011 enable = cms.untracked.bool(True),
0012 threshold = cms.untracked.string('DEBUG')
0013 ),
0014 debugModules = cms.untracked.vstring('LumiInfo')
0015 )
0016
0017
0018 process.source = cms.Source("PoolSource",
0019 fileNames = cms.untracked.vstring("/store/relval/CMSSW_10_2_7/RelValMinBias_13/GEN-SIM/102X_mc2017_realistic_v4_AC_v01-v1/20000/BB654FAE-5375-164F-BBFE-B330713759C6.root")
0020 )
0021 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))
0022
0023 process.LumiInfo = cms.EDProducer('LumiProducerFromBrilcalc',
0024 lumiFile = cms.string("./testLumiFile.csv"),
0025 throwIfNotFound = cms.bool(False),
0026 doBunchByBunch = cms.bool(False))
0027
0028 process.test = cms.EDAnalyzer('TestLumiProducerFromBrilcalc',
0029 inputTag = cms.untracked.InputTag("LumiInfo", "brilcalc"))
0030
0031 process.p = cms.Path(process.LumiInfo*process.test)
0032