To cleanup and resubmitted physmon jobs GV 13-Apr-05 ========================================================== PROCEDURE TO CHECK RUNS WITH ERRORS: -------------------------------------- 1) Check dead/low eff channels from /runcond/datarec/physmon/log ./check_deads.csh 17400 27200 It creates: - dcdeads_chs_17400_27200.list - dcdeads_file_17400_27200.list ./check_eff.csh 17400 27200 It creates: - dceff_chs_17400_27200.list - dceff_file_17400_27200.list Check the two files dcdeads_file_17400_27200.list and dceff_file_17400_27200.list are identical (use for exmaple ./diff.pl) 2)Check runs with errors 2.1) from fibm11 and fibm12 in the area ^^^^^^ ^^^^^^ /analysis/physmon/logs ./check_errors.csh 17400 27200 It creates: - check_err_17400_27200.list 2.2) from fibm11 and fibm12 do also: ls -lsrt *.err >physmon_err{11,12}.list 2.3) and compare the files: ./diff.pl check_err_17400_27200.list physmon_err{11,12}.list 3)Include check_err_17400_27200.list from fibm11 and fibm12 in one file only. Rename this file as 17400_27200_toberedone.list Remove the run with "BMOM version 3" error, since we don't want to do again. Clean multiple messages for single run (we want that one run appears only once) Add, if necessary, the runs in "physmon_err{11,12}.list" from the previous comparison (point 2.3) which are NOT in check_err_17400_27200.list list. 4) Remove the files related to runs with problems and/or with BMOM3: from fibm11 and fibm12 in the area /analysis/physmon/logs: ./cleanup_physmon.pl check_err_17400_27200.list 5)submit it: from fibm11 as kloerec in the home directory: submit_pl ! ! /analysis/physmon/logs/17400_27200_toberedone.list PROCEDURE TO CHECK MISSING RUNS: -------------------------------- 1) list all the runs which must be submiutted. in /analysis/physmon/logs/ on fibm11 there is the query (sql.mem) which is used by submit_physmon.pl script: dbonl "select run_nr, min ( case when analyzed is null then 0 else analyzed end ) from logger.raw_logger where run_nr between 17400 and 27200 and stream_id=0 group by run_nr having min ( case when analyzed is null then 0 else analyzed end ) >= 12" > sql_17400_27200_gedbv12.mem 2) compare with the runs which have been done: ./diff.pl sql_17400_27200_gedbv12.mem /runcond/datarec/physmon/log/dcdeads_file_17400_27220.list >buchi.list 3)clean buchi.list (keep only the runs which aren't in dcdeads_file_17400_27220.list). 4)submit it: from fibm11 as kloerec in the home directory: submit_pl ! ! /analysis/physmon/logs/buchi.list