Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:11

0001 # Define a job that produces some fake data useful for
0002 # repacker testing. The output is in Streamer format.
0003 # Original Author   W. David Dagenhart    27 March 2007
0004 
0005 import FWCore.ParameterSet.Config as cms
0006 
0007 process = cms.Process("HLT")
0008 
0009 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0010 
0011 process.options = cms.untracked.PSet(
0012     wantSummary = cms.untracked.bool(True)
0013 )
0014 
0015 process.source = cms.Source("EmptySource")
0016 
0017 # ~3.0 GB output file = 1.5 MB events x 2290 events x 0.87,
0018 # where 0.87 is the compression factor empirically measured
0019 # for this fake data.  There is a problems with this.
0020 # On machines that are not the newest, the streamer
0021 # output module crashes when the file size goes over
0022 # 2 GB. We believe this is related to the system libraries
0023 # used for file I/O.  On a new sl4 64 bit machine and compiling
0024 # with -m32 option, the streamer output module runs to
0025 # completion and creates a 3 GB without crashing.     
0026 
0027 process.maxEvents = cms.untracked.PSet(
0028     input = cms.untracked.int32(2290)
0029 # ~2.0 GB output file = 1.5 MB per event x 1270 events
0030 # The actual output file size is closer to 1.7 GB because
0031 # of compression.
0032 #    input = cms.untracked.int32(1270)
0033 )
0034 
0035 # This produces fake data to fill the events.  It is just
0036 # vectors full of random numbers.
0037 # ~1.5 MB event = 4 bytes x 2500 vector elements x 150 vectors.
0038 # Produces 150 branches, which is of order what we expect in data.
0039 # The bit mask is 2^24 - 1, this is used to set the top 8 bits
0040 # of each array element to zero.  Without use of this bit mask,
0041 # the bits are all randomly set.  The reason we care about this
0042 # is that we want the data to be smaller after compression
0043 # is run, because it is more like real data.
0044 process.prod = cms.EDProducer("StreamThingProducer",
0045     array_size = cms.int32(2500),
0046     instance_count = cms.int32(150),
0047     apply_bit_mask = cms.untracked.bool(True),
0048     bit_mask = cms.untracked.uint32(16777215)
0049 )
0050 
0051 # Set up 50 filter modules, each with its own path.  These
0052 # make filter decisions based on 50 independent random
0053 # number sequences and an accept rate configured below.
0054 # The TriggerResults object created in the event will store
0055 # the results of these filter modules.
0056 
0057 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0058     m1 = cms.PSet(
0059         initialSeed = cms.untracked.uint32(1)
0060     ),
0061     m2 = cms.PSet(
0062         initialSeed = cms.untracked.uint32(2)
0063     ),
0064     m3 = cms.PSet(
0065         initialSeed = cms.untracked.uint32(3)
0066     ),
0067     m4 = cms.PSet(
0068         initialSeed = cms.untracked.uint32(4)
0069     ),
0070     m5 = cms.PSet(
0071         initialSeed = cms.untracked.uint32(5)
0072     ),
0073     m6 = cms.PSet(
0074         initialSeed = cms.untracked.uint32(6)
0075     ),
0076     m7 = cms.PSet(
0077         initialSeed = cms.untracked.uint32(7)
0078     ),
0079     m8 = cms.PSet(
0080         initialSeed = cms.untracked.uint32(8)
0081     ),
0082     m9 = cms.PSet(
0083         initialSeed = cms.untracked.uint32(9)
0084     ),
0085     m10 = cms.PSet(
0086         initialSeed = cms.untracked.uint32(10)
0087     ),
0088     m11 = cms.PSet(
0089         initialSeed = cms.untracked.uint32(11)
0090     ),
0091     m12 = cms.PSet(
0092         initialSeed = cms.untracked.uint32(12)
0093     ),
0094     m13 = cms.PSet(
0095         initialSeed = cms.untracked.uint32(13)
0096     ),
0097     m14 = cms.PSet(
0098         initialSeed = cms.untracked.uint32(14)
0099     ),
0100     m15 = cms.PSet(
0101         initialSeed = cms.untracked.uint32(15)
0102     ),
0103     m16 = cms.PSet(
0104         initialSeed = cms.untracked.uint32(16)
0105     ),
0106     m17 = cms.PSet(
0107         initialSeed = cms.untracked.uint32(17)
0108     ),
0109     m18 = cms.PSet(
0110         initialSeed = cms.untracked.uint32(18)
0111     ),
0112     m19 = cms.PSet(
0113         initialSeed = cms.untracked.uint32(19)
0114     ),
0115     m20 = cms.PSet(
0116         initialSeed = cms.untracked.uint32(20)
0117     ),
0118     m21 = cms.PSet(
0119         initialSeed = cms.untracked.uint32(21)
0120     ),
0121     m22 = cms.PSet(
0122         initialSeed = cms.untracked.uint32(22)
0123     ),
0124     m23 = cms.PSet(
0125         initialSeed = cms.untracked.uint32(23)
0126     ),
0127     m24 = cms.PSet(
0128         initialSeed = cms.untracked.uint32(24)
0129     ),
0130     m25 = cms.PSet(
0131         initialSeed = cms.untracked.uint32(25)
0132     ),
0133     m26 = cms.PSet(
0134         initialSeed = cms.untracked.uint32(26)
0135     ),
0136     m27 = cms.PSet(
0137         initialSeed = cms.untracked.uint32(27)
0138     ),
0139     m28 = cms.PSet(
0140         initialSeed = cms.untracked.uint32(28)
0141     ),
0142     m29 = cms.PSet(
0143         initialSeed = cms.untracked.uint32(29)
0144     ),
0145     m30 = cms.PSet(
0146         initialSeed = cms.untracked.uint32(30)
0147     ),
0148     m31 = cms.PSet(
0149         initialSeed = cms.untracked.uint32(31)
0150     ),
0151     m32 = cms.PSet(
0152         initialSeed = cms.untracked.uint32(32)
0153     ),
0154     m33 = cms.PSet(
0155         initialSeed = cms.untracked.uint32(33)
0156     ),
0157     m34 = cms.PSet(
0158         initialSeed = cms.untracked.uint32(34)
0159     ),
0160     m35 = cms.PSet(
0161         initialSeed = cms.untracked.uint32(35)
0162     ),
0163     m36 = cms.PSet(
0164         initialSeed = cms.untracked.uint32(36)
0165     ),
0166     m37 = cms.PSet(
0167         initialSeed = cms.untracked.uint32(37)
0168     ),
0169     m38 = cms.PSet(
0170         initialSeed = cms.untracked.uint32(38)
0171     ),
0172     m39 = cms.PSet(
0173         initialSeed = cms.untracked.uint32(39)
0174     ),
0175     m40 = cms.PSet(
0176         initialSeed = cms.untracked.uint32(40)
0177     ),
0178     m41 = cms.PSet(
0179         initialSeed = cms.untracked.uint32(41)
0180     ),
0181     m42 = cms.PSet(
0182         initialSeed = cms.untracked.uint32(42)
0183     ),
0184     m43 = cms.PSet(
0185         initialSeed = cms.untracked.uint32(43)
0186     ),
0187     m44 = cms.PSet(
0188         initialSeed = cms.untracked.uint32(44)
0189     ),
0190     m45 = cms.PSet(
0191         initialSeed = cms.untracked.uint32(45)
0192     ),
0193     m46 = cms.PSet(
0194         initialSeed = cms.untracked.uint32(46)
0195     ),
0196     m47 = cms.PSet(
0197         initialSeed = cms.untracked.uint32(47)
0198     ),
0199     m48 = cms.PSet(
0200         initialSeed = cms.untracked.uint32(48)
0201     ),
0202     m49 = cms.PSet(
0203         initialSeed = cms.untracked.uint32(49)
0204     ),
0205     m50 = cms.PSet(
0206         initialSeed = cms.untracked.uint32(50)
0207     )
0208 )
0209 
0210 process.m1 = cms.EDFilter("RandomFilter",
0211     acceptRate = cms.untracked.double(0.2)
0212 )
0213 
0214 process.m2 = cms.EDFilter("RandomFilter",
0215     acceptRate = cms.untracked.double(0.2)
0216 )
0217 
0218 process.m3 = cms.EDFilter("RandomFilter",
0219     acceptRate = cms.untracked.double(0.2)
0220 )
0221 
0222 process.m4 = cms.EDFilter("RandomFilter",
0223     acceptRate = cms.untracked.double(0.2)
0224 )
0225 
0226 process.m5 = cms.EDFilter("RandomFilter",
0227     acceptRate = cms.untracked.double(0.2)
0228 )
0229 
0230 process.m6 = cms.EDFilter("RandomFilter",
0231     acceptRate = cms.untracked.double(0.1)
0232 )
0233 
0234 process.m7 = cms.EDFilter("RandomFilter",
0235     acceptRate = cms.untracked.double(0.1)
0236 )
0237 
0238 process.m8 = cms.EDFilter("RandomFilter",
0239     acceptRate = cms.untracked.double(0.1)
0240 )
0241 
0242 process.m9 = cms.EDFilter("RandomFilter",
0243     acceptRate = cms.untracked.double(0.1)
0244 )
0245 
0246 process.m10 = cms.EDFilter("RandomFilter",
0247     acceptRate = cms.untracked.double(0.1)
0248 )
0249 
0250 process.m11 = cms.EDFilter("RandomFilter",
0251     acceptRate = cms.untracked.double(0.05)
0252 )
0253 
0254 process.m12 = cms.EDFilter("RandomFilter",
0255     acceptRate = cms.untracked.double(0.05)
0256 )
0257 
0258 process.m13 = cms.EDFilter("RandomFilter",
0259     acceptRate = cms.untracked.double(0.05)
0260 )
0261 
0262 process.m14 = cms.EDFilter("RandomFilter",
0263     acceptRate = cms.untracked.double(0.05)
0264 )
0265 
0266 process.m15 = cms.EDFilter("RandomFilter",
0267     acceptRate = cms.untracked.double(0.05)
0268 )
0269 
0270 process.m16 = cms.EDFilter("RandomFilter",
0271     acceptRate = cms.untracked.double(0.05)
0272 )
0273 
0274 process.m17 = cms.EDFilter("RandomFilter",
0275     acceptRate = cms.untracked.double(0.05)
0276 )
0277 
0278 process.m18 = cms.EDFilter("RandomFilter",
0279     acceptRate = cms.untracked.double(0.05)
0280 )
0281 
0282 process.m19 = cms.EDFilter("RandomFilter",
0283     acceptRate = cms.untracked.double(0.05)
0284 )
0285 
0286 process.m20 = cms.EDFilter("RandomFilter",
0287     acceptRate = cms.untracked.double(0.05)
0288 )
0289 
0290 process.m21 = cms.EDFilter("RandomFilter",
0291     acceptRate = cms.untracked.double(0.01)
0292 )
0293 
0294 process.m22 = cms.EDFilter("RandomFilter",
0295     acceptRate = cms.untracked.double(0.01)
0296 )
0297 
0298 process.m23 = cms.EDFilter("RandomFilter",
0299     acceptRate = cms.untracked.double(0.01)
0300 )
0301 
0302 process.m24 = cms.EDFilter("RandomFilter",
0303     acceptRate = cms.untracked.double(0.01)
0304 )
0305 
0306 process.m25 = cms.EDFilter("RandomFilter",
0307     acceptRate = cms.untracked.double(0.01)
0308 )
0309 
0310 process.m26 = cms.EDFilter("RandomFilter",
0311     acceptRate = cms.untracked.double(0.01)
0312 )
0313 
0314 process.m27 = cms.EDFilter("RandomFilter",
0315     acceptRate = cms.untracked.double(0.01)
0316 )
0317 
0318 process.m28 = cms.EDFilter("RandomFilter",
0319     acceptRate = cms.untracked.double(0.01)
0320 )
0321 
0322 process.m29 = cms.EDFilter("RandomFilter",
0323     acceptRate = cms.untracked.double(0.01)
0324 )
0325 
0326 process.m30 = cms.EDFilter("RandomFilter",
0327     acceptRate = cms.untracked.double(0.01)
0328 )
0329 
0330 process.m31 = cms.EDFilter("RandomFilter",
0331     acceptRate = cms.untracked.double(0.005)
0332 )
0333 
0334 process.m32 = cms.EDFilter("RandomFilter",
0335     acceptRate = cms.untracked.double(0.005)
0336 )
0337 
0338 process.m33 = cms.EDFilter("RandomFilter",
0339     acceptRate = cms.untracked.double(0.005)
0340 )
0341 
0342 process.m34 = cms.EDFilter("RandomFilter",
0343     acceptRate = cms.untracked.double(0.005)
0344 )
0345 
0346 process.m35 = cms.EDFilter("RandomFilter",
0347     acceptRate = cms.untracked.double(0.005)
0348 )
0349 
0350 process.m36 = cms.EDFilter("RandomFilter",
0351     acceptRate = cms.untracked.double(0.005)
0352 )
0353 
0354 process.m37 = cms.EDFilter("RandomFilter",
0355     acceptRate = cms.untracked.double(0.005)
0356 )
0357 
0358 process.m38 = cms.EDFilter("RandomFilter",
0359     acceptRate = cms.untracked.double(0.005)
0360 )
0361 
0362 process.m39 = cms.EDFilter("RandomFilter",
0363     acceptRate = cms.untracked.double(0.005)
0364 )
0365 
0366 process.m40 = cms.EDFilter("RandomFilter",
0367     acceptRate = cms.untracked.double(0.005)
0368 )
0369 
0370 process.m41 = cms.EDFilter("RandomFilter",
0371     acceptRate = cms.untracked.double(0.001)
0372 )
0373 
0374 process.m42 = cms.EDFilter("RandomFilter",
0375     acceptRate = cms.untracked.double(0.001)
0376 )
0377 
0378 process.m43 = cms.EDFilter("RandomFilter",
0379     acceptRate = cms.untracked.double(0.001)
0380 )
0381 
0382 process.m44 = cms.EDFilter("RandomFilter",
0383     acceptRate = cms.untracked.double(0.001)
0384 )
0385 
0386 process.m45 = cms.EDFilter("RandomFilter",
0387     acceptRate = cms.untracked.double(0.001)
0388 )
0389 
0390 process.m46 = cms.EDFilter("RandomFilter",
0391     acceptRate = cms.untracked.double(0.0001)
0392 )
0393 
0394 process.m47 = cms.EDFilter("RandomFilter",
0395     acceptRate = cms.untracked.double(0.0001)
0396 )
0397 
0398 process.m48 = cms.EDFilter("RandomFilter",
0399     acceptRate = cms.untracked.double(0.0001)
0400 )
0401 
0402 process.m49 = cms.EDFilter("RandomFilter",
0403     acceptRate = cms.untracked.double(0.0001)
0404 )
0405 
0406 process.m50 = cms.EDFilter("RandomFilter",
0407     acceptRate = cms.untracked.double(0.0001)
0408 )
0409 
0410 process.out = cms.OutputModule("EventStreamFileWriter",
0411     max_event_size = cms.untracked.int32(7000000),
0412     use_compression = cms.untracked.bool(True),
0413     compression_level = cms.untracked.int32(1),
0414     fileName = cms.untracked.string('testRandomFilter.dat'),
0415 )
0416 
0417 #  processs.outp = cms.OutputModule("PoolOutputModule",
0418 #      fileName = cms.untracked.string.("testRandomFilter.root")
0419 #  )
0420 
0421 process.makeData = cms.Path(process.prod)
0422 process.p1 = cms.Path(process.m1)
0423 process.p2 = cms.Path(process.m2)
0424 process.p3 = cms.Path(process.m3)
0425 process.p4 = cms.Path(process.m4)
0426 process.p5 = cms.Path(process.m5)
0427 process.p6 = cms.Path(process.m6)
0428 process.p7 = cms.Path(process.m7)
0429 process.p8 = cms.Path(process.m8)
0430 process.p9 = cms.Path(process.m9)
0431 process.p10 = cms.Path(process.m10)
0432 process.p11 = cms.Path(process.m11)
0433 process.p12 = cms.Path(process.m12)
0434 process.p13 = cms.Path(process.m13)
0435 process.p14 = cms.Path(process.m14)
0436 process.p15 = cms.Path(process.m15)
0437 process.p16 = cms.Path(process.m16)
0438 process.p17 = cms.Path(process.m17)
0439 process.p18 = cms.Path(process.m18)
0440 process.p19 = cms.Path(process.m19)
0441 process.p20 = cms.Path(process.m20)
0442 process.p21 = cms.Path(process.m21)
0443 process.p22 = cms.Path(process.m22)
0444 process.p23 = cms.Path(process.m23)
0445 process.p24 = cms.Path(process.m24)
0446 process.p25 = cms.Path(process.m25)
0447 process.p26 = cms.Path(process.m26)
0448 process.p27 = cms.Path(process.m27)
0449 process.p28 = cms.Path(process.m28)
0450 process.p29 = cms.Path(process.m29)
0451 process.p30 = cms.Path(process.m30)
0452 process.p31 = cms.Path(process.m31)
0453 process.p32 = cms.Path(process.m32)
0454 process.p33 = cms.Path(process.m33)
0455 process.p34 = cms.Path(process.m34)
0456 process.p35 = cms.Path(process.m35)
0457 process.p36 = cms.Path(process.m36)
0458 process.p37 = cms.Path(process.m37)
0459 process.p38 = cms.Path(process.m38)
0460 process.p39 = cms.Path(process.m39)
0461 process.p40 = cms.Path(process.m40)
0462 process.p41 = cms.Path(process.m41)
0463 process.p42 = cms.Path(process.m42)
0464 process.p43 = cms.Path(process.m43)
0465 process.p44 = cms.Path(process.m44)
0466 process.p45 = cms.Path(process.m45)
0467 process.p46 = cms.Path(process.m46)
0468 process.p47 = cms.Path(process.m47)
0469 process.p48 = cms.Path(process.m48)
0470 process.p49 = cms.Path(process.m49)
0471 process.p50 = cms.Path(process.m50)
0472 process.o = cms.EndPath(process.out)