updated by tajima (tajima@jlab.org) ENGINE installed on cdaq: ~cdaq/gen/replay/replay_v2.1/ JLAb: /work/hallc/e93038/replay_v2.1_nov00/ ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- cdaq_Sun cdaq_Linux JLab_Sun JLab_Linux ------------------------------------------------------------------- Compiled? Jan 14 2001 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- g_decode_fb_bank.f 15:01 cdaq jlab p_ntupleraw_keep.f 18:53 cdaq jlab p_data_structures.cmn Jan9 15:39 cdaq jlab Since Dec 2000, Gmn prescale factor is 400 (it used to be 999999) So since then, about 2% of our data are Gmn. Gmn data are stored in ntuple as p_evtype = 7 (Gmn coin) p_evtype = 10 (Gmn NPOL single) Note that gen_event_type for Gmn is still the same as 3(coin) and 6(npol single) as before. This change is seen only in the ntuple. cdaq_Sun cdaq_Linux JLab_Sun JLab_Linux ------------------------------------------------------------------- Compiled? y not yet y y tested? y not yet y y Jan 9 2001 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- gen_filenames.cmn 09:33 cdaq jlab g_open_source.f 09:40 cdaq jlab g_get_next_event.f 11:06 cdaq jlab Makefile Jan10 05:19 cdaq jlab S.Wood updated those subroutines so that multiple data files ( *****.log.0 and *****.log.1 etc ) are opened automatically. cdaq_Sun cdaq_Linux JLab_Sun JLab_Linux ------------------------------------------------------------------- Compiled? y not yet y y tested? y not yet y y 1/8/2001 22:53 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- Makefile JLab cdaq g_dump_histograms.o is added to Makefile 1/8/2001 22:53 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- g_dump_histograms.f JLab cdaq Modified so that the default histograms(engine_output.hbk) is not created when the file name is not specified in REPLAY.PARM file. In fact, this is the reason why engine in JLab directory didn't work. cdaq_Sun cdaq_Linux JLab_Sun JLab_Linux ------------------------------------------------------------------- Compiled? Y Not Yet Y Y 01/06/00 Since one week ago, I am working on updating engine for the new cofiguration(the new 4th veto plane) and the new kinematics Now the work is complete. The following files are modified: ./REPLAY.PARM ./REPLAY.PARM.shige ./CHARGE_REPLAY.PARM ./aug00.database ./greport.template ./preport.template ./DBASE/jan99.kinematics ./DBASE/jan99.param.37895 ./MAPS/jan01.map.37895 ./PARAM/pgeom_detector.dat ./PARAM/gbeam.param.37895 ./pol/pol.hist ./pol/pol.param ./pol/pol.test ./SRC/p_data_structures.cmn ./SRC/g_analyze_scalers_extra.f ./SRC/p_clear_event.f ./SRC/p_ntupleraw.cmn ./SRC/p_ntupleraw_init.f ./SRC/p_ntupleraw_keep.f ./SRC/p_physics_vt.f ./SRC/p_proper_shutdown.f ./SRC/p_sort.f ./SRC/p_sort_vt.f ./SRC/pgeom_det.inc ./SRC/pgeom_subroutines.f ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./REPLAY.PARM cdaq 1/4/2001 20:06 not copied ./REPLAY.PARM.shige cdaq 1/4/2001 20:48 not copied ./CHARGE_REPLAY.PARM cdaq 1/6/2001 20:27 not copied g_data_source_filename changed from *****.log ==> *****.log.0 However, these are not yet copied to JLab directory because people may analyze old data files, which have the name *****.log Jan 4, 2001 16:28 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./aug00.database cdaq jlab Add new param, map and kinematics file names due to the kinematics change Jan 6 2001, 09:12 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./greport.template cdaq jlab Minor change by Wei-Ming. Just trying to remove run-time error messages coming from this file. Jan 4,2001 17:34 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./preport.template cdaq jlab Add scaler entries for the new veto detectors( 4th plane) Jan 4,2001 16:25 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./DBASE/jan99.kinematics cdaq jlab New kinematics starting run#37895 37895-99999 gpbeam = 3.395 hpartmass = 0.00051099 hpcentral = 2.606 htheta_lab = 23.55 ntheta_lab = 46.0 Jan 4, 2001 17:05 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./DBASE/jan99.param.37895 cdaq jlab (new file) #include PARAM/gbeam.param.37895 ( gbeam param file name changed) jan5,2001 12:18 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./MAPS/jan01.map.37895 cdaq jlab (new file) MAPs for the New VETO detectors on 4th plane are added (LTDC, RTDC, LADC, RADC) Jan6 2001 23:33 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./PARAM/pgeom_detector.dat cdaq jlab NEW veto IDs, positions etc are added. Jan4 2001, 17:00 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./PARAM/gbeam.param.37895 cdaq (new file) alpha values are updated. Values given by Paul Gueye. jan4 23:37 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./pol/pol.hist cdaq Many commented lines are deleted. histogram definitions for new veto detectors are added jan6 2001, 17:27 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./pol/pol.param cdaq new veto parameters added jan5 2001, 16:17 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./pol/pol.test cdaq new veto test statements are added Source files are already compiled on cdaq SUN, JLab SUN and JLab Linux. ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/p_data_structures.cmn cdaq VETO parameters are updated ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/g_analyze_scalers_extra.f cdaq Update the line calculating the total REAR VETO rates Jan5,2001 02:16 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/p_clear_event.f cdaq Initializations for VT 4th plane added Jan6,2001 10:39 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/p_ntupleraw.cmn cdaq Array size changed 62-->70 Jan6,2001 11:19 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/p_ntupleraw_init.f cdaq Array size changed 62-->70 Jan6,2001 11:20 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/p_ntupleraw_keep.f cdaq '70' changed from '62' IF (xx.ge.55.and.xx.le.70) p_ntg = p_ntg + 1 Jan3 2001,12:15 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/p_physics_vt.f cdaq modify the detector ID calculation Dec23 2001, 19:50 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/p_proper_shutdown.f cdaq Some modifications are made but then commented. So virtually no change. Jan5 2001,01:21 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/p_sort.f cdaq modify the detector ID calculation Jan5 2001, 00:19 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/p_sort_vt.f cdaq error found! and corrected(line 139). 'FR' ==> 'VT' Jan6 2001, 17:47 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/pgeom_det.inc cdaq parameter (num_det=70) is changed from 62 Jan5 2001 11:54 ****************************************************************** File: Modified on Copied_to ------------------------------------------------------------------- ./SRC/pgeom_subroutines.f cdaq Subroutines pgeom_id_kelly2zhang and pgeom_id_zhang2kelly are modified for the veto 4th plane(ID:63-70) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ****************************************************************** 12/14/00 22:00 File: Modified on Copied_to h_physics.f cdaq jlab ------------------------------------------------------------------- cdaq_Sun cdaq_Linux JLab_Sun JLab_Linux ------------------------------------------------------------------- Compiled? Y not yet Y Y Many physics quantities calculated in h_physics were incorrect! I didn't know that until quite recently because this subroutine is part of standard hall-c engine. HMS quantites are now correctly reconstructed in h_physics.f angles(theta, phi), w2, delta, Pe, q_vector, Q^2 etc. Angles are based on Mceep definitions(that is, theta is the angle on y-z plane-- horizontal. phi is the abgle on x-z plane-- vertical angle) ALthough I was told not to update the official engine so that people can use the SAME analyzer to analyze data, I decided to put this into official directories because the changes I made are quite useful to analyze HMS data. ****************************************************************** 12/09/00 11:32 File: Modified on Copied_to ------------------------------------------------------------------- DBASE/jan99.kinematics cdaq jlab 37146-99999 minor change, no values are actually modified, but several things are added for run# 37146-99999 such that those values are printed out on the screen. ****************************************************************** 12/06/00 14:03 File: Modified on Copied_to ------------------------------------------------------------------- Makefile Jlab cdaq Makefile made again from SAW's version ( /work/hallc/e93038/tajima/grover/Makefile) and our obj files added. Then, codes were compiled successfully on all sun machines except for cdaqs3. It seems something funny happens on cdaqs3 on line 77: MYOS := $(subst -,,$(shell uname)) ****************************************************************** 12/05/00 File: Modified on Copied_to ------------------------------------------------------------------- (h_proper_shutdown) --- ---- The scaler files hms*****.txt are not created on JLab machiens. I can fix this but a bit complicated. I ask people to do charge replay on cdaq, not on JLab. ****************************************************************** 12/05/00 13:00 File: Modified on Copied_to ------------------------------------------------------------------- p_ntupleraw_keep.f cdaq jlab cdaq_Sun cdaq_Linux JLab_Sun JLab_Linux ------------------------------------------------------------------- Compiled? Y not yet done(14:30) done(14:30) I noticed that p_ntupleraw_keep.f was incorrectly modified and fixed it. The new version uses p_ntupleraw_file variable because p_ntupleraw_exists is not used in engine yet !!! I compiled only on cdaq sun machine but it killed current running jobs... I copied to jlab at 14:30 when there were no running jobs. Changes: * * IF(.NOT.p_NtupleRAW_exists) RETURN !!! This variable not used yet * *-if name blank, just forget it IF(p_Ntupleraw_file.EQ.' ') RETURN !do nothing ****************************************************************** 12/05/00 11:48 File: Modified on Copied_to ------------------------------------------------------------------- REPLAY.PARM cdaq JLab (file path changed for JLab) REPLAY.PARM.shige cdaq JLab ONLINE_REPLAY.PARM cdaq JLab Changes: gen_enable(2)=0 (was commented) gen_enable(3)=1 (was commented) ****************************************************************** 12/05/00 09:23 File: Modified on Copied_to ------------------------------------------------------------------- p_ntupleraw_keep.f cdaq JLab cdaq_Sun cdaq_Linux JLab_Sun JLab_Linux ------------------------------------------------------------------- Compiled? Y not yet Y Y p_ntupleraw_keep.f is modified. If p_nupleraw data filename is not defined in any of the *REPLAY.PARM* file, the subroutine does not do anything so an error message something like "n-tuple does not exist" does not show up when running. Compiled on cdaq sun machine only. Not on Linux yet. ****************************************************************** 12/05/00 09:00 The ONLINE_REPLAY.PARM file is created such that online replay will not create polraw*****.rzdat file. The stc_replay file is also modified so that it uses this ONLINE_REPLAY.PARM upon running. ****************************************************************** 12/04/00 16:20 DBASE/jan99.kinematics file updated on cdaq. The previous one was renamed to jan99.kinematics.dec04 . Those two files are copied to jlab. energy for Dec00 runs is 2.324 Gev. ****************************************************************** 12/04/00 13:00 two new links are made: replay --> SRC/engine_replay_SunOS replay_linux --> SRC/engine_replay_Linux ****************************************************************** 12/04/00 12:45 directory "SRC" changed to "SRC_Sun_OLD.dec04" directory "SRC.linux" changed to "SRC" ****************************************************************** 12/04/00 12:40 did charge_replay on cdaqs3 and all three scaler files are created. ****************************************************************** 12/04/00 12:30 File: Modified on Copied_to ------------------------------------------------------------------- g_proper_shutdown cdaq no need cdaq_Sun cdaq_Linux JLab_Sun JLab_Linux ------------------------------------------------------------------- Compiled? Y not yet NA "call h_proper_shutdown" uncommented so that hms scaler files will be created. Compiled on SUN. Need to compile on Linux as well. ****************************************************************** 12/04/00 12:00 directory SRC.linux created on cdaq and all the files are copied from /work/hallc/e93038/replay_v2.1_nov00/SRC/ "make clean" done on cdaqs2 and compiled. cdaql2 and cdaql3 are not ready for compiling yet. ****************************************************************** ****************************************************************** 12/03/00 18:26 linux version of e93038 engine was compiled and tested. numbers stored in ntuple files(created on linux) are identical to those created on sun except for the very last digits. The difference is 10^-6. (sun) replay grun=***** (linux) replay_linux grun=***** Whenever changes are made, we need to compile codes on both machines. Makefile for sun does not work on ifarms1 and cdaqs3. I don't know the reason. Use jlabs1, jlabs2, ifarms2, cdaqs1, cdaqs2 to compile the sun version. When compiling on linux, many warning messages show up but those are ignorable according to S.Wood. Files modified Modified on date for Linux ---------------------------------------------------------- 1. g_decode_fb_bank.f jlab 11/30/00 11:28 2. Makefile jlab 11/29/00 18:31 3. p_initialize.f jlab 11/29/00 18:09 4. p_get_mom_energy.f jlab 11/29/00 15:30 5. g_analyze_scaler_bank.f jlab 11/29/00 14:56 6. engine.f jlab 11/29/00 00:38 7. g_initialize.f jlab 11/29/00 00:12 ---------------------------------------------------------- 1. g_decode_fb_bank.f: a) type *, ==> write(*,*) b) use jiand, not .and. POL_HELICITY =jiand(jishft(bank(4),-14),'0000003'O) <== NEW cc POL_HELICITY =(jishft(bank(4),-14).and.'0000003'O) <== OLD ---------------------------------------------------------- 2. Makefile: Start from Makefile made by SAW(see /work/hallc/e93038/tajima/grover/Makefile) and our object file names to my_objs . Note that the following subroutines are not included in our new engine since those may not be used anyway. # g_analyze_helicity_by_banks.o g_analyze_helicity_bank.o <==NOT USED Multiple-hit subroutines: These may be used later. # p_fr_clusters.o p_fr_related.o p_re_clusters.o # p_first_hit.o p_clusters_related.o pneutron_fly_time.o # p_re_related.o p_neutrons_det.o ptarget_to_front.o # p_time_error.o p_track_neutron.o p_neutron_theta.o # p_beta_error.o # p_stub_collector.o p_stub_init.o # p_multiple_hits.o # total_eloss.o <== energy loss, not used ---------------------------------------------------------- 3. p_initialize.f: ccc call p_stub_init !!! commented ---------------------------------------------------------- 4. p_get_mom_energy.f 'velocity' is defined twice! One of them deleted. ---------------------------------------------------------- 5. g_analyze_scaler_bank.f > integer*4 jidnnt ! added 11/29/00 ---------------------------------------------------------- 6. engine.f the variable 'ebeam' changed to 'e_beam' because ebeam is already used in p_data_structures. ---------------------------------------------------------- 7. g_initialize.f ccc type *, 'gclock_rate = ', gclock_rate <== don't use type write(*,*) 'gclock_rate = ', gclock_rate ---------------------------------------------------------- ****************************************************************** 12/01/00 18:46 File: Modified on Copied_to ------------------------------------------------------------------- h_trans_misc cdaq jlab Indices for NPOL trigger signals sent to HMS were off by one and these were corrected.