Manual from the MadGraph output to Production. This file is hep:/usr/local/WWW/hep/cdf/howto_unki_sim_prod_mc.txt Nov-4-2002 Updated Dec-5-2002 UnKi Warning: Before you take any of below action, you must setup cdfsoft2 environment. General Description: This is a recipe for taking a file of events that are written by a matrix element generator such as MadGraph in Les Houches format, running the shower monte carlo Pythia on it to produce STDHEP format, converting this file to the CDF HEPG format using Sebastian Carron's code, and then running 4.9.0 CDF simulation and then Production on it. For example, the output files of MadGraph for many W and Z processes are in /cdf/data6a/frisch/MadGnew/DataSets. For each process there are two files: e.g. Zjj_events.dat, which contains weighted events (each event carries a weight with it, which can be very very small), and Zjj_unweighted_events.dat (each event counts as one event, like the ones we write to tape in the data). A third file, Zjj.log, tells how many of each kind of event there is, and other details. (One can look at the process by looking at the file results.html in the SubProcesses subdirectory with a browser). 1. To make phythia interface and produce HEPG file using MadGraph output /cdf/data5b/ukyang/mc/run_hepg.tcsh Command: run_hepg.tcsh "PROCESS_NAME" Example: /cdf/data5b/ukyang/mc/run_hepg.tcsh Zjj (but be careful about input/output directory- for example, if you change GenBaseTMP in the script from data31b, make sure it has the same structure as unki's, e.g. a .logs subdirectory inside /mc/gen_data/. If you don't change anything, this should just work as is as long as the file is not there already.) now you have a HEPG output file 2. TO make CDFSIM using HEPG input file /cdf/data5b/ukyang/mc/sim/run_sim_v3.tcsh Command: run_sim_v3.tcsh "PROCESS_NAME" (again watch out input/output directory) Now you have a root file after cdfsim 3. TO make production file using simulated data. /cdf/data5b/ukyang/mc/sim/run_prod_mc_v3.tcsh Command: run_prod_mc_v3.tcsh input_sim_file_name (Here, this script take all of inputs with input_sim_file_name*, For example, let's say you have following files, simu.root, simu.root_1, simu.root_2 from your simulation job, then if you just say "run_prod_mc_v3 simu.root", all of three files will be taken) 4. How to make UCntuple See Peter's instructions on the web- to be filled in.