File indexing completed on 2024-12-01 23:40:17
0001 import FWCore.ParameterSet.Config as cms
0002 import sys
0003
0004 def chooseTrans(index):
0005 d = (
0006 ["Simple",
0007 cms.untracked.VPSet(
0008 cms.PSet(type = cms.untracked.string("IsFile"),
0009 id = cms.untracked.EventID(0,0,0)),
0010 cms.PSet(type = cms.untracked.string("IsRun"),
0011 id = cms.untracked.EventID(1,0,0)),
0012 cms.PSet(type = cms.untracked.string("IsLumi"),
0013 id = cms.untracked.EventID(1,1,0)),
0014 cms.PSet(type = cms.untracked.string("IsEvent"),
0015 id = cms.untracked.EventID(1,1,1)),
0016 cms.PSet(type = cms.untracked.string("IsEvent"),
0017 id = cms.untracked.EventID(1,1,2)),
0018 cms.PSet(type = cms.untracked.string("IsEvent"),
0019 id = cms.untracked.EventID(1,1,3)),
0020 cms.PSet(type = cms.untracked.string("IsEvent"),
0021 id = cms.untracked.EventID(1,1,4)),
0022 cms.PSet(type = cms.untracked.string("IsEvent"),
0023 id = cms.untracked.EventID(1,1,5)),
0024 cms.PSet(type = cms.untracked.string("IsStop"),
0025 id = cms.untracked.EventID(0,0,0))
0026 ) ],
0027 ["Less events than streams",
0028 cms.untracked.VPSet(
0029 cms.PSet(type = cms.untracked.string("IsFile"),
0030 id = cms.untracked.EventID(0,0,0)),
0031 cms.PSet(type = cms.untracked.string("IsRun"),
0032 id = cms.untracked.EventID(1,0,0)),
0033 cms.PSet(type = cms.untracked.string("IsLumi"),
0034 id = cms.untracked.EventID(1,1,0)),
0035 cms.PSet(type = cms.untracked.string("IsEvent"),
0036 id = cms.untracked.EventID(1,1,1)),
0037 cms.PSet(type = cms.untracked.string("IsStop"),
0038 id = cms.untracked.EventID(0,0,0))
0039 ) ],
0040 ["Multiple different Lumis",
0041 cms.untracked.VPSet(
0042 cms.PSet(type = cms.untracked.string("IsFile"),
0043 id = cms.untracked.EventID(0,0,0)),
0044 cms.PSet(type = cms.untracked.string("IsRun"),
0045 id = cms.untracked.EventID(1,0,0)),
0046 cms.PSet(type = cms.untracked.string("IsLumi"),
0047 id = cms.untracked.EventID(1,1,0)),
0048 cms.PSet(type = cms.untracked.string("IsEvent"),
0049 id = cms.untracked.EventID(1,1,1)),
0050 cms.PSet(type = cms.untracked.string("IsEvent"),
0051 id = cms.untracked.EventID(1,1,2)),
0052 cms.PSet(type = cms.untracked.string("IsLumi"),
0053 id = cms.untracked.EventID(1,2,0)),
0054 cms.PSet(type = cms.untracked.string("IsEvent"),
0055 id = cms.untracked.EventID(1,2,3)),
0056 cms.PSet(type = cms.untracked.string("IsEvent"),
0057 id = cms.untracked.EventID(1,2,4)),
0058 cms.PSet(type = cms.untracked.string("IsStop"),
0059 id = cms.untracked.EventID(0,0,0))
0060 ) ],
0061 ["Empty Lumi",
0062 cms.untracked.VPSet(
0063 cms.PSet(type = cms.untracked.string("IsFile"),
0064 id = cms.untracked.EventID(0,0,0)),
0065 cms.PSet(type = cms.untracked.string("IsRun"),
0066 id = cms.untracked.EventID(1,0,0)),
0067 cms.PSet(type = cms.untracked.string("IsLumi"),
0068 id = cms.untracked.EventID(1,1,0)),
0069 cms.PSet(type = cms.untracked.string("IsLumi"),
0070 id = cms.untracked.EventID(1,2,0)),
0071 cms.PSet(type = cms.untracked.string("IsEvent"),
0072 id = cms.untracked.EventID(1,2,3)),
0073 cms.PSet(type = cms.untracked.string("IsEvent"),
0074 id = cms.untracked.EventID(1,2,4)),
0075 cms.PSet(type = cms.untracked.string("IsStop"),
0076 id = cms.untracked.EventID(0,0,0))
0077 ) ],
0078 ["Empty Lumi at end",
0079 cms.untracked.VPSet(
0080 cms.PSet(type = cms.untracked.string("IsFile"),
0081 id = cms.untracked.EventID(0,0,0)),
0082 cms.PSet(type = cms.untracked.string("IsRun"),
0083 id = cms.untracked.EventID(1,0,0)),
0084 cms.PSet(type = cms.untracked.string("IsLumi"),
0085 id = cms.untracked.EventID(1,1,0)),
0086 cms.PSet(type = cms.untracked.string("IsEvent"),
0087 id = cms.untracked.EventID(1,1,3)),
0088 cms.PSet(type = cms.untracked.string("IsEvent"),
0089 id = cms.untracked.EventID(1,1,4)),
0090 cms.PSet(type = cms.untracked.string("IsLumi"),
0091 id = cms.untracked.EventID(1,2,0)),
0092 cms.PSet(type = cms.untracked.string("IsStop"),
0093 id = cms.untracked.EventID(0,0,0))
0094 ) ],
0095 ["Multiple different runs",
0096 cms.untracked.VPSet(
0097 cms.PSet(type = cms.untracked.string("IsFile"),
0098 id = cms.untracked.EventID(0,0,0)),
0099 cms.PSet(type = cms.untracked.string("IsRun"),
0100 id = cms.untracked.EventID(1,0,0)),
0101 cms.PSet(type = cms.untracked.string("IsLumi"),
0102 id = cms.untracked.EventID(1,1,0)),
0103 cms.PSet(type = cms.untracked.string("IsEvent"),
0104 id = cms.untracked.EventID(1,1,1)),
0105 cms.PSet(type = cms.untracked.string("IsEvent"),
0106 id = cms.untracked.EventID(1,1,2)),
0107 cms.PSet(type = cms.untracked.string("IsRun"),
0108 id = cms.untracked.EventID(2,0,0)),
0109 cms.PSet(type = cms.untracked.string("IsLumi"),
0110 id = cms.untracked.EventID(2,1,0)),
0111 cms.PSet(type = cms.untracked.string("IsEvent"),
0112 id = cms.untracked.EventID(2,1,1)),
0113 cms.PSet(type = cms.untracked.string("IsEvent"),
0114 id = cms.untracked.EventID(2,1,2)),
0115 cms.PSet(type = cms.untracked.string("IsStop"),
0116 id = cms.untracked.EventID(0,0,0))
0117 ) ],
0118 ["Empty run",
0119 cms.untracked.VPSet(
0120 cms.PSet(type = cms.untracked.string("IsFile"),
0121 id = cms.untracked.EventID(0,0,0)),
0122 cms.PSet(type = cms.untracked.string("IsRun"),
0123 id = cms.untracked.EventID(1,0,0)),
0124 cms.PSet(type = cms.untracked.string("IsRun"),
0125 id = cms.untracked.EventID(2,0,0)),
0126 cms.PSet(type = cms.untracked.string("IsLumi"),
0127 id = cms.untracked.EventID(2,1,0)),
0128 cms.PSet(type = cms.untracked.string("IsEvent"),
0129 id = cms.untracked.EventID(2,1,1)),
0130 cms.PSet(type = cms.untracked.string("IsEvent"),
0131 id = cms.untracked.EventID(2,1,2)),
0132 cms.PSet(type = cms.untracked.string("IsStop"),
0133 id = cms.untracked.EventID(0,0,0))
0134 ) ],
0135 ["Empty run at end",
0136 cms.untracked.VPSet(
0137 cms.PSet(type = cms.untracked.string("IsFile"),
0138 id = cms.untracked.EventID(0,0,0)),
0139 cms.PSet(type = cms.untracked.string("IsRun"),
0140 id = cms.untracked.EventID(1,0,0)),
0141 cms.PSet(type = cms.untracked.string("IsLumi"),
0142 id = cms.untracked.EventID(1,1,0)),
0143 cms.PSet(type = cms.untracked.string("IsEvent"),
0144 id = cms.untracked.EventID(1,1,1)),
0145 cms.PSet(type = cms.untracked.string("IsEvent"),
0146 id = cms.untracked.EventID(1,1,2)),
0147 cms.PSet(type = cms.untracked.string("IsRun"),
0148 id = cms.untracked.EventID(2,0,0)),
0149 cms.PSet(type = cms.untracked.string("IsStop"),
0150 id = cms.untracked.EventID(0,0,0))
0151 ) ],
0152 ["Empty run no lumi",
0153 cms.untracked.VPSet(
0154 cms.PSet(type = cms.untracked.string("IsFile"),
0155 id = cms.untracked.EventID(0,0,0)),
0156 cms.PSet(type = cms.untracked.string("IsRun"),
0157 id = cms.untracked.EventID(1,0,0)),
0158 cms.PSet(type = cms.untracked.string("IsStop"),
0159 id = cms.untracked.EventID(0,0,0))
0160 ) ],
0161 ["Empty file at end",
0162 cms.untracked.VPSet(
0163 cms.PSet(type = cms.untracked.string("IsFile"),
0164 id = cms.untracked.EventID(0,0,0)),
0165 cms.PSet(type = cms.untracked.string("IsRun"),
0166 id = cms.untracked.EventID(1,0,0)),
0167 cms.PSet(type = cms.untracked.string("IsLumi"),
0168 id = cms.untracked.EventID(1,1,0)),
0169 cms.PSet(type = cms.untracked.string("IsEvent"),
0170 id = cms.untracked.EventID(1,1,1)),
0171 cms.PSet(type = cms.untracked.string("IsEvent"),
0172 id = cms.untracked.EventID(1,1,2)),
0173 cms.PSet(type = cms.untracked.string("IsFile"),
0174 id = cms.untracked.EventID(0,0,0)),
0175 cms.PSet(type = cms.untracked.string("IsStop"),
0176 id = cms.untracked.EventID(0,0,0))
0177 ) ],
0178 ["Empty file",
0179 cms.untracked.VPSet(
0180 cms.PSet(type = cms.untracked.string("IsFile"),
0181 id = cms.untracked.EventID(0,0,0)),
0182 cms.PSet(type = cms.untracked.string("IsFile"),
0183 id = cms.untracked.EventID(0,0,0)),
0184 cms.PSet(type = cms.untracked.string("IsRun"),
0185 id = cms.untracked.EventID(1,0,0)),
0186 cms.PSet(type = cms.untracked.string("IsLumi"),
0187 id = cms.untracked.EventID(1,1,0)),
0188 cms.PSet(type = cms.untracked.string("IsEvent"),
0189 id = cms.untracked.EventID(1,1,1)),
0190 cms.PSet(type = cms.untracked.string("IsEvent"),
0191 id = cms.untracked.EventID(1,1,2)),
0192 cms.PSet(type = cms.untracked.string("IsStop"),
0193 id = cms.untracked.EventID(0,0,0))
0194 ) ],
0195 ["Merge run across files",
0196 cms.untracked.VPSet(
0197 cms.PSet(type = cms.untracked.string("IsFile"),
0198 id = cms.untracked.EventID(0,0,0)),
0199 cms.PSet(type = cms.untracked.string("IsRun"),
0200 id = cms.untracked.EventID(1,0,0)),
0201 cms.PSet(type = cms.untracked.string("IsLumi"),
0202 id = cms.untracked.EventID(1,1,0)),
0203 cms.PSet(type = cms.untracked.string("IsEvent"),
0204 id = cms.untracked.EventID(1,1,1)),
0205 cms.PSet(type = cms.untracked.string("IsEvent"),
0206 id = cms.untracked.EventID(1,1,2)),
0207 cms.PSet(type = cms.untracked.string("IsFile"),
0208 id = cms.untracked.EventID(0,0,0)),
0209 cms.PSet(type = cms.untracked.string("IsRun"),
0210 id = cms.untracked.EventID(1,0,0)),
0211 cms.PSet(type = cms.untracked.string("IsLumi"),
0212 id = cms.untracked.EventID(1,2,0)),
0213 cms.PSet(type = cms.untracked.string("IsEvent"),
0214 id = cms.untracked.EventID(1,2,3)),
0215 cms.PSet(type = cms.untracked.string("IsEvent"),
0216 id = cms.untracked.EventID(1,2,4)),
0217 cms.PSet(type = cms.untracked.string("IsStop"),
0218 id = cms.untracked.EventID(0,0,0))
0219 ) ],
0220 ["Merge run & lumi across files",
0221 cms.untracked.VPSet(
0222 cms.PSet(type = cms.untracked.string("IsFile"),
0223 id = cms.untracked.EventID(0,0,0)),
0224 cms.PSet(type = cms.untracked.string("IsRun"),
0225 id = cms.untracked.EventID(1,0,0)),
0226 cms.PSet(type = cms.untracked.string("IsLumi"),
0227 id = cms.untracked.EventID(1,1,0)),
0228 cms.PSet(type = cms.untracked.string("IsEvent"),
0229 id = cms.untracked.EventID(1,1,1)),
0230 cms.PSet(type = cms.untracked.string("IsEvent"),
0231 id = cms.untracked.EventID(1,1,2)),
0232 cms.PSet(type = cms.untracked.string("IsFile"),
0233 id = cms.untracked.EventID(0,0,0)),
0234 cms.PSet(type = cms.untracked.string("IsRun"),
0235 id = cms.untracked.EventID(1,0,0)),
0236 cms.PSet(type = cms.untracked.string("IsLumi"),
0237 id = cms.untracked.EventID(1,1,0)),
0238 cms.PSet(type = cms.untracked.string("IsEvent"),
0239 id = cms.untracked.EventID(1,1,3)),
0240 cms.PSet(type = cms.untracked.string("IsEvent"),
0241 id = cms.untracked.EventID(1,1,4)),
0242 cms.PSet(type = cms.untracked.string("IsStop"),
0243 id = cms.untracked.EventID(0,0,0))
0244 ) ],
0245 ["Different run across files",
0246 cms.untracked.VPSet(
0247 cms.PSet(type = cms.untracked.string("IsFile"),
0248 id = cms.untracked.EventID(0,0,0)),
0249 cms.PSet(type = cms.untracked.string("IsRun"),
0250 id = cms.untracked.EventID(1,0,0)),
0251 cms.PSet(type = cms.untracked.string("IsLumi"),
0252 id = cms.untracked.EventID(1,1,0)),
0253 cms.PSet(type = cms.untracked.string("IsEvent"),
0254 id = cms.untracked.EventID(1,1,1)),
0255 cms.PSet(type = cms.untracked.string("IsEvent"),
0256 id = cms.untracked.EventID(1,1,2)),
0257 cms.PSet(type = cms.untracked.string("IsFile"),
0258 id = cms.untracked.EventID(0,0,0)),
0259 cms.PSet(type = cms.untracked.string("IsRun"),
0260 id = cms.untracked.EventID(2,0,0)),
0261 cms.PSet(type = cms.untracked.string("IsLumi"),
0262 id = cms.untracked.EventID(2,1,0)),
0263 cms.PSet(type = cms.untracked.string("IsEvent"),
0264 id = cms.untracked.EventID(2,1,1)),
0265 cms.PSet(type = cms.untracked.string("IsEvent"),
0266 id = cms.untracked.EventID(2,1,2)),
0267 cms.PSet(type = cms.untracked.string("IsStop"),
0268 id = cms.untracked.EventID(0,0,0))
0269 ) ],
0270
0271 ["Delayed lumi merge",
0272 cms.untracked.VPSet(
0273 cms.PSet(type = cms.untracked.string("IsFile"),
0274 id = cms.untracked.EventID(0,0,0)),
0275 cms.PSet(type = cms.untracked.string("IsRun"),
0276 id = cms.untracked.EventID(1,0,0)),
0277 cms.PSet(type = cms.untracked.string("IsLumi"),
0278 id = cms.untracked.EventID(1,1,0)),
0279 cms.PSet(type = cms.untracked.string("IsLumi"),
0280 id = cms.untracked.EventID(1,1,0)),
0281 cms.PSet(type = cms.untracked.string("IsEvent"),
0282 id = cms.untracked.EventID(1,1,1)),
0283 cms.PSet(type = cms.untracked.string("IsEvent"),
0284 id = cms.untracked.EventID(1,1,2)),
0285 cms.PSet(type = cms.untracked.string("IsLumi"),
0286 id = cms.untracked.EventID(1,2,0)),
0287 cms.PSet(type = cms.untracked.string("IsEvent"),
0288 id = cms.untracked.EventID(1,2,3)),
0289 cms.PSet(type = cms.untracked.string("IsEvent"),
0290 id = cms.untracked.EventID(1,2,4)),
0291 cms.PSet(type = cms.untracked.string("IsStop"),
0292 id = cms.untracked.EventID(0,0,0))
0293 ) ],
0294 ["Delayed lumi merge 2",
0295 cms.untracked.VPSet(
0296 cms.PSet(type = cms.untracked.string("IsFile"),
0297 id = cms.untracked.EventID(0,0,0)),
0298 cms.PSet(type = cms.untracked.string("IsRun"),
0299 id = cms.untracked.EventID(1,0,0)),
0300 cms.PSet(type = cms.untracked.string("IsLumi"),
0301 id = cms.untracked.EventID(1,1,0)),
0302 cms.PSet(type = cms.untracked.string("IsEvent"),
0303 id = cms.untracked.EventID(1,1,1)),
0304 cms.PSet(type = cms.untracked.string("IsEvent"),
0305 id = cms.untracked.EventID(1,1,2)),
0306 cms.PSet(type = cms.untracked.string("IsLumi"),
0307 id = cms.untracked.EventID(1,2,0)),
0308 cms.PSet(type = cms.untracked.string("IsLumi"),
0309 id = cms.untracked.EventID(1,2,0)),
0310 cms.PSet(type = cms.untracked.string("IsEvent"),
0311 id = cms.untracked.EventID(1,2,3)),
0312 cms.PSet(type = cms.untracked.string("IsEvent"),
0313 id = cms.untracked.EventID(1,2,4)),
0314 cms.PSet(type = cms.untracked.string("IsStop"),
0315 id = cms.untracked.EventID(0,0,0))
0316 ) ],
0317 ["Delayed run merge",
0318 cms.untracked.VPSet(
0319 cms.PSet(type = cms.untracked.string("IsFile"),
0320 id = cms.untracked.EventID(0,0,0)),
0321 cms.PSet(type = cms.untracked.string("IsRun"),
0322 id = cms.untracked.EventID(1,0,0)),
0323 cms.PSet(type = cms.untracked.string("IsRun"),
0324 id = cms.untracked.EventID(1,0,0)),
0325 cms.PSet(type = cms.untracked.string("IsLumi"),
0326 id = cms.untracked.EventID(1,1,0)),
0327 cms.PSet(type = cms.untracked.string("IsEvent"),
0328 id = cms.untracked.EventID(1,1,1)),
0329 cms.PSet(type = cms.untracked.string("IsEvent"),
0330 id = cms.untracked.EventID(1,1,2)),
0331 cms.PSet(type = cms.untracked.string("IsRun"),
0332 id = cms.untracked.EventID(2,0,0)),
0333 cms.PSet(type = cms.untracked.string("IsLumi"),
0334 id = cms.untracked.EventID(2,1,0)),
0335 cms.PSet(type = cms.untracked.string("IsEvent"),
0336 id = cms.untracked.EventID(2,1,1)),
0337 cms.PSet(type = cms.untracked.string("IsEvent"),
0338 id = cms.untracked.EventID(2,1,2)),
0339 cms.PSet(type = cms.untracked.string("IsStop"),
0340 id = cms.untracked.EventID(0,0,0))
0341 ) ],
0342 ["Delayed run merge 2",
0343 cms.untracked.VPSet(
0344 cms.PSet(type = cms.untracked.string("IsFile"),
0345 id = cms.untracked.EventID(0,0,0)),
0346 cms.PSet(type = cms.untracked.string("IsRun"),
0347 id = cms.untracked.EventID(1,0,0)),
0348 cms.PSet(type = cms.untracked.string("IsLumi"),
0349 id = cms.untracked.EventID(1,1,0)),
0350 cms.PSet(type = cms.untracked.string("IsEvent"),
0351 id = cms.untracked.EventID(1,1,1)),
0352 cms.PSet(type = cms.untracked.string("IsEvent"),
0353 id = cms.untracked.EventID(1,1,2)),
0354 cms.PSet(type = cms.untracked.string("IsRun"),
0355 id = cms.untracked.EventID(2,0,0)),
0356 cms.PSet(type = cms.untracked.string("IsRun"),
0357 id = cms.untracked.EventID(2,0,0)),
0358 cms.PSet(type = cms.untracked.string("IsLumi"),
0359 id = cms.untracked.EventID(2,1,0)),
0360 cms.PSet(type = cms.untracked.string("IsEvent"),
0361 id = cms.untracked.EventID(2,1,1)),
0362 cms.PSet(type = cms.untracked.string("IsEvent"),
0363 id = cms.untracked.EventID(2,1,2)),
0364 cms.PSet(type = cms.untracked.string("IsStop"),
0365 id = cms.untracked.EventID(0,0,0))
0366 ) ],
0367 )
0368 print('****************************************')
0369 print('Test:', d[index][0])
0370 print('****************************************')
0371 return d[index][1]
0372
0373 trans = chooseTrans(int(sys.argv[1]))
0374
0375 process = cms.Process("TEST")
0376 process.source = cms.Source("TestSource",
0377 transitions = trans)
0378
0379 process.add_(cms.Service("CheckTransitions",
0380 transitions = trans))
0381 process.options = cms.untracked.PSet(numberOfThreads = cms.untracked.uint32(2),
0382 numberOfStreams = cms.untracked.uint32(0))