This is the log book for the TRICS software ================================================================================ TRGBOOK:TRICS.LBK_V2 Archived Section Of TRICS V2.X notes covers 22-JAN-1992 through 30-JUN-1992 ================================================================================ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30-JUN-1992 Philippe: MSU move to version 3.0 - modify TABLE_CBUS_CARDS.TYP change registers of mtg_twb_card - modify MOD071_DEF_HARDWARE_TABLES.PAS define channel 25:32 of special IO MTG, limit twb to 1 register at fa=0 - modify MOD123_INIT_CBUS_CARDS.PAS initialize to low the special IO MTG channels 25-32 - modify MOD404_HANDLE_MONIT_POOL.PAS set the trouble warning flag monit_pool not_refreshed after killing the task in delete_rfrsh_mpool_proc limit to reading 1 byte of hardware trouble warning bits from special MTG - modify MOD058_TCS_IO_TWB_HANDLING.PAS change type of argument from integer to int_by_byte, and only read 1 byte. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25-JUN-1992 Philippe: MSU - modify MPOOL_DATA.TYP in global message sections, add delta_event_transfer add delta_L15 scalers in specific trigger message sections, add level 0 count rename sptrgincr to sptrgcnt rename gsectincr to gsectcnt in count snapshots, replace trigcnt with transfcnt and stdifcnt add global level 1.5 counts add sptrg level 1.5 counts - modify TABLE_DBLOCK_967.TYP in framework section, replace trig_num with transf_num and stdig_num add level 1.5 scalers add gated Beam Crossing scaler add Level 0 Good Scaler rename Level_15 status to L15_Begin in Level 1.5 Section, update scalers and duplicate begin/end update imlro End Status, Pre_End Status in Level 1 scalers section, add Level 1.5 scaler add spare scaler reserve scalers read in framework section in foreign scaler section, update 50 -> 44 scalers available - modify MOD033_HANDLE_CONSOLE.PAS Shrink title window of banner in order to increase Rate window of banner Make the content old procedure display_rate into new function rate_string. Update oprocedure display_global_rate to accept 2 rates for the window. - modify MOD404_HANDLE_MONIT_POOL.PAS Now compute both Start Digitize and Transfer Rate for Banner Window Rename read_andor_and_veto_SBSC to read_sptrg_SBSC modified to let read_SBScalers unpack bytes in integers and only worry about transfering the integers to the right place read L1.5 Scalers add all new global Level 0 and and Level 1.5 DBSC snapshots to - modify MPOOL_SERVER.PAS update global section update sptrg and geo section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24-JUN-1992 Philippe: MSU - modify MOD203_TST_CALTRG_RANDOM.PAS fix bug preventing checking global sum ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 19-JUN-1992 Philippe: MSU - modify MOD203_TST_CALTRG_RANDOM.PAS fix bug in calling check_cmp_result (TOTEt) with expected result (EMEt) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 18-JUN-1992 Philippe: D0 - modify MOD071_DEF_HARDWARE_TABLES.PAS all start digitize MTG pal now have the same definition - modify MOD123_INIT_CBUS_CARDS.PAS fix bug in loop number around Level 1.5 control MTG channel #6 - modify MOD116_HANDLE_GEOSEC.PAS write 0 to enable start digitize in geosec_start_dgtz_signal - modify SITE_DEPENDENT.CST Change init load value for start digitize MTG 4 -> 0 - modify MOD243_COOR_DISPATCH.PAS Temporary deactivate the ability to turn start digitize off ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 12-JUN-1992 Philippe: - modify MOD116_HANDLE_GEOSEC.PAS geosec_start_dgtz_signal change write 9 - > 1 for disable ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 11-JUN-1992 Philippe: - modify MOD071_DEF_HARDWARE_TABLES.PAS add named parameters for Level 1.5 Control MTG signals define register width for level 1.5 veto/confirm MTG level 1.5 receiving MTG Level 1.5 control MTG name values for l1.5 receive, veto, confirm programming states initialize skip one, two, ten PALs temporary fix: make start digitize PALs think they can write bit #3 and not read it back so they can look like the special one for COMINT and receive a 4 that really writes a 0. - modify SITE_DEPENDENT.CST new parameters for l1.5 confirms to all low l1.5 vetos to all low l1.5 receive to all low l1.5 control level 1.5 normal mode (for most channels) l1.5 timeout programming update parameter for start digitize MTG, hold transfer MTG - modify MOD123_INIT_CBUS_CARDS.PAS Initialize l1.5 confirms to all low Initialize l1.5 vetos to all low Initialize l1.5 receive to all low Initialize l1.5 control MTG to normal mode (for most channels) Initialize l1.5 control DGM confirm by timeout - modify MOD117_HANDLE_SPTRG.PAS add reset_sptrg_l15_scalers procedure add enable/disable of veto/conf MTG chan for L 1.5 / pure L 1.0 type add enable of receive MTG chan for L 1.5 terms used - modify MOD125_INIT_SPTRG.PAS call reset_sptrg_l15_scalers from reset_sptrg_scalers, only for low 16 sptrg - modify TRICS_V26.DAT increase maximum virtual size /p0_virtual_size=6272 -> 8064 /p1_virtual_size=1024 -> 2048 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 9-JUN-1992 Philippe: - modify MOD125_INIT_SPTRG.PAS only initialize and restore sptrg level15_type for firstL15sptrg <= sptrgnum <= lastL15sptrg - modify MOD071_DEF_HARDWARE_TABLES.PAS update register read and write mask for start digitize MTG, hold transfer MTG and Framework TSS MTG. new timing signal name ch # 14 = tss_fw_incr_stdigt_num name change ch # 20 tss_fw_incr_trig_num -> tss_fw_incr_transf_num - modify MOD123_INIT_CBUS_CARDS.PAS prpagate timing signal name change ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8-JUN-1992 Philippe: - modify MOD223_COOR_GLOBAL_EXECUTE.PAS MOD125_INIT_SPTRG.PAS MOD124_INIT_GEOSEC.PAS MOD127_INIT_GLOBALS.PAS MOD128_INIT_TRGTWR.PAS remove IF ( inline_tracing(trace_info) <> 0 ) before handle_trc_sys ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4-JUN-1992 Philippe: - modify MOD123_INIT_CBUS_CARDS.PAS Special TRICS intitialization of MTG FW TSS ch#14 incr.St.Dgt.Num to be ROM Gated. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3-JUN-1992 Philippe: EWORK1: - Modify MOD128_INIT_TRGTWR.PAS replace BYTE_THRESHOLD with ENERGY_THRESHOLD during restore of trigger tower in the call to set_trgtwr_ref. - update MENU's andor card test to use the new MTG rev B Also add mode to use dzero MBA for FW TSS MTG ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8-MAY-1992 Philippe: EWORK1: - Modify MOD120_HANDLE_THRESHOLDS.PAS temporary comment out of setting FMLN thresholds - Modify MPOOL_DATA.TYP add .thresh entry ot monitoring_data record - Modify MOD404_HANDLE_MONIT_POOL.PAS refresh threshold programming field - Modify MPOOL_SERVER.PAS fill in threshold programming message - Modify MOD501_HANDLE_DBLE_BUFF.PAS use option no_report in allocate/deallocate trigger ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8-MAY-1992 Philippe: EWORK1: - Modify TABLE_ENUM.TYP and MOD071_DEF_HARDWARE_TABLES.PAS add global_energy_thresholds export global_energy_thresholds - create MOD120_HANDLE_THRESHOLDS.PAS with set_energy_threshold, set_count_threshold - modify MOD130_INIT_THRESHOLDS.PAS add load_momentum_lookup, init_all_thresholds, restore_all_thresholds, initialize_energy_threshold, initialize_count_threshold, check_alloc_eng_threshold_coor, check_alloc_cnt_threshold_coor; - Modify MOD226_COOR_CALTRG_EXECUTE.PAS set cat2/3 threshold by calling routines from mod_handle_thresholds quit needing mod_handle_cat_cards, and mod_handle_fmln use check_alloc_cnt/eng_threshold_coor and initialize_count/energy_threshold for releasing threshold - Modify MOD123_INIT_CBUS_CARDS.PAS replace high-level init of fmln cards by single write to registers - modify TRICS_V26.PAS (also def_threhsold_table) MOD223_COOR_GLOBAL_EXECUTE.PAS MOD201_TST_INIT.PAS call load_tree_offsets, init_all_thresholds load_momentum_lookup - modify MOD118_HANDLE_JET_LIST.PAS add restore of jet list programming - modify MOD128_INIT_TRGTWR.PAS implement restore_all_trgtwr - modify MOD223_COOR_GLOBAL_EXECUTE.PAS use restore_all_trgtwr use restore_all_thresholds - modify MOD057_IO_ALLOCATION_HANDLING.PAS add flag report (default TRUE) to allow blocking screen messages - use allocate/deallocate report flag in MOD057_IO_ALLOCATION_HANDLING.PAS MOD124_INIT_GEOSEC.PAS MOD125_INIT_SPTRG.PAS MOD128_INIT_TRGTWR.PAS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7-MAY-1992 Philippe: EWORK1: - update TRGOLB:LSMLIB_ZEBRA.OLB and EWORK1:TRICS_V26_LINK.OPT make file OLSMP:BUILD_LSMLIB_FOR_TRICS.COM - modify MOD105_HANDLE_CAT_CARDS.PAS add routine update_cat3_correction to load CAT3 corection register - create TABLE_THRESHOLD.TYP - modify MOD073_DEF_PHYSICS_TABLES.PAS add table for energy and count threshods add def_threshold_table - create MOD130_INIT_THRESHOLDS.PAS with load_tree_offsets ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 29-APR-1992 Philippe: EWORK1: - modify MPOOL_DATA.TYP add (still commented out) l15_pass to general section add (still commented out) counts to spec_trig_count_increment section renamed spec_trig_count_and_increment - modify MOD119_HANDLE_TRGTWR.PAS restore information message from set_trgtwr_ref (normal run with info off) remove warning of already done change the recording in object data base of the energy threshold. use correct energy when the byte threshold is NOT full scale, use 1,000 GeV as flag to TRGMON that this is full scale note: the ability to recover the programming from this value isn't lost. Calling this routine again with this value will produce the same result. - find the cause of the missing tree offsets: old development version of the LSMLIB library. update TRGOLB:LSMLIB_ZEBRA.OLB with the code from l1sim$lsmlib and the ACCESS*.FOR routines from LSMP$SOURCE. - modify MOD095_INIT_LSM.PAS add call to MZEBRA re-compute tree_offset ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 27-APR-1992 Philippe: EWORK1: - modify MOD117_HANDLE_SPTRG.PAS add Level 1.5 Type and Level 1.5 term list to show Specific Trigger - modify TABLE_CBUS_CARDS.TYP name in record dgm_L15_control_card from L15_accept to L15_confirmed progagate in MOD071_DEF_HARDWARE_TABLES.PAS progagate in MOD123_INIT_CBUS_CARDS.PAS progagate in SITE_DEPENDENT.CST - modify MOD125_INIT_SPTRG.PAS add init level 1.5 type and level 1.5 terms add restore level 1.5 type and level 1.5 terms - modify MPOOL_DATA.TYP add level 1.5 scalers to monit pool data dual definition as 2*16 or 32 sbscalers - modify TABLE_DBLOCK_967.TYP update radout order of l1.5 IMLRO, DBSC readout - modify MOD105_HANDLE_CAT_CARDS.PAS change the method of assigning the address of a parameter to a descriptive record with copying the parameter to the descriptive record ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 26-APR-1992 Philippe: EWORK1: - modify MOD071_DEF_HARDWARE_TABLES.PAS cleanup current_card and add total_card to keep track of number of cards defined. Write message in logfile. define l1.5 cards in data base - modify TABLE_CBUS_CARDS.TYP add l1.5 card TYPEs imlro_L15_card dgm_L15_control_card dbsc_L15_card modify order of register in non-FSTDcell DBSCs to match the same order in order to make initialization uniform - modify SITE_DEPENDENT.CST add coverage constants first/last L15 sptrg add coverage constants first/last L15 term add location constant l15 timeout add initilization constants init_DGM_L15_terms, init_DGM_L15_spare, init_DGM_L15_accept, init_DGM_L15_fired, init_DGM_L15_pureL1 - modify MOD123_INIT_CBUS_CARDS.PAS initialize l1.5 cards add general procedure to initialize MTG add general procedure to initialize DBSC - modify MOD243_COOR_DISPATCH.PAS call coor_sptrg_l15type for SPECTRIG L15_TYPE messages call coor_sptrg_l15term for SPECTRIG L15_TERM messages - modify MOD225_COOR_SPTRG_EXECUTE.PAS add procedures coor_sptrg_l15type add procedures coor_sptrg_l15term - modify MOD117_HANDLE_SPTRG.PAS add PROCEDURE level15_type add PROCEDURE prog_l15confirm - modify TABLE_SPEC_TRIG.TYP add to specific trigger record level 1.5 type list of level 1.5 terms ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25-APR-1992 Philippe: EWORK1: - start defining L15 - modify MOD071_DEF_HARDWARE_TABLES.PAS add l1.5 cards tlmL15_fan dgmL15_ans imlroL15 dgmL15_ctrl mtgL15_vc mtgL15_mux mtgL15_ctrl dbscL15 sbscL15_cyc_skp sbscL15_dead_to sbscL15_rej_cnf mbdl15 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24-APR-1992 Philippe: EWORK1: - modify TABLE_CBUS_CARDS.TYP add dbnum, L1_P5, and L1_P6 to dbsctrgnum_card add gated_Bx, L1_P3, and L1_P4 tp dbscbeamx_card add dbsc_vtrans_run_card with vt_prep, DBB_busy, L1_P1, and L1_P2 add dbsc_vtrans_wait_vbd_card with vt_waitVBD, vt_waitDMA, vt_idle, and vt_display - modify MOD071_DEF_HARDWARE_TABLES.PAS add mbd_scaler with mba 106 modify jet_list_aoc to use mbd_scaler.cbus,mba add DBAC cards dbscvtprep, and dbscwaitvbd update data base definition of dbsctrgnum update data base definition of dbscbeamx add data base definition of dbscvtprep add data base definition of dbscwaitvbd - modify MOD123_INIT_CBUS_CARDS.PAS update initialization of dbsctrgnum update initialization of dbscbeamx add initialization of dbscvtprep add initialization of dbscwaitvbd - modify MOD123_INIT_CBUS_CARDS.PAS fix missing initialization of jet_list_aoc ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 23-APR-1992 Philippe: EWORK1: - fix MPOOL_SERVER.PAS fix data swapping send Vtrans_idle to delta_68kstate_waitsvrd and current.DBB_busy to delta_68kstate_dbbbusy ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 21-APR-1992 Philippe: EWORK1: - move to TRICS V2.6 - fix MOD123_INIT_CBUS_CARDS.PAS spelling of sbscfebz in import section of ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20-APR-1992 Philippe: EWORK1: - modify MPOOL_DATA.TYP add to count snapshots: VME transfer Program states, data block builder busy, L1 per bunch, L0 per bunch - modify MOD404_HANDLE_MONIT_POOL.PAS add write new snapshots - modify MPOOL_SERVER.PAS add fill 68k states in general section add fill bunch scalers in per bunch section ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 18-APR-1992 Philippe: EWORK1: - modify MPOOL_DATA.TYP add 68k states to general section add expos and not level 0 to sptrg section create new per bunch section add new data option for per bunch section - modify MPOOL_SERVER.PAS update .gsectincr.gsectdgtz[gsectnum] handle new section per_bunch (declare, new, dispose, send) - build a new ITC with 11000 bytes max message size. $ EVE [TRG_LIB.ITC.INC]ITC_CONFIG.INC $ CD [TRG_LIB.ITC.ELN] $ @ELNOLBS $ RENAME DEB_ELN_ITC.OLB TRGOLB: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 17-APR-1992 Philippe: EWORK1: prepare for new COMINT PROMs - modify TABLE_DBLOCK_SPY.TYP - remove definitions of blocking in current/previous,... - remove the variant declaration of data_block_spy - modify MOD011_COMMON_HARD_IO.PAS - quit exporting spy sections - modify MOD404_HANDLE_MONIT_POOL.PAS - delete transfer_and_splice_dblock procedure - now replaced by a simple block move through a ^ANYTYPE. This copies the beginning of the 8kword spy (skipping the first word), with length data_block_967 prepare for transfer of more information - modify MPOOL_DATA.TYP add front-end busy to count snapshot add gsectbusy to sptrg_gsect_section (for mpool server) - modify MOD404_HANDLE_MONIT_POOL.PAS read extra sbsc for front end busy - modify TABLE_DBLOCK_967.TYP define new section TYPEs of data block and add them to data_block_967 - modify MOD071_DEF_HARDWARE_TABLES.PAS add card sbscfebz define sbscfebz registers - modify MOD123_INIT_CBUS_CARDS.PAS initialize sbscfebz - modify MOD116_HANDLE_GEOSEC.PAS add reset_geosec_febusy_scaler and read sbscfebz in show geosec - modify MOD124_INIT_GEOSEC.PAS call reset_geosec_febusy_scaler ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10-APR-1992 Philippe: EWORK1: refresh mpool shows weird behavior: area locked when first started garbage in 967 data block returned to trgmon garbage in some ELNCON messages returned notice that in MOD404_HANDLE_MONIT_POOL.PAS the "dblock" pointer to the 4k data_block_spy sent to proced_tcs_read_db_spy typecast as a pointer to an 8k array_data_block_spy (recently increased). This was certainly overwriting extra memory space. - modify TABLE_DBLOCK_SPY.TYP add a variant declaration of data_block_spy as an array_data_block_spy so that the memory allocated for data_block_spy is the maximum of the old 4k current/previous description of the spy and the full length 8k spy. - modify MOD404_HANDLE_MONIT_POOL.PAS to send proced_tcs_read_db_spy the pointer to the 8k variant of dblock ADDRESS(dblock^.word) which has the proper data type. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 9-APR-1992 Philippe: EWORK1: - modify MOD054_TCS_IO_CBUS_HANDLING.PAS fix proced_tcs_read_FMLN_cbus use intial through_px_magn value of 255 and test for proper initial value. also move curren_state = previous_state inside the IF_different satement - modify MOD106_HANDLE_FMLN.PAS In program_fmln_momentum_lookup, treat Py=255,-256,-255 separately to avoid sending a through_px_magn = -1 to proced_tcs_write_FMLN_cbus. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8-APR-1992 Philippe: EWORK1: - modify MOD227_PHAT_EXECUTE.PAS fix read_spy: add NEW/DISPOSE (dbspy) ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 7-APR-1992 Philippe: EWORK1: - modify MOD106_HANDLE_FMLN.PAS fix bug in programming threshold 256 (square_ge allowed to return 256) add setup of FMLN as listen to inputs, and no overflow overrule. add argument card to zero_fmln_thresholds. - modify MOD123_INIT_CBUS_CARDS.PAS add argument card to zero_fmln_thresholds. - modify MOD227_PHAT_EXECUTE.PAS add argument card to zero_fmln_thresholds. - modify TABLE_DBLOCK_SPY.TYP change data block spy length from 4k word to 8k words ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6-APR-1992 Philippe: EWORK1: - modify MOD173_PARSE_DETAIL.PAS fix bug in inline_check_max_one_item, must compare both objid and objcode with next command entry. - modify MOD119_HANDLE_TRGTWR.PAS remove information message from set_trgtwr_ref - modify MOD054_TCS_IO_CBUS_HANDLING.PAS add ability to return an array of data bytes in proced_tcs_read_FMLN_cbus with checking of proper negative and positive Px consistency. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5-APR-1992 Philippe: EWORK1: - modify MOD054_TCS_IO_CBUS_HANDLING.PAS add option to pass an array of up to 255 values to proced_tcs_write_FMLN_cbus - modify MOD106_HANDLE_FMLN.PAS generate and use an array of the squares of the frist integers 0..255 implement zero_fmln_thresholds implement verify_fmln_thresholds add program_fmln_momentum_lookup add verify_fmln_momentum_lookup - modify MOD123_INIT_CBUS_CARDS.PAS add (but still commented out for now) initialization of fmln_compare card by calling zero_fmln_thresholds and fmln_compute card by calling program_fmln_momentum_lookup - modify MOD245_PHAT_DISPATCH.PAS add messages VER_FMLN calling phat_verif_fmln ZER_FMLN calling phat_zero_fmln WR_MSPT calling phat_write_mpt VER_MSPT calling phat_verif_mpt - modify MOD227_PHAT_EXECUTE.PAS add phat_verif_fmln calling verify_fmln_thresholds phat_zero_fmln calling zero_fmln_thresholds phat_write_mpt calling program_fmln_momentum_lookup phat_verif_mpt calling verify_fmln_momentum_lookup - modify DESCRIP.MMS update entry MOD123_INIT_CBUS_CARDS.PAS uses MOD106_HANDLE_FMLN.PAS update entry MOD227_PHAT_EXECUTE.PAS uses MOD106_HANDLE_FMLN.PAS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3-APR-1992 Philippe: EWORK1: - modify MOD105_HANDLE_CAT_CARDS.PAS fix recording of step_status, even if optional argument status not passed. - modify MOD226_COOR_CALTRG_EXECUTE.PAS (continued) verify missing pt threhsold for overflow. - create MOD106_HANDLE_FMLN.PAS (continued) implement update_fmln_threshold implement read_fmln_address_generator implement reset_fmln_address_generator - modify MOD011_COMMON_HARD_IO.PAS (continued) rename TYPE name eight_bit to eight_bit_0_7 rename TYPE name eight_integer to eight_integer_0_7 - modify MOD205_TST_CTFE_FEND.PAS (continued) update TYPE name eight_bit_0_7 - modify MOD054_TCS_IO_CBUS_HANDLING.PAS (continued) fix proced_tcs_write_FMLN_cbus to write the initial state from 0 to through_Px_magn the opposite state from through_Px_magn+1 to 255 the opposite state from -256 to -through_Px_magn the initial state from (-through_Px_magn+1) to -1 fix proced_tcs_read_FMLN_cbus to read and check proper legal programming - modify MOD227_PHAT_EXECUTE.PAS (continued) to use a limit of 255 instead of 511 to call proced_tcs_write_FMLN_cbus and update info message proced_tcs_read_FMLN_cbus ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2-APR-1992 Philippe: EWORK1: - modify MOD243_COOR_DISPATCH.PAS add THSHLD MISPTSUM message - modify MOD226_COOR_CALTRG_EXECUTE.PAS add coor_thr_mispt_sum - modify SITE_DEPENDENT.CST add first_mispt_sum_cmp, last_mispt_sum_cmp - create MOD106_HANDLE_FMLN.PAS with update_fmln_threshold verify_fmln_programming zero_fmln_threshold reset_fmln_address_generator - modify DESCRIP.MMS add MOD106_HANDLE_FMLN.PAS and update mod226_coor_caltrg_execute - modify TABLE_CBUS_CARDS.TYP add TYPE fmln_card - modify MOD071_DEF_HARDWARE_TABLES.PAS add TYPE fmln_card, add card fmln_compare, fmln_compute define cards fmln_compare, fmln_compute - modify MOD073_DEF_PHYSICS_TABLES.PAS add variable ADC_MeV_per_count array variable Energy_MeV_per_count - modify MOD095_INIT_LSM.PAS fill ADC_MeV_per_count, Energy_MeV_per_count - modify MOD105_HANDLE_CAT_CARDS.PAS fix use of global variable TAG rename argument THRESHOLD to COUNT_THRESHOLD - modify MOD226_COOR_CALTRG_EXECUTE.PAS (continued) use argument COUNT_THRESHOLD to CAT2, CAT3 cards, fmln card use Energy_MeV_per_count to convert global energies to count. - modify MPOOL_SERVER.PAS handle computation of delta_veto_crossing, there were 2 problems. when the current value reaches bit #32 and become negative, the difference produces a "big" negative number (or integer overflow). when the current value would roll over the difference would produce a "small" positive number. A solution is to compare the upper 2 bits of the current and the previous value, if they don't match, they are forced to 01 and 00 respectively. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1-APR-1992 Philippe: EWORK1: - update MSU with latest changes from D0:: - modify MOD204_TST_CHTCR_PROMS.PAS add verify CHTCR input after changing CTFE comparator - modify MOD202_TST_MISC_UTIL.PAS modify check_cmp_result argument to receive only one boolean value instead of pointer to array of 8 quantities. - modify MOD203_TST_CALTRG_RANDOM.PAS update for change in check_cmp_result - modify MOD054_TCS_IO_CBUS_HANDLING.PAS add proced_tcs_read_FMLN_cbus proced_tcs_write_FMLN_cbus - modify MOD011_COMMON_HARD_IO.PAS add TYPE eight_bit eight_integer - modify MOD205_TST_CTFE_FEND.PAS use TYPE eight_bit - modify MOD245_PHAT_DISPATCH.PAS add messages WR_FMLN, RD_FMLN - modify MOD227_PHAT_EXECUTE.PAS add phat_write_fmln phat_read_fmln - modify DESCRIP.MMS MOD054_TCS_IO_CBUS_HANDLING.PAS now references mod_common_global_flags ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 27-MAR-1992 Philippe: D0:: - modify MOD123_INIT_CBUS_CARDS.PAS modify initialize FW MTG ch# 19 (fa 18): L1 per Bunch DBSC clck initiallized as ROM gated ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25-MAR-1992 Philippe: D0:: - modify MOD041_HANDLE_MAIL.PAS symptoms: TCC screen displays mailed TRICS V2.5 Booting mailed TRICS V2.5 Exit Refresh Monit Pool mailed TRICS V2.5 Exit Refresh Monit Pool instead of mailed TRICS V2.5 Booting mailed TRICS V2.5 Start Refresh Monit Pool mailed TRICS V2.5 Exit Refresh Monit Pool Mailer must wait for info message to be displayed before releasing the communication area to avoid it being immediately refreshed with the next message. - modify MOD141_HANDLE_BEGIN_END_RUN.PAS Remove the wait period before closing the file ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25-MAR-1992 Philippe: D0:: - modify MOD223_COOR_GLOBAL_EXECUTE.PAS fix synchro message BAD return sub-keyword: brute force CASE statement - modify MOD141_HANDLE_BEGIN_END_RUN.PAS change phase enumerated type variable values ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25-MAR-1992 Philippe: ework1: - modify MOD141_HANDLE_BEGIN_END_RUN.PAS Use enumerated type instead of strings for phase names. Use upstream GOTO to return from interrupt handler (instead of just answering TRUE or FALSE). This is because WRITELN or CLOSE instruction cannot be resumed after an IO error, or the process will exit. For OPEN, one could use the STATUS argument, but WRITELN and CLOSE don't have this option. Final test of error detection and error recording Implement Synchro message to wait for begin_end_run, return timeout result and return status of last transaction, including decoded string on error. - modify MOD223_COOR_GLOBAL_EXECUTE.PAS synchro use enumerated type and fix timeout handling - modify MOD243_COOR_DISPATCH.PAS send synchro message through the proced_parse_string - move to TRICS V2.5 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24-MAR-1992 Philippe: ework1: - modify TRICS_V24.PAS add init_begin_end_run - modify MOD057_IO_ALLOCATION_HANDLING.PAS extend tagext max length 8->16 fix message flag HTT/EXC -> ALL/TIO - modify MOD223_COOR_GLOBAL_EXECUTE.PAS modify message for pause/resume info-> sys - modify MOD227_PHAT_EXECUTE.PAS add phat_cre_bert create begin_end_run task add phat_del_bert delete begin_end_run task - modify MOD245_PHAT_DISPATCH.PAS add message PHAT CRE_BERT -> phat_cre_bert add message PHAT DEL_BERT -> phat_del_bert - modify MOD037_HANDLE_TRACING.PAS add optional return argument to handle_trc_sta for decoded status ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 23-MAR-1992 Philippe: EWORK1: - update MSU with changes made at D0, use BOOT auxi to change address of MTG. - modify MOD263_SOFT_CONN_DISPATCH.PAS add WRT_HOST dispatch to mod_coor_dispatch\coor_disp - modify MOD243_COOR_DISPATCH.PAS dispatch WRT_HOST messages to mod_coor_global_execute\ coor_wrt_begin_run, coor_wrt_end_run, coor_wrt_synchro, - modify MOD223_COOR_GLOBAL_EXECUTE.PAS add coor_wrt_begin_run, coor_wrt_end_run, coor_wrt_synchro, - create MOD141_HANDLE_BEGIN_END_RUN.PAS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 20-MAR-1992 Philippe: D0:: - create INIT_DAC_BYTES.LSM from the last 2 versions of DAC_15jan92.log; - create TRICS_BOOT_AUXI.DAT for calling INIT_DAC_BYTES.LSM - modify SITE_DEPENDENT.CST to add name of auxi boot file and disable creating refresh mpool, as it is created from trics_init_auxi - modify TRICS_V24.PAS to call init_auxi for the boot auxi file before any initialization of the trigger hardware - modify MOD226_COOR_CALTRG_EXECUTE.PAS remove from load_dac the writing of the dac_bytes into the CTFE cards, just update the database. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 19-MAR-1992 Philippe: ework1: - modify MOD071_DEF_HARDWARE_TABLES.PAS add tss_ROM_Gated, tss_Ext_Bit, tss_Ext_Gated - modify MOD226_COOR_CALTRG_EXECUTE.PAS find_dac initialize cal trg MTG channels read A/B, write A/B, latch shift - modify MOD119_HANDLE_TRGTWR.PAS remove screen information messages per tower in find_dac - modify MOD103_HANDLE_SCALERS.PAS replace error with warning when read back of db scaler reset failed. add info message when verification positive. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 17-MAR-1992 Philippe: ework1: - modify MOD101_HANDLE_REGISTERS.PAS add peocedure histogram_register that calls proced_tcs_read_cbus_histogram - modify MOD054_TCS_IO_CBUS_HANDLING.PAS add proced_tcs_read_cbus_histogram - modify MOD011_COMMON_HARD_IO.PAS add TYPE array_0_255 - modify MOD243_COOR_DISPATCH.PAS bypass item parsing for READ&LOA - modify MOD226_COOR_CALTRG_EXECUTE.PAS write procedure to read a FIND_DAC file. remove return status ok_nochange - modify SITE_DEPENDENT.CST MSU eta = 9..16 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 17-MAR-1992 Philippe: ework1: - modify MOD226_COOR_CALTRG_EXECUTE.PAS split coor_find_dac_byte; leave the part that decodes the parameters from the message; put in a separate do_find_dac_byte routine the actual search, and writing of result file. Be careful to have all variables local to the subroutine, in particular the CBUS IO param block. - modify MOD200_TST_COMMON.PAS add test type Find_DAC - modify MOD207_TST_GET_PARAM.PAS add get_param_find_dac for low/high eta_sign, eta_magn, phi - modify MOD209_TST_TASK.PAS add test Find_DAC relay routine invoke_find_dac that translate to SET ranges. - modify MOD119_HANDLE_TRGTWR.PAS call routine histogram_register ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5-MAR-1992 Philippe: ework1: - modify MOD201_TST_INIT.PAS and MOD202_TST_MISC_UTIL.PAS To run CT MTG on the first of the 6 crossings, both for normal and single shot cycles MOD071_DEF_HARDWARE_TABLES.PAS Define the rest of the tss_fw_* constants and define the skip n crossing PALs as read only. MOD123_INIT_CBUS_CARDS.PAS Modify the initialization of the framework MTG channels Skip writing anything to the skip N crossing terms. Set the upper 16 channels to ROM too (was ROM Gated). SITE_DEPENDENT.CST modify the initialized state of all MTGs for the full turn 6/6 PROMs that is: internal clock, and the full turn of 6 beam crossings. also remove the old parameter for MTG tss upper 16 channels. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30-JAN-1992 Philippe: ework1: - modify MOD206_TST_CTFE_PROMS.PAS to only check EM or HD PROMs, as specified in the input parameters. modify procedures read_global_responses check_actual_and_fix_expected compare_actual_to_expected by using IF ( low_twr_typ = EMEtZ0 ) for EM PROMs IF ( hig_twr_typ = HDEtZ0 ) for EM PROMs IF ( low_twr_typ <> hig_twr_typ ) for Px,Py PROMs ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30-JAN-1992 Philippe: - add tree_offset variable in MOD073_DEF_PHYSICS_TABLES.PAS initialized in MOD095_INIT_LSM.PAS used in MOD226_COOR_CALTRG_EXECUTE.PAS - increase time constant to 0.5 s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 29-JAN-1992 Philippe: - initialize all tier 2, 3/4 cat2 and cat3 cards in mod_init_cbus_cards - fix typo in "first/last_tot_ref_set" in SITE_DEPENDENT.CST MOD073_DEF_PHYSICS_TABLES.PAS - add first/last_***_sum/cnt_cmp in SITE_DEPENDENT.CST MOD073_DEF_PHYSICS_TABLES.PAS - add update_cat3_threshold in MOD_HANDLE_CAT_CARD - add overflow check in update_cat%_threshold - update MOD226_COOR_CALTRG_EXECUTE.PAS (MMS) to call update_cat%_threshold - fix cal trig readout imlros address in MOD_DEF_HARDWARE_TABLE - fix mail_server problem: crash while writing to console. This happened when mail_server displayed message "wait 5mn and retry". The line was too long, because it included 80 characters of "address" and 80 characters of "subject" Solution remove both subject and address from screen message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 28-JAN-1992 Philippe: - add cat3_cmp_field and cat3_cor_field for cat3 registers in table_enum.typ - add BBBs and MBDs for tier 2, 3/4 and readout in MOD_DEF_HARDWARE_TABLE - define the tier 2 3 and 4 cards. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 27-JAN-1992 Philippe: - work on programming the global comparators create MOD105_HANDLE_CAT_CARDS.PAS update_cat2_threshold. (MMS) add cat2_card and cat3_card in TABLE_CBUS_CARD.TYP add momentum_sign in TABLE_ENUM.TYP add tier 2, 3 and 4 cat cards in MOD_DEF_HARDWARE_TABLE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22-JAN-1992 Philippe: - Fix the keyword of the HD global energy threshold in MOD_COOR_DISPATCH from HADETSUM and HADL2SUM to HDETSUM and HDL2SUM - fix initialize in MOD_COOR_GLOBAL_EXECUTE to init the caltrig towers even during a restore. - add st_vs_rs message in MOD_SOFT_CONN_DISPATCH MOD_COOR_DISPATCH MOD_COOR_CALTRG_EXECUTE coor_st_vs_em_rs, and coor_st_vs_tot_rs and create MOD_HANDLE_JET_LIST.PAS prog_jet_list - add a jet_list_aoc to MOD_DEF_HARDWARE_TABLES.PAS and TABLE_CBUS_CARDS.TYP - add jet_list_progr array to MOD_DEF_PHYSICS_TABLES.PAS and create TABLE_JET_LIST_PROGR.TYP. - add a call to prog_jet_list in MOD_INIT_SPTRG - update DESCRIP.MMS for mod118_handle_jet_list mod125_init_sptrg mod226_coor_caltrg_execute mod073_def_physics_tables - add error filter to watch for high error rate and skip error logging. modify SITE_DEPENDENT.CST MOD037_HANDLE_TRACING.PAS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22-JAN-1992 Philippe: - inspect the new ELN ITC ITC_Init routine. But it still doesn't lett set the maximum message size. note sent to John Featherly. - fix bug in MOD_HANDLE_TRGTWR. use lookup[EM/HD_PROM].zeresp instead of adconv[EM/HDEtZ0].zeresp in computing the reference set byte in set_trgtwr_ref. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~