Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:28:36

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0006 process.MessageLogger.cerr.threshold = 'INFO'
0007 process.MessageLogger.cerr.INFO.limit = 200
0008 
0009 #process.options = cms.untracked.PSet(forceEventSetupCacheClearOnNewRun = cms.untracked.bool(True))
0010 
0011 process.maxEvents = cms.untracked.PSet(
0012     input = cms.untracked.int32(10)
0013 )
0014 
0015 process.source = cms.Source("EmptySource",
0016     firstRun = cms.untracked.uint32(1),
0017     firstLuminosityBlock = cms.untracked.uint32(1),
0018     firstEvent = cms.untracked.uint32(1),
0019     numberEventsInLuminosityBlock = cms.untracked.uint32(1),
0020     numberEventsInRun = cms.untracked.uint32(1)
0021 )
0022 
0023 process.emptyESSourceB = cms.ESSource("EmptyESSource",
0024     recordName = cms.string("ESTestRecordB"),
0025     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0026     iovIsRunNotTime = cms.bool(True)
0027 )
0028 
0029 process.emptyESSourceC = cms.ESSource("EmptyESSource",
0030     recordName = cms.string("ESTestRecordC"),
0031     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0032     iovIsRunNotTime = cms.bool(True)
0033 )
0034 
0035 process.emptyESSourceD = cms.ESSource("EmptyESSource",
0036     recordName = cms.string("ESTestRecordD"),
0037     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0038     iovIsRunNotTime = cms.bool(True)
0039 )
0040 
0041 process.emptyESSourceE = cms.ESSource("EmptyESSource",
0042     recordName = cms.string("ESTestRecordE"),
0043     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0044     iovIsRunNotTime = cms.bool(True)
0045 )
0046 
0047 process.emptyESSourceF = cms.ESSource("EmptyESSource",
0048     recordName = cms.string("ESTestRecordF"),
0049     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0050     iovIsRunNotTime = cms.bool(True)
0051 )
0052 
0053 process.emptyESSourceG = cms.ESSource("EmptyESSource",
0054     recordName = cms.string("ESTestRecordG"),
0055     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0056     iovIsRunNotTime = cms.bool(True)
0057 )
0058 
0059 process.emptyESSourceH = cms.ESSource("EmptyESSource",
0060     recordName = cms.string("ESTestRecordH"),
0061     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0062     iovIsRunNotTime = cms.bool(True)
0063 )
0064 
0065 process.emptyESSourceI = cms.ESSource("EmptyESSource",
0066     recordName = cms.string("ESTestRecordI"),
0067     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0068     iovIsRunNotTime = cms.bool(True)
0069 )
0070 
0071 process.emptyESSourceJ = cms.ESSource("EmptyESSource",
0072     recordName = cms.string("ESTestRecordJ"),
0073     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0074     iovIsRunNotTime = cms.bool(True)
0075 )
0076 
0077 process.emptyESSourceK = cms.ESSource("EmptyESSource",
0078     recordName = cms.string("ESTestRecordK"),
0079     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0080     iovIsRunNotTime = cms.bool(True)
0081 )
0082 
0083 process.esTestProducerB = cms.ESProducer("ESTestProducerB")
0084 process.esTestProducerC = cms.ESProducer("ESTestProducerC")
0085 process.esTestProducerD = cms.ESProducer("ESTestProducerD")
0086 process.esTestProducerE = cms.ESProducer("ESTestProducerE")
0087 process.esTestProducerF = cms.ESProducer("ESTestProducerF")
0088 process.esTestProducerG = cms.ESProducer("ESTestProducerG")
0089 process.esTestProducerH = cms.ESProducer("ESTestProducerH")
0090 process.esTestProducerI = cms.ESProducer("ESTestProducerI")
0091 process.esTestProducerJ = cms.ESProducer("ESTestProducerJ")
0092 process.esTestProducerK = cms.ESProducer("ESTestProducerK")
0093 process.esTestProducerK1 = cms.ESProducer("ESTestProducerK")
0094 process.aPrefer = cms.ESPrefer("ESTestProducerK", "esTestProducerK")
0095 
0096 process.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0097     appendToDataLabel = cms.string('abc')
0098 )
0099 
0100 process.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0101     runsToGetDataFor = cms.vint32(1,2,3,4,5,6,7,8,9,10)
0102 )
0103 
0104 process.esTestAnalyzerK = cms.EDAnalyzer("ESTestAnalyzerK",
0105     runsToGetDataFor = cms.vint32(1,2,3,4,5,6,7,8,9,10)
0106 )
0107 
0108 process.path1 = cms.Path(process.esTestAnalyzerB*process.esTestAnalyzerK)
0109 
0110 # ---------------------------------------------------------
0111 # Test the sharing of ESTestProducerB as things associated
0112 # with dependent records change.
0113 
0114 # In this first case, nothing is different and sharing should
0115 # occur. Note this is visible in the output because DataB
0116 # is not gotten in event 2 and that counter in the producer
0117 # is only incremented after a get call causes the produce
0118 # function to be called.
0119 
0120 process1 = cms.Process("TEST1")
0121 process.addSubProcess(cms.SubProcess(process1))
0122 
0123 process1.emptyESSourceB = cms.ESSource("EmptyESSource",
0124     recordName = cms.string("ESTestRecordB"),
0125     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0126     iovIsRunNotTime = cms.bool(True)
0127 )
0128 
0129 process1.emptyESSourceC = cms.ESSource("EmptyESSource",
0130     recordName = cms.string("ESTestRecordC"),
0131     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0132     iovIsRunNotTime = cms.bool(True)
0133 )
0134 
0135 process1.emptyESSourceD = cms.ESSource("EmptyESSource",
0136     recordName = cms.string("ESTestRecordD"),
0137     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0138     iovIsRunNotTime = cms.bool(True)
0139 )
0140 
0141 process1.emptyESSourceE = cms.ESSource("EmptyESSource",
0142     recordName = cms.string("ESTestRecordE"),
0143     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0144     iovIsRunNotTime = cms.bool(True)
0145 )
0146 
0147 process1.emptyESSourceF = cms.ESSource("EmptyESSource",
0148     recordName = cms.string("ESTestRecordF"),
0149     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0150     iovIsRunNotTime = cms.bool(True)
0151 )
0152 
0153 process1.emptyESSourceG = cms.ESSource("EmptyESSource",
0154     recordName = cms.string("ESTestRecordG"),
0155     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0156     iovIsRunNotTime = cms.bool(True)
0157 )
0158 
0159 process1.emptyESSourceH = cms.ESSource("EmptyESSource",
0160     recordName = cms.string("ESTestRecordH"),
0161     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0162     iovIsRunNotTime = cms.bool(True)
0163 )
0164 
0165 process1.emptyESSourceI = cms.ESSource("EmptyESSource",
0166     recordName = cms.string("ESTestRecordI"),
0167     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0168     iovIsRunNotTime = cms.bool(True)
0169 )
0170 
0171 process1.emptyESSourceJ = cms.ESSource("EmptyESSource",
0172     recordName = cms.string("ESTestRecordJ"),
0173     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0174     iovIsRunNotTime = cms.bool(True)
0175 )
0176 
0177 process1.emptyESSourceK = cms.ESSource("EmptyESSource",
0178     recordName = cms.string("ESTestRecordK"),
0179     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0180     iovIsRunNotTime = cms.bool(True)
0181 )
0182 
0183 process1.esTestProducerB = cms.ESProducer("ESTestProducerB")
0184 process1.esTestProducerC = cms.ESProducer("ESTestProducerC")
0185 process1.esTestProducerD = cms.ESProducer("ESTestProducerD")
0186 process1.esTestProducerE = cms.ESProducer("ESTestProducerE")
0187 process1.esTestProducerF = cms.ESProducer("ESTestProducerF")
0188 process1.esTestProducerG = cms.ESProducer("ESTestProducerG")
0189 process1.esTestProducerH = cms.ESProducer("ESTestProducerH")
0190 process1.esTestProducerI = cms.ESProducer("ESTestProducerI")
0191 process1.esTestProducerJ = cms.ESProducer("ESTestProducerJ")
0192 process1.esTestProducerK = cms.ESProducer("ESTestProducerK")
0193 process1.esTestProducerK1 = cms.ESProducer("ESTestProducerK")
0194 process1.aPrefer = cms.ESPrefer("ESTestProducerK", "esTestProducerK")
0195 
0196 process1.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0197     appendToDataLabel = cms.string('abc')
0198 )
0199 
0200 process1.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0201     runsToGetDataFor = cms.vint32(1,3,4,5,6,7,8,9,10)
0202 )
0203 
0204 process1.esTestAnalyzerK = cms.EDAnalyzer("ESTestAnalyzerK",
0205     runsToGetDataFor = cms.vint32(1,3,4,5,6,7,8,9,10)
0206 )
0207 
0208 process1.path1 = cms.Path(process1.esTestAnalyzerB*process1.esTestAnalyzerK)
0209 
0210 # ---------------------------------------------------------
0211 
0212 # Change the value of a tracked parameter in an ESProducer
0213 # associated with record H ( the module is labeled
0214 # esTestProducerH1). Do not get data for event 3.
0215 # Shows the esTestProducerB is not shared.
0216 
0217 process2 = cms.Process("TEST2")
0218 process1.addSubProcess(cms.SubProcess(process2))
0219 
0220 process2.emptyESSourceB = cms.ESSource("EmptyESSource",
0221     recordName = cms.string("ESTestRecordB"),
0222     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0223     iovIsRunNotTime = cms.bool(True)
0224 )
0225 
0226 process2.emptyESSourceC = cms.ESSource("EmptyESSource",
0227     recordName = cms.string("ESTestRecordC"),
0228     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0229     iovIsRunNotTime = cms.bool(True)
0230 )
0231 
0232 process2.emptyESSourceD = cms.ESSource("EmptyESSource",
0233     recordName = cms.string("ESTestRecordD"),
0234     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0235     iovIsRunNotTime = cms.bool(True)
0236 )
0237 
0238 process2.emptyESSourceE = cms.ESSource("EmptyESSource",
0239     recordName = cms.string("ESTestRecordE"),
0240     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0241     iovIsRunNotTime = cms.bool(True)
0242 )
0243 
0244 process2.emptyESSourceF = cms.ESSource("EmptyESSource",
0245     recordName = cms.string("ESTestRecordF"),
0246     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0247     iovIsRunNotTime = cms.bool(True)
0248 )
0249 
0250 process2.emptyESSourceG = cms.ESSource("EmptyESSource",
0251     recordName = cms.string("ESTestRecordG"),
0252     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0253     iovIsRunNotTime = cms.bool(True)
0254 )
0255 
0256 process2.emptyESSourceH = cms.ESSource("EmptyESSource",
0257     recordName = cms.string("ESTestRecordH"),
0258     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0259     iovIsRunNotTime = cms.bool(True)
0260 )
0261 
0262 process2.emptyESSourceI = cms.ESSource("EmptyESSource",
0263     recordName = cms.string("ESTestRecordI"),
0264     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0265     iovIsRunNotTime = cms.bool(True)
0266 )
0267 
0268 process2.emptyESSourceJ = cms.ESSource("EmptyESSource",
0269     recordName = cms.string("ESTestRecordJ"),
0270     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0271     iovIsRunNotTime = cms.bool(True)
0272 )
0273 
0274 process2.emptyESSourceK = cms.ESSource("EmptyESSource",
0275     recordName = cms.string("ESTestRecordK"),
0276     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0277     iovIsRunNotTime = cms.bool(True)
0278 )
0279 
0280 process2.esTestProducerB = cms.ESProducer("ESTestProducerB")
0281 process2.esTestProducerC = cms.ESProducer("ESTestProducerC")
0282 process2.esTestProducerD = cms.ESProducer("ESTestProducerD")
0283 process2.esTestProducerE = cms.ESProducer("ESTestProducerE")
0284 process2.esTestProducerF = cms.ESProducer("ESTestProducerF")
0285 process2.esTestProducerG = cms.ESProducer("ESTestProducerG")
0286 process2.esTestProducerH = cms.ESProducer("ESTestProducerH")
0287 process2.esTestProducerI = cms.ESProducer("ESTestProducerI")
0288 process2.esTestProducerJ = cms.ESProducer("ESTestProducerJ")
0289 process2.esTestProducerK = cms.ESProducer("ESTestProducerK",
0290     x = cms.untracked.string("x")
0291 )
0292 
0293 process2.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0294     appendToDataLabel = cms.string('abcd')
0295 )
0296 
0297 process2.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0298     runsToGetDataFor = cms.vint32(1,2,4,5,6,7,8,9,10)
0299 )
0300 
0301 process2.esTestAnalyzerK = cms.EDAnalyzer("ESTestAnalyzerK",
0302     runsToGetDataFor = cms.vint32(1,4,5,6,7,8,9,10)
0303 )
0304 
0305 process2.path1 = cms.Path(process2.esTestAnalyzerB*process2.esTestAnalyzerK)
0306 
0307 # ---------------------------------------------------------
0308 
0309 # Change the value of a untracked parameter in an ESProducer
0310 # associated with record H ( the module is labeled
0311 # esTestProducerH1). Do not get data for event 4.
0312 # Shows the esTestProducerB is not shared.
0313 
0314 process3 = cms.Process("TEST3")
0315 process2.addSubProcess(cms.SubProcess(process3))
0316 
0317 process3.emptyESSourceB = cms.ESSource("EmptyESSource",
0318     recordName = cms.string("ESTestRecordB"),
0319     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0320     iovIsRunNotTime = cms.bool(True)
0321 )
0322 
0323 process3.emptyESSourceC = cms.ESSource("EmptyESSource",
0324     recordName = cms.string("ESTestRecordC"),
0325     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0326     iovIsRunNotTime = cms.bool(True)
0327 )
0328 
0329 process3.emptyESSourceD = cms.ESSource("EmptyESSource",
0330     recordName = cms.string("ESTestRecordD"),
0331     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0332     iovIsRunNotTime = cms.bool(True)
0333 )
0334 
0335 process3.emptyESSourceE = cms.ESSource("EmptyESSource",
0336     recordName = cms.string("ESTestRecordE"),
0337     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0338     iovIsRunNotTime = cms.bool(True)
0339 )
0340 
0341 process3.emptyESSourceF = cms.ESSource("EmptyESSource",
0342     recordName = cms.string("ESTestRecordF"),
0343     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0344     iovIsRunNotTime = cms.bool(True)
0345 )
0346 
0347 process3.emptyESSourceG = cms.ESSource("EmptyESSource",
0348     recordName = cms.string("ESTestRecordG"),
0349     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0350     iovIsRunNotTime = cms.bool(True)
0351 )
0352 
0353 process3.emptyESSourceH = cms.ESSource("EmptyESSource",
0354     recordName = cms.string("ESTestRecordH"),
0355     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0356     iovIsRunNotTime = cms.bool(True)
0357 )
0358 
0359 process3.esTestProducerB = cms.ESProducer("ESTestProducerB")
0360 process3.esTestProducerC = cms.ESProducer("ESTestProducerC")
0361 process3.esTestProducerD = cms.ESProducer("ESTestProducerD")
0362 process3.esTestProducerE = cms.ESProducer("ESTestProducerE")
0363 process3.esTestProducerF = cms.ESProducer("ESTestProducerF")
0364 process3.esTestProducerG = cms.ESProducer("ESTestProducerG")
0365 process3.esTestProducerH = cms.ESProducer("ESTestProducerH")
0366 
0367 process3.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0368     appendToDataLabel = cms.string('abc'),
0369     test = cms.untracked.string('xyz')
0370 )
0371 
0372 process3.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0373     runsToGetDataFor = cms.vint32(1,2,3,5,6,7,8,9,10)
0374 )
0375 
0376 process3.path1 = cms.Path(process3.esTestAnalyzerB)
0377 
0378 # ---------------------------------------------------------
0379 
0380 # This one should share with process3, not process1
0381 # Do not get data for events 4 and 5.
0382 
0383 
0384 process4 = cms.Process("TEST4")
0385 process3.addSubProcess(cms.SubProcess(process4))
0386 
0387 process4.emptyESSourceB = cms.ESSource("EmptyESSource",
0388     recordName = cms.string("ESTestRecordB"),
0389     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0390     iovIsRunNotTime = cms.bool(True)
0391 )
0392 
0393 process4.emptyESSourceC = cms.ESSource("EmptyESSource",
0394     recordName = cms.string("ESTestRecordC"),
0395     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0396     iovIsRunNotTime = cms.bool(True)
0397 )
0398 
0399 process4.emptyESSourceD = cms.ESSource("EmptyESSource",
0400     recordName = cms.string("ESTestRecordD"),
0401     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0402     iovIsRunNotTime = cms.bool(True)
0403 )
0404 
0405 process4.emptyESSourceE = cms.ESSource("EmptyESSource",
0406     recordName = cms.string("ESTestRecordE"),
0407     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0408     iovIsRunNotTime = cms.bool(True)
0409 )
0410 
0411 process4.emptyESSourceF = cms.ESSource("EmptyESSource",
0412     recordName = cms.string("ESTestRecordF"),
0413     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0414     iovIsRunNotTime = cms.bool(True)
0415 )
0416 
0417 process4.emptyESSourceG = cms.ESSource("EmptyESSource",
0418     recordName = cms.string("ESTestRecordG"),
0419     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0420     iovIsRunNotTime = cms.bool(True)
0421 )
0422 
0423 process4.emptyESSourceH = cms.ESSource("EmptyESSource",
0424     recordName = cms.string("ESTestRecordH"),
0425     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0426     iovIsRunNotTime = cms.bool(True)
0427 )
0428 
0429 process4.esTestProducerB = cms.ESProducer("ESTestProducerB")
0430 process4.esTestProducerC = cms.ESProducer("ESTestProducerC")
0431 process4.esTestProducerD = cms.ESProducer("ESTestProducerD")
0432 process4.esTestProducerE = cms.ESProducer("ESTestProducerE")
0433 process4.esTestProducerF = cms.ESProducer("ESTestProducerF")
0434 process4.esTestProducerG = cms.ESProducer("ESTestProducerG")
0435 process4.esTestProducerH = cms.ESProducer("ESTestProducerH")
0436 
0437 process4.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0438     appendToDataLabel = cms.string('abc'),
0439     test = cms.untracked.string('xyz')
0440 )
0441 
0442 process4.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0443     runsToGetDataFor = cms.vint32(1,2,3,6,7,8,9,10)
0444 )
0445 
0446 process4.path1 = cms.Path(process4.esTestAnalyzerB)
0447 
0448 # ---------------------------------------------------------
0449 
0450 # This one is like the top level process except esTestProducerH1
0451 # has been removed completely. Does not do the get
0452 # for events 1 to 3.
0453 
0454 
0455 process5 = cms.Process("TEST5")
0456 process4.addSubProcess(cms.SubProcess(process5))
0457 
0458 process5.emptyESSourceB = cms.ESSource("EmptyESSource",
0459     recordName = cms.string("ESTestRecordB"),
0460     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0461     iovIsRunNotTime = cms.bool(True)
0462 )
0463 
0464 process5.emptyESSourceC = cms.ESSource("EmptyESSource",
0465     recordName = cms.string("ESTestRecordC"),
0466     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0467     iovIsRunNotTime = cms.bool(True)
0468 )
0469 
0470 process5.emptyESSourceD = cms.ESSource("EmptyESSource",
0471     recordName = cms.string("ESTestRecordD"),
0472     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0473     iovIsRunNotTime = cms.bool(True)
0474 )
0475 
0476 process5.emptyESSourceE = cms.ESSource("EmptyESSource",
0477     recordName = cms.string("ESTestRecordE"),
0478     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0479     iovIsRunNotTime = cms.bool(True)
0480 )
0481 
0482 process5.emptyESSourceF = cms.ESSource("EmptyESSource",
0483     recordName = cms.string("ESTestRecordF"),
0484     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0485     iovIsRunNotTime = cms.bool(True)
0486 )
0487 
0488 process5.emptyESSourceG = cms.ESSource("EmptyESSource",
0489     recordName = cms.string("ESTestRecordG"),
0490     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0491     iovIsRunNotTime = cms.bool(True)
0492 )
0493 
0494 process5.emptyESSourceH = cms.ESSource("EmptyESSource",
0495     recordName = cms.string("ESTestRecordH"),
0496     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0497     iovIsRunNotTime = cms.bool(True)
0498 )
0499 
0500 process5.esTestProducerB = cms.ESProducer("ESTestProducerB")
0501 process5.esTestProducerC = cms.ESProducer("ESTestProducerC")
0502 process5.esTestProducerD = cms.ESProducer("ESTestProducerD")
0503 process5.esTestProducerE = cms.ESProducer("ESTestProducerE")
0504 process5.esTestProducerF = cms.ESProducer("ESTestProducerF")
0505 process5.esTestProducerG = cms.ESProducer("ESTestProducerG")
0506 process5.esTestProducerH = cms.ESProducer("ESTestProducerH")
0507 
0508 process5.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0509     runsToGetDataFor = cms.vint32(4,5,6,7,8,9,10)
0510 )
0511 
0512 process5.path1 = cms.Path(process5.esTestAnalyzerB)
0513 
0514 # ---------------------------------------------------------
0515 
0516 # This one is like the top level process except esTestProducerH2
0517 # has been added. Does not do the get for events 1 to 4.
0518 
0519 
0520 process6 = cms.Process("TEST6")
0521 process5.addSubProcess(cms.SubProcess(process6))
0522 
0523 process6.emptyESSourceB = cms.ESSource("EmptyESSource",
0524     recordName = cms.string("ESTestRecordB"),
0525     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0526     iovIsRunNotTime = cms.bool(True)
0527 )
0528 
0529 process6.emptyESSourceC = cms.ESSource("EmptyESSource",
0530     recordName = cms.string("ESTestRecordC"),
0531     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0532     iovIsRunNotTime = cms.bool(True)
0533 )
0534 
0535 process6.emptyESSourceD = cms.ESSource("EmptyESSource",
0536     recordName = cms.string("ESTestRecordD"),
0537     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0538     iovIsRunNotTime = cms.bool(True)
0539 )
0540 
0541 process6.emptyESSourceE = cms.ESSource("EmptyESSource",
0542     recordName = cms.string("ESTestRecordE"),
0543     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0544     iovIsRunNotTime = cms.bool(True)
0545 )
0546 
0547 process6.emptyESSourceF = cms.ESSource("EmptyESSource",
0548     recordName = cms.string("ESTestRecordF"),
0549     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0550     iovIsRunNotTime = cms.bool(True)
0551 )
0552 
0553 process6.emptyESSourceG = cms.ESSource("EmptyESSource",
0554     recordName = cms.string("ESTestRecordG"),
0555     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0556     iovIsRunNotTime = cms.bool(True)
0557 )
0558 
0559 process6.emptyESSourceH = cms.ESSource("EmptyESSource",
0560     recordName = cms.string("ESTestRecordH"),
0561     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0562     iovIsRunNotTime = cms.bool(True)
0563 )
0564 
0565 process6.esTestProducerB = cms.ESProducer("ESTestProducerB")
0566 process6.esTestProducerC = cms.ESProducer("ESTestProducerC")
0567 process6.esTestProducerD = cms.ESProducer("ESTestProducerD")
0568 process6.esTestProducerE = cms.ESProducer("ESTestProducerE")
0569 process6.esTestProducerF = cms.ESProducer("ESTestProducerF")
0570 process6.esTestProducerG = cms.ESProducer("ESTestProducerG")
0571 process6.esTestProducerH = cms.ESProducer("ESTestProducerH")
0572 
0573 process6.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0574     appendToDataLabel = cms.string('abc')
0575 )
0576 
0577 process6.esTestProducerH2 = cms.ESProducer("ESTestProducerH",
0578     appendToDataLabel = cms.string('xyz')
0579 )
0580 
0581 process6.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0582     runsToGetDataFor = cms.vint32(5,6,7,8,9,10)
0583 )
0584 
0585 process6.path1 = cms.Path(process6.esTestAnalyzerB)
0586 
0587 # ---------------------------------------------------------
0588 
0589 # This one is like the top level process except an extra
0590 # ESSource has been added for record F. Does not do the
0591 # get for events 1 to 5.
0592 
0593 
0594 process7 = cms.Process("TEST7")
0595 process6.addSubProcess(cms.SubProcess(process7))
0596 
0597 process7.emptyESSourceB = cms.ESSource("EmptyESSource",
0598     recordName = cms.string("ESTestRecordB"),
0599     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0600     iovIsRunNotTime = cms.bool(True)
0601 )
0602 
0603 process7.emptyESSourceC = cms.ESSource("EmptyESSource",
0604     recordName = cms.string("ESTestRecordC"),
0605     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0606     iovIsRunNotTime = cms.bool(True)
0607 )
0608 
0609 process7.emptyESSourceD = cms.ESSource("EmptyESSource",
0610     recordName = cms.string("ESTestRecordD"),
0611     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0612     iovIsRunNotTime = cms.bool(True)
0613 )
0614 
0615 process7.emptyESSourceE = cms.ESSource("EmptyESSource",
0616     recordName = cms.string("ESTestRecordE"),
0617     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0618     iovIsRunNotTime = cms.bool(True)
0619 )
0620 
0621 process7.emptyESSourceF = cms.ESSource("EmptyESSource",
0622     recordName = cms.string("ESTestRecordF"),
0623     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0624     iovIsRunNotTime = cms.bool(True)
0625 )
0626 
0627 process7.emptyESSourceF1 = cms.ESSource("EmptyESSource",
0628     recordName = cms.string("ESTestRecordF"),
0629     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0630     iovIsRunNotTime = cms.bool(True)
0631 )
0632 
0633 process7.emptyESSourceG = cms.ESSource("EmptyESSource",
0634     recordName = cms.string("ESTestRecordG"),
0635     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0636     iovIsRunNotTime = cms.bool(True)
0637 )
0638 
0639 process7.emptyESSourceH = cms.ESSource("EmptyESSource",
0640     recordName = cms.string("ESTestRecordH"),
0641     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0642     iovIsRunNotTime = cms.bool(True)
0643 )
0644 
0645 process7.esTestProducerB = cms.ESProducer("ESTestProducerB")
0646 process7.esTestProducerC = cms.ESProducer("ESTestProducerC")
0647 process7.esTestProducerD = cms.ESProducer("ESTestProducerD")
0648 process7.esTestProducerE = cms.ESProducer("ESTestProducerE")
0649 process7.esTestProducerF = cms.ESProducer("ESTestProducerF")
0650 process7.esTestProducerG = cms.ESProducer("ESTestProducerG")
0651 process7.esTestProducerH = cms.ESProducer("ESTestProducerH")
0652 
0653 process7.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0654     appendToDataLabel = cms.string('abc')
0655 )
0656 
0657 process7.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0658     runsToGetDataFor = cms.vint32(6,7,8,9,10)
0659 )
0660 
0661 process7.path1 = cms.Path(process7.esTestAnalyzerB)
0662 
0663 # ---------------------------------------------------------
0664 
0665 # This one is like the top level process except the
0666 # ESSource was removed for record D. Does not do the
0667 # get for events 1 to 6.
0668 
0669 process8 = cms.Process("TEST8")
0670 process7.addSubProcess(cms.SubProcess(process8))
0671 
0672 process8.emptyESSourceB = cms.ESSource("EmptyESSource",
0673     recordName = cms.string("ESTestRecordB"),
0674     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0675     iovIsRunNotTime = cms.bool(True)
0676 )
0677 
0678 process8.emptyESSourceC = cms.ESSource("EmptyESSource",
0679     recordName = cms.string("ESTestRecordC"),
0680     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0681     iovIsRunNotTime = cms.bool(True)
0682 )
0683 
0684 process8.emptyESSourceE = cms.ESSource("EmptyESSource",
0685     recordName = cms.string("ESTestRecordE"),
0686     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0687     iovIsRunNotTime = cms.bool(True)
0688 )
0689 
0690 process8.emptyESSourceF = cms.ESSource("EmptyESSource",
0691     recordName = cms.string("ESTestRecordF"),
0692     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0693     iovIsRunNotTime = cms.bool(True)
0694 )
0695 
0696 process8.emptyESSourceG = cms.ESSource("EmptyESSource",
0697     recordName = cms.string("ESTestRecordG"),
0698     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0699     iovIsRunNotTime = cms.bool(True)
0700 )
0701 
0702 process8.emptyESSourceH = cms.ESSource("EmptyESSource",
0703     recordName = cms.string("ESTestRecordH"),
0704     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0705     iovIsRunNotTime = cms.bool(True)
0706 )
0707 
0708 process8.esTestProducerB = cms.ESProducer("ESTestProducerB")
0709 process8.esTestProducerC = cms.ESProducer("ESTestProducerC")
0710 process8.esTestProducerD = cms.ESProducer("ESTestProducerD")
0711 process8.esTestProducerE = cms.ESProducer("ESTestProducerE")
0712 process8.esTestProducerF = cms.ESProducer("ESTestProducerF")
0713 process8.esTestProducerG = cms.ESProducer("ESTestProducerG")
0714 process8.esTestProducerH = cms.ESProducer("ESTestProducerH")
0715 
0716 process8.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0717     appendToDataLabel = cms.string('abc')
0718 )
0719 
0720 process8.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0721     runsToGetDataFor = cms.vint32(7,8,9,10)
0722 )
0723 
0724 process8.path1 = cms.Path(process8.esTestAnalyzerB)
0725 
0726 # ---------------------------------------------------------
0727 
0728 # This one is like the top level process except the
0729 # configuration was modified for theESSource for
0730 # record G. Does not do the get for events 1 to 7.
0731 
0732 process9 = cms.Process("TEST9")
0733 process8.addSubProcess(cms.SubProcess(process9))
0734 
0735 process9.emptyESSourceB = cms.ESSource("EmptyESSource",
0736     recordName = cms.string("ESTestRecordB"),
0737     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0738     iovIsRunNotTime = cms.bool(True)
0739 )
0740 
0741 process9.emptyESSourceC = cms.ESSource("EmptyESSource",
0742     recordName = cms.string("ESTestRecordC"),
0743     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0744     iovIsRunNotTime = cms.bool(True)
0745 )
0746 
0747 process9.emptyESSourceD = cms.ESSource("EmptyESSource",
0748     recordName = cms.string("ESTestRecordD"),
0749     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0750     iovIsRunNotTime = cms.bool(True)
0751 )
0752 
0753 process9.emptyESSourceE = cms.ESSource("EmptyESSource",
0754     recordName = cms.string("ESTestRecordE"),
0755     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0756     iovIsRunNotTime = cms.bool(True)
0757 )
0758 
0759 process9.emptyESSourceF = cms.ESSource("EmptyESSource",
0760     recordName = cms.string("ESTestRecordF"),
0761     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0762     iovIsRunNotTime = cms.bool(True)
0763 )
0764 
0765 process9.emptyESSourceG = cms.ESSource("EmptyESSource",
0766     recordName = cms.string("ESTestRecordG"),
0767     firstValid = cms.vuint32(1),
0768     iovIsRunNotTime = cms.bool(True)
0769 )
0770 
0771 process9.emptyESSourceH = cms.ESSource("EmptyESSource",
0772     recordName = cms.string("ESTestRecordH"),
0773     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0774     iovIsRunNotTime = cms.bool(True)
0775 )
0776 
0777 process9.esTestProducerB = cms.ESProducer("ESTestProducerB")
0778 process9.esTestProducerC = cms.ESProducer("ESTestProducerC")
0779 process9.esTestProducerD = cms.ESProducer("ESTestProducerD")
0780 process9.esTestProducerE = cms.ESProducer("ESTestProducerE")
0781 process9.esTestProducerF = cms.ESProducer("ESTestProducerF")
0782 process9.esTestProducerG = cms.ESProducer("ESTestProducerG")
0783 process9.esTestProducerH = cms.ESProducer("ESTestProducerH")
0784 
0785 process9.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0786     appendToDataLabel = cms.string('abc')
0787 )
0788 
0789 process9.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0790     runsToGetDataFor = cms.vint32(8,9,10)
0791 )
0792 
0793 process9.path1 = cms.Path(process9.esTestAnalyzerB)
0794 
0795 # ---------------------------------------------------------
0796 
0797 # Change the value of a tracked parameter in an ESProducer
0798 # associated with record H ( the module is labeled
0799 # esTestProducerH1). Do not get data for event 6.
0800 # Shows the esTestProducerB is not shared.
0801 
0802 process10 = cms.Process("TEST10")
0803 process9.addSubProcess(cms.SubProcess(process10))
0804 
0805 process10.emptyESSourceB = cms.ESSource("EmptyESSource",
0806     recordName = cms.string("ESTestRecordB"),
0807     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0808     iovIsRunNotTime = cms.bool(True)
0809 )
0810 
0811 process10.emptyESSourceC = cms.ESSource("EmptyESSource",
0812     recordName = cms.string("ESTestRecordC"),
0813     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0814     iovIsRunNotTime = cms.bool(True)
0815 )
0816 
0817 process10.emptyESSourceD = cms.ESSource("EmptyESSource",
0818     recordName = cms.string("ESTestRecordD"),
0819     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0820     iovIsRunNotTime = cms.bool(True)
0821 )
0822 
0823 process10.emptyESSourceE = cms.ESSource("EmptyESSource",
0824     recordName = cms.string("ESTestRecordE"),
0825     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0826     iovIsRunNotTime = cms.bool(True)
0827 )
0828 
0829 process10.emptyESSourceF = cms.ESSource("EmptyESSource",
0830     recordName = cms.string("ESTestRecordF"),
0831     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0832     iovIsRunNotTime = cms.bool(True)
0833 )
0834 
0835 process10.emptyESSourceG = cms.ESSource("EmptyESSource",
0836     recordName = cms.string("ESTestRecordG"),
0837     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0838     iovIsRunNotTime = cms.bool(True)
0839 )
0840 
0841 process10.emptyESSourceH = cms.ESSource("EmptyESSource",
0842     recordName = cms.string("ESTestRecordH"),
0843     firstValid = cms.vuint32(1,2,3,4,5,6,7,8,9),
0844     iovIsRunNotTime = cms.bool(True)
0845 )
0846 
0847 process10.esTestProducerB = cms.ESProducer("ESTestProducerB")
0848 process10.esTestProducerC = cms.ESProducer("ESTestProducerC")
0849 process10.esTestProducerD = cms.ESProducer("ESTestProducerD")
0850 process10.esTestProducerE = cms.ESProducer("ESTestProducerE")
0851 process10.esTestProducerF = cms.ESProducer("ESTestProducerF")
0852 process10.esTestProducerG = cms.ESProducer("ESTestProducerG")
0853 process10.esTestProducerH = cms.ESProducer("ESTestProducerH")
0854 
0855 process10.esTestProducerH1 = cms.ESProducer("ESTestProducerH",
0856     appendToDataLabel = cms.string('abc'),
0857     x = cms.string('abc')                                            
0858 )
0859 
0860 process10.esTestAnalyzerB = cms.EDAnalyzer("ESTestAnalyzerB",
0861     runsToGetDataFor = cms.vint32(1,2,3,4,5,7,8,9,10)
0862 )
0863 
0864 process10.path1 = cms.Path(process10.esTestAnalyzerB)
0865