8-28 TB Added a few tricks to the makelist file. Problem was that coda must recognize in the .o file the same filename stored in its database So, you can only compile files that have such default name. Change was tested, code downloads 8-19 KD, TB The object and configuration files relevant to CODA reside only on the Sun (node blast). They are loaded only from /usr/local/blast/daq . All .crl sources are in home/blast/blast/commis/coda/crl/ in the cross-mounted blast home directory. Compilation can now be done only on the Sun. All object files are automatically placed in /usr/local/blast/daq/obj . The standard obj and configuration files described here belong to user coda and thus are write protected. This forces the blast user to copy a template .crl file to a new file name in order to acquire file ownership. After compilation, the object file will keep the new name. The actual downloaded file can be chosen by simply changing the symbolic link in the blast:/usr/local/blast/daq directory. Note that the link is necessary since we should only use the standard names used below. The advantages are clear. Most notably we will always know what source file went into what executable, and therefore what source file we are running ! ------------------------------------------------------------------------ ** EXPERTS ONLY **** -------- Should you want to use a different file, please link to the new file, e.g. /bin/rm ts2_pri.o, ADCn_f2.thr /bin/ln -s obj/ts2_pri_ns.o ts2_pri.o /bin/ln -s config/ADCn_f2_high.thr ADCn_f2.thr to undo the change /bin/rm ts2_pri.o, ADCn_f2.thr /bin/ln -s obj/ts2_pri.o /bin/ln -s config/ADCn_f2.thr --------- To make an object file from a new .crl, login onto node blast and go to the source directory. blast@blast> ssh blast blast@blast> cd /home/blast/blast/commis/coda/crl blast@blast> cp commis_l_pri.crl commis_l_pri_16hits.crl edit, make changes blast@blast> ./makelist commis_l_pri_16hits.crl 68k compile The C-code generated by makelist is stored in /home/blast/blast/commis/coda/src. To use the new object file, you have to re-download it. But first remember to blast@blast> cd /usr/local/blast/daq blast@blast> rm commis_l_pri.o remove old link blast@blast> ln -s obj/commis_l_pri_16hits.o commis_l_pri.o make new link * note1 coda-user.setup is automatically sourced after login on node blast **************************************************************************** *** BELOW ARE THE DEFAULT FILES AND A SHORT DESCRIPTION FOR EACH OF THEM *** ------------------------- *Object files (these are loaded at RunControl Download) obj/commis_l_pri.o Object file for the FB crates (l and r sectors) readout list. obj/commis_r_pri.o Default is backplane gating, TDC depth is 8 hits and time window is 8 us long. obj/commis_l_sec.o Object file for FB crates secondary readout list (shuffles obj/commis_r_sec.o data from primary readout list to output buffers). You should never have a need to change these. obj/ts2_pri.o Object file for TS, with Common Strobe and 1st physics trigger input. No ts2_sec.o, since TS does not read out triggered data. ------------------------- *Configuration files config/blrocf2.slot File with slot,module type for beam left(=f2)/right(=f3) config/blrocf3.slot crates. These files are read at RunControl Download. note: type 21 is the LeCroy ADC (currently only in slot 7), type 22 is the 1875 TDC (only slot 9), type 23 is the 1877 TDC for the Wch (slots 14,16,18,20,22,24). config/ADCn_f2.thr File with ADC readout thresholds for slot n, beam left(=f2) config/ADCn_f3.thr or right(=f3) crate. (Channel, threshold counts) These are read at RunControl Prestart. ------------------------- *Misc utils/get_slots.o Object file to allow ROC to read .slot file from blast:/usr/local/blast/daq utils/get_thr.o Object file to allow ROC to read .thr file from blast:/usr/local/blast/daq