Introduction to the umc-Primer package -------------------------------------- 2000.May.02(Tue) Takeshi K. Komatsubara (KEK) The package 'umc-Primer' is to introduce UMC, the Monte-Carlo code for the BNL E787 rare-kaon-decay experiment, to new collaborators. You can install the UMC code to your IRIX computer, make an execution file, run a simulation job and produce Monte Carlo events, and analyze them by KOFIA. This package is based on 'UMC version 6 beta-release' by P.Meyers on March 28, 1999 with some of the scripts used in the E787 95-97 pi+nunubar analysis. When you have questions/requests on the package, please send emails to ___ takeshi.komatsubara@kek.jp ___ . Thank you. - welcome_to_v6.umcv6update (At first you may skip reading the document.) Description of the overview of Version 6 and the most important changes from Version 5. - install_v6_beta How to install the UMC v6 from scratch. Notice : - you must use the bru command as > bru -xv -C -f ../umc_v6_beta_28mar99.bru '*' - When the debug mode [ > debug on >make ] does not work. you may skip it. - umc_commands.temp/ P.Meyers's files in bnlku9:/e787s/meyers/umc/ are already copied to this directory; so you can install the V6 files into this directory and test them by: %setenv UMC_COMMANDS (this directory) %setup umc v6 - umc_run/ Sub-directories to make an execution file, run a simulation job and produce Monte Carlo events. 1) make an execution file [ ./source ] %setup umc v6 %make and the execution file umc.exe is created. The Makefile is copied from $UMC_COM/. You can copy source codes in $UMC_DIR into this directory ( and add them to the Makefile ), and change them for your own purpose. 2) run a simulation job [ ./run ] Script and input parameters files for the 1995, 1996, 1997a and 1997b runs of E787 are available. The files for 1996, for example, are : - kstop_kmu21.96ps5.730mev.dat.1 Beam file (X, Y, Z positions and etc. of the stopped kaons in the Target) in the 1996 run, obtained by analyzing the kmu21 triggers in the dataset. - generic_96new.sh Shell script to setup the input files on the running condition ( Beam file, Level0-Z trigger masks, and PEGs media ) in 1996. You do not need to change this file. - umc_kp2_96nion_2_kicob.par ( '_2_kicob' in the file name indicates a specific mode for pi+nunubar analysis. You may ignore it.) Input parameters which control the simulation job. The source codes $UMC_DIR/alldat.cdf and $UMC_DIR/geodat.cdf explain which parameter changes what. You can change NEVENT to produce more events, KDKMOD to change the kaon decay mode, L0TRG to choose the trigger in the simulation, .... - run_umc96 Run a simulation job with the above files and the execution file ../source/umc.exe . You should change setenv UMC_COMMANDS ../../umc_commands.temp as in your environment. The usage is, as shown in the script, % run_umc96 umc_kp2_96nion_2_kicob ../outputs > ../logfiles/umc_kp2_96nion_2_kicob.log The output files of the Monte Carlo events, logfile and seed-file are produced in ../outputs ../logfiles ../seeds respectively. Examples are in ../outputs.example, ../logfiles.example and ../seeds.example . - kofia_run/ Files needed to analyze the Monte Carlo events by KOFIA. %setup kofia 2.1 %setenv MTIN (input file name) %setenv KOFIALOG (KOFIA log filename, as you like) %setenv KOFIA_INIT umc.kcm And when you start a KOFIA program, the kcm file in KOFIA_INIT [ umc.kcm ] is executed and the initial setup (KOFIA analysis flags, UTC tracking, and special calibration parameters for Monte Carlo events in ./caldb_umc ) are performed. The easiest ( and enjoyable ! ) way to test analyzing the Monte Carlo events by KOFIA is to read the file by XPHOTO [ event-display program with X-terminal tools in KOFIA ] : %$KOFIA_BIN/xphoto ( and have fun with clicking the buttons in the XPHOTO window ). ==== end of the document