Making Samples with d0raw2sim Overlay ===================================== It is not trivial to make samples with d0raw2sim overlay. I recommend you do this on the farms. However, if you want to make a sample on clued0, here's what you have to do. 0) initialize setup D0RunII p14.d0raw2sim.00 setup sam setup mc_runjob 1) setup a working area mkdir raw cd raw mkdir overlay_sample mkdir overlay mkdir overlay_output 2) get the raw2sim data that will be used for overlaying look at http://www-d0.fnal.gov/computing/MonteCarlo/d0raw2sim_processing/ to get a list of the files that contain events that have been processed by d0raw2sim and stored in sam pick your files and make a sam data set definition name pointing to them pull the files out of SAM and store them in your overlay_sample area cp /home/sceno/mccertification/get.py . edit get.py and change project_definition = "raw2sim_cert" to point to your sam data set definition. do "sam run project get.py" at the command prompt look in the *.o* output to find the node that the job ran on. log onto this node and do "ls /sam/boo" . copy your files over from this area into your overlay_sample directory. 3) submit the job to overlay this onto your signal sample cd to your overlay area cp /home/sceno/mccertification/d0raw2sim_overlay_macro . edit this macro and use mc_runjob to execute it