The aim of thees scripts is 1) to fight with some features of wkm 2) produce triumf-like "answer" files ready for the Triumf msr database format, which can be plotted via db command line program or via Java muview http://www.musr.org/muview/ GUI ___________________________________________ trifit initialfile_without_msr_extention This program filters the MINUIT.OUT file. you must have MINOS command in your *.msr file For example trifit 317_ncKubo this will copy 317_ncKubo.msr to 317_ncKubo.mlog and produce two outputs: new 317_ncKubo.msr and 317_ncKubo.A *.A file is constructed directly from MINUIT.OUT file and, thus, overcomes restricted text format of wkmfit. If your *.msr file starts with TITLE trifit will substitute this string by the comment string from the lem *.summ file _______________________________________ ch chain style fitting: type ch for help: bh batch style of fitting for stability reason it is better to use bh e.g. bh 318 318 315 _tf_2gss Both scripts substitute first string of a *.msr file by the lem title string. and produce *.A files and which are appended to the unique DB.A file. _____________________________________ comment_summ infile outfile path_to_summ_files This program substitutes IND VAR string in LEM *.A* files of 2005,2006,2007 by T= "value from the lem summary file" by Transport= "value from the lem summary file" by Energy= "value from the lem summary file" and, if |RAR-RAL|>0.02 kV by RAR-RAl= "value from the lem summary file" Usage:comment_summ in_file out_file path_to_lem_summary_files For example: comment_summ DB.A 1 /mnt/data/nemu/summ/2006/ For 2007 data path can be omitted: For example comment_summ DB.A 1 _____________________________________ To plot the data: There is a db program which is command interpretor and uses special *.db text files. To append new points to *.db file first do rm DB.A do batch fit (see above) include temperature in the fitting result by comment_summ DB.A 1 (path_to_summ_files) open in an editor (eg nedit) a *.db file and append 1 to the end of the data (but not to the end of *.db file). The structure of a db file is the following: ______________________________________________ TITLE Pure Al WEW TF measurements ABSTRACT Separate Histos fits of 0.2-7 us range to one exponent LABELS T (K) Transport (kV) Implantation Energy (keV) Tau (us) Asy Rate (MHz) Field (G) N0_L Bkg_L Phase_L (Deg) N0_R Bkg_R Phase_R (Deg) N0_T Bkg_T Phase_T (Deg) N0_B Bkg_B Phase_B (Deg) Chi Squared Run DATA T Tr E Tau Asy Rate B NL BL PhL NR BR PhR NT BT PhT NB BB PhB CHISQ RUN \-e T = 20.01,,,\ Transport =12.01,,,\ Energy =0.97,,,\ Tau = 2.1970, 0, ,\ Asy = 0.13311, 0.36797E-02, 0.35950E-02, \ Rate = 0.40647, 0.23228E-01, 0.22447E-01, \ Field = 100.13, 0.24213, 0.24120, \ N0_L = 3837.4, 9.6320, 9.6270, \ Bkg_L = 191.09, 2.1507, 2.1514, \ Phase_L = 21.099, 2.2295, 2.2236, \ N0_R = 3873.1, 9.6462, 9.6499, \ Bkg_R = 216.72, 2.2017, 2.2010, \ Phase_R = 202.96, 2.1856, 2.1812, \ N0_T = 4093.2, 10.032, 10.028, \ Bkg_T = 217.47, 2.2544, 2.2555, \ Phase_T = 289.63, 2.1218, 2.1277, \ N0_B = 3574.8, 9.2605, 9.2648, \ Bkg_B = 182.33, 2.0826, 2.0813, \ Phase_B = 114.17, 2.1372, 2.1414, \ CHI_SQ = 1429.039,,,\ 100,,, pure Al WEW 17.4A 100G T=20.01K TR=12.01kV Samp=10.41kV E=0.97keV ____________________________________________________________________ All the fields are obligatory: TITLE is a title of the PLOT ABSTRACT please write here how you fit LABELS are used for labels DATA are used for the names of the variables !!!!!!!!!!!!!!!!!!! Number of labels = Number of DATA = number of strings of your fit result file !!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!! PLEASE NOTE EMPTY LINES (AT LEAST ONE) AT THE END OF THE *.db FILE !!!!!!!!!!!!!!!! ____________________________________________________________________ Practical how-to: Create or copy first a template e.g 103_hist.msr Fit it using trifit run_number_after_run_number like trifit 103_hist Clean up DB.A like rm DB.A Use your run_number_after_run_number.msr like a template for bh like 100 155 103 _hist Use comment_summ DB.A 1 to add temperature, transport, energy and RAR-RAL to file named 1 Append it to the end of the data block of your *.db file. As for the *.db structure. The good style is just copy the header from some other *.db file to your file. There are lot around. Do not forget empty line at the end of the *.db file