Simple script verifying sanity of muDst files
updated 2004-08-17

  • script bigMuQA executes for every muDst file a very primitive muDst analysis ( rdMu.C ) which reads all events in the file and prints total in seperate log files.
    The same script scans later the log files and prints one line per muDst if all events were found and if the file is not corrupted.
    It is slow (minutes per file) but you do it once and you can clean your muDst file list from corrupted files. It saves you from unnecessary crashes later.

  • to compare if # of eve matches the run log one can use the script verifyMu.tcl

  • Example:
    Generate list of muDst files, e.g.
     ls /star/data35/reco/productionPP/ReversedFullField/DEV/2004/120/*Mu* > 5120009.lis
    
    Run script
    bigMuQA < R5118053.lis
    QA   #   file name                     nEve nMissing
    good 1 log.st_fast_5118053_raw_1070002 5819 0
    good 2 log.st_fast_5118053_raw_1070001 5819 0
    bad  3 log.st_fast_5118053_raw_1070077
    good 4 log.st_fast_5118053_raw_1070004 5819 0
    good 5 log.st_fast_5118053_raw_1070005 5819 0
    good 6 log.st_fast_5118053_raw_1070006 5819 0
    good 7 log.st_fast_5118053_raw_1070007 5819 0
    good 8 log.st_fast_5118053_raw_1070008 3181 0
    good 9 log.st_physics_5118053_raw_1020001 270 0
    good 10 log.st_physics_5118053_raw_1030001 1000 0
    good 11 log.st_physics_5118053_raw_1030002 997 0