Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:43

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 process.load("CondCore.DBCommon.CondDBCommon_cfi")
0005 process.CondDBCommon.connect = 'sqlite_file:pop_test.db'
0006 process.CondDBCommon.DBParameters.messageLevel = cms.untracked.int32(3)
0007 
0008 process.eff = cms.ESSource("PoolDBESSource",
0009     process.CondDBCommon,
0010     RefreshEachRun=cms.untracked.bool(True),
0011     DumpStat=cms.untracked.bool(True),
0012     toGet = cms.VPSet(
0013     cms.PSet(
0014         record = cms.string('ExEfficiencyRcd'),
0015         label = cms.untracked.string('vinEff1'),
0016         tag = cms.string('Example_tag1')
0017     ),
0018     cms.PSet(
0019     record = cms.string('ExEfficiencyRcd'),
0020     label = cms.untracked.string('vinEff2'),
0021     tag = cms.string('Example_tag2')
0022     )
0023     )
0024 )
0025 
0026 #process.source = cms.Source("EmptyIOVSource",
0027 #    firstValue = cms.uint64(310),
0028 #    lastValue = cms.uint64(1000),
0029 #    timetype = cms.string('runnumber'),
0030 #    interval = cms.uint64(100)
0031 #)
0032 
0033 process.source = cms.Source("EmptySource",
0034   firstLuminosityBlock = cms.untracked.uint32(1),
0035   numberEventsInLuminosityBlock = cms.untracked.uint32(3),
0036   firstEvent = cms.untracked.uint32(1),
0037   firstRun = cms.untracked.uint32(310),
0038   numberEventsInRun = cms.untracked.uint32(12)
0039 )
0040 
0041 process.maxEvents = cms.untracked.PSet(
0042  input = cms.untracked.int32(1000)
0043 )
0044 
0045 process.prod = cms.EDAnalyzer("EfficiencyByLabelAnalyzer")
0046 
0047 process.p = cms.Path(process.prod)
0048