Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:12:50

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("Test")
0004 process.source = cms.Source("EmptySource", 
0005                             numberEventsInLuminosityBlock = cms.untracked.uint32(2), 
0006                             processingMode=cms.untracked.string('RunsAndLumis'))
0007 
0008 process.maxLuminosityBlocks.input = 3
0009 
0010 ids = cms.untracked.VPSet()
0011 ids.append(cms.PSet(type = cms.untracked.string("IsFile"),
0012                     id = cms.untracked.EventID(0,0,0)))
0013 for i in range(0,4):
0014     if(i==0) :
0015         ids.append(cms.PSet(type = cms.untracked.string("IsRun"),
0016                                 id = cms.untracked.EventID(1,0,0)))
0017     else:
0018         ids.append(cms.PSet(type = cms.untracked.string("IsLumi"),
0019                                 id = cms.untracked.EventID(1,i,0)))
0020 
0021 ids.append(cms.PSet(type = cms.untracked.string("IsStop"),
0022                     id = cms.untracked.EventID(0,0,0)))
0023 
0024 #print ids.dumpPython()
0025 process.add_(cms.Service("CheckTransitions",
0026                          transitions = ids))
0027