301 from CoolRunQuery.AtlRunQuerySFO
import SetOKSLinks
310 runno = int(sys.argv[1])
312 runno = [140541, 140571, 140579, 140592, 140616, 140620,
313 140622, 140638, 140670, 140682, 140704, 140737, 140747,
314 140748, 140754, 140762, 140765, 140769, 140772, 140776,
315 140790, 140794, 140822, 140836, 140842, 140929, 140953,
316 140955, 140974, 140975, 141046, 141059, 141066, 141079,
317 141109, 141150, 141189, 141192, 141194, 141203, 141209,
318 141226, 141234, 141236, 141237, 141238, 141266, 141270,
319 141359, 141374, 141387, 141398, 141401, 141403, 141461,
320 141473, 141474, 141525, 141527, 141529, 141533, 141534,
321 141561, 141562, 141563, 141565, 141599, 141624, 141655,
322 141667, 141670, 141688, 141689, 141691, 141695, 141700,
323 141702, 141704, 141705, 141706, 141707, 141718, 141721,
324 141730, 141746, 141748, 141749, 141755, 141769, 141807,
325 141811, 141818, 141841, 141915, 141928, 141976, 141979,
326 141994, 141998, 141999, 142042, 142065, 142081, 142091,
327 142094, 142111, 142123, 142125, 142128, 142133, 142144,
328 142149, 142154, 142155, 142157, 142159, 142161, 142165,
329 142166, 142171, 142174, 142183, 142185, 142187, 142189,
330 142190, 142191, 142192, 142193, 142194, 142195, 142199,
331 142203, 142205, 142210, 142214, 142216, 142240, 142258,
332 142259, 142265, 142291, 142301, 142308, 142309, 142310,
333 142319, 142356, 142368, 142383, 142390, 142391, 142392,
334 142394, 142395, 142397, 142400, 142401, 142402, 142403,
335 142404, 142405, 142406, 143019, 143023, 143027, 143033,
336 143034, 143131, 143136, 143143, 143163, 143169, 143171,
337 143178, 143182, 143185, 143190, 143192, 143198, 143203,
338 143204, 143205, 143207, 143210, 143218, 143222, 143225,
344 from CoolRunQuery.utils.AtlRunQueryUtils
import coolDbConn
345 connection = coolDbConn.GetSFODBConnection()
346 cursor = connection.cursor()
352 print (
'Last %i runs:' % n)
361 print (
"streams",time()-start)
363 GetSFO_LBsAll ( cursor, runno )
364 print (
"lbs",time()-start)
367 print (
"events",time()-start)
369 GetSFO_filesAll ( cursor, runno )
370 print (
"files",time()-start)
373 print (
"overlap",time()-start)
376 print (
"Query execution time: %f sec" % (time()-start))