Cookbook for building and running E866/NuSea Analysis & Simulation Software MJL - 1 November 2008 =========================================================================== see http://p25ext.lanl.gov/e906/e906.html analy - analysis ---------------- cd analy/ mkdir src cmz newexe exit nohup nice run >& run.log & paw hi/fi 1 run.his hi/pl 1376(20:100) notes: * newexe uses: - e866v13.cmz (base), user.cmz (fixes) - libbufio, libtrigger & cernlibs - l866 - script to link * run analyzes a raw data file: - reads nk3397s.tap (short lxf raw data file) - switches set in cmz: cd switches; vi switch - JACTRACK, ETM on - READDST, RETRACK off * to analyze a dst - point run to nk7041.dst (lxf dst) - switches - JACTRACK, ETM off - READDST on, RETRACK off buffio - data io library ------------------------ cd buffio/ * compile & build as in build.csh trigger - trigger library ------------------------- cd trigger/ cmz exe trigger#arc exe trigger#library swap - to swap bytes of tap or dst file if necessary ---------------------------------------------------- cd swap/ makefile * see run mclxf - simulation ------------------ cd mclxf/ mkdir src cmz newexe exit nohup nice run >& run.log & * newexe uses: - mc866b11+.cmz, user.cmz - libbufio, libtrigger & cernlibs - lmc866 - script to link environment ----------- Scientific Linux 4.7 on a IBM Thinkpad T42p Linux slinux_mjl 2.6.9-78.0.1.EL #1 Tue Aug 5 12:35:58 CDT 2008 i686 i686 i386 GNU/Linux gcc version 3.4.6 20060404 (Red Hat 3.4.6-10) paw - Version 2.14/04 12 January 2004 cmz - CMZ Code Manager version 1.50/14 (21/01/99) directories ----------- analy - analysis mclxf - simulation buffio - io library trigger - trigger library dat - various supporting data files (e.g. surveys) map - magnet field maps swap - byte swapping program for data files (little vs big endian) trig - ?trigger files? car2cvs - cmz -> cvs program from Atlas (not working yet) dedx - VonGinneken dE/dx program and old files other ----- * to see what libraries you need to link to: -get any small/simple dummy.f file - g77 -v dummy.f - ouput will show what libraries g77 likes to use - put those in your link file - similarly for gfortran (which the CERN libraries used) * magnet maps are in a machine/fortran dependent format - use runb,bin.f to read ascii version and convert to binary version on your machine if necessary * car files are ascii versions of cmz files