Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-10 22:49:35

0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003 
0004 process = cms.Process("Test")
0005 
0006 
0007 process.source = cms.Source("EmptySource")
0008 
0009 
0010 mod = int(sys.argv[2])
0011 
0012 process.load('FWCore.MessageService.MessageLogger_cfi')
0013 process.MessageLogger.cerr.enable = False
0014 process.MessageLogger.files.exceptionMessage = dict(filename="test_bad_schedule_{}".format(mod),
0015                                                     noTimeStamps= True)
0016 
0017 if mod == 0 :
0018     #directly depends on
0019     process.a = cms.EDProducer("AddIntsProducer",
0020                            labels=cms.VInputTag(cms.InputTag("a")))
0021     process.p = cms.Path(process.a)
0022 elif mod == 1:
0023     #cross path dependency
0024     process.a = cms.EDProducer("AddIntsProducer",
0025                            labels=cms.VInputTag(cms.InputTag("b")))
0026 
0027     process.b = cms.EDProducer("AddIntsProducer",
0028                            labels=cms.VInputTag(cms.InputTag("a")))
0029 
0030     process.p = cms.Path(process.a)
0031     process.p2 = cms.Path(process.b)
0032 
0033 elif mod == 2:
0034     #path ordering
0035     process.a = cms.EDProducer("AddIntsProducer",
0036                            labels=cms.VInputTag(cms.InputTag("b")))
0037 
0038     process.b = cms.EDProducer("AddIntsProducer",
0039                            labels=cms.VInputTag(cms.InputTag("")))
0040     process.p = cms.Path(process.a + process.b)
0041 
0042 elif mod == 3:
0043     #path ordering, extra path 1
0044     process.a = cms.EDProducer("AddIntsProducer",
0045                            labels=cms.VInputTag(cms.InputTag("b")))
0046 
0047     process.b = cms.EDProducer("AddIntsProducer",
0048                            labels=cms.VInputTag(cms.InputTag("")))
0049     process.p = cms.Path(process.a + process.b)
0050     process.p2 = cms.Path(process.a)
0051 
0052 elif mod == 4:
0053     #path ordering, extra path 1
0054     process.a = cms.EDProducer("AddIntsProducer",
0055                            labels=cms.VInputTag(cms.InputTag("b")))
0056 
0057     process.b = cms.EDProducer("AddIntsProducer",
0058                            labels=cms.VInputTag(cms.InputTag("")))
0059     process.p2 = cms.Path(process.a + process.b)
0060     process.p = cms.Path(process.a)
0061 
0062 elif mod == 5:
0063     #cycle with unscheduled
0064     process.a = cms.EDProducer("AddIntsProducer",
0065                            labels=cms.VInputTag(cms.InputTag("b")))
0066 
0067     process.b = cms.EDProducer("AddIntsProducer",
0068                            labels=cms.VInputTag(cms.InputTag("a")))
0069 
0070     process.p = cms.Path(process.a, cms.Task(process.b))
0071 
0072 elif mod == 6:
0073     #multi-path cycle with unscheduled
0074     process.a = cms.EDProducer("AddIntsProducer",
0075                            labels=cms.VInputTag(cms.InputTag("b")))
0076 
0077     process.b = cms.EDProducer("AddIntsProducer",
0078                            labels=cms.VInputTag(cms.InputTag("c")))
0079 
0080     process.c = cms.EDProducer("AddIntsProducer",
0081                            labels=cms.VInputTag(cms.InputTag("d")))
0082     process.d = cms.EDProducer("AddIntsProducer",
0083                            labels=cms.VInputTag(cms.InputTag("a")))
0084 
0085     process.p1 = cms.Path(process.a, cms.Task(process.b))
0086     process.p2 = cms.Path(process.c, cms.Task(process.d))
0087 
0088 elif mod == 7:
0089     #cycle with unscheduled
0090     process.a = cms.EDProducer("AddIntsProducer",
0091                            labels=cms.VInputTag(cms.InputTag("b")))
0092 
0093     process.b = cms.EDProducer("AddIntsProducer",
0094                            labels=cms.VInputTag(cms.InputTag("c")))
0095 
0096     process.c = cms.EDProducer("AddIntsProducer",
0097                            labels=cms.VInputTag(cms.InputTag("b")))
0098 
0099     process.p1 = cms.Path(process.a, cms.Task(process.b, process.c))
0100 
0101