I- Preliminary steps (only first time)
setup D0RunII p14.03.01
setup d0cvs
newrel -t p14.03.01 lala
cd lala
d0setwa
addpkg mc_exam v01-00-00
cd mc_exam/macros
source Util.csh (ignore all the error messages) That creates the framework executables
wait a long time until the following exe's appear in
/lala/bin/Linux2.4-KCC_4_0/
MCexam_x, Recoexam_x, Simexam_x
You may see what's going on by looking at file :/lala/gmake.log
subsequent times
setup D0RunII p14.03.01
cd lala
d0setwa
II-Produce the root-tuple(s) (for dig, go to sim_exam just like this,but replace every where else sim with dig)
if you need to analyze files on SAM you may have to type: setup sam
cd /lala/sim_exam/bin
cp ../../mc_exam/macros/templ_ReadEvent ../rcp/ReadEvent.rcp
edit ../rcp/ReadEvent.rcp and point it to your input file
and also set the number of events in this rcp
cp ../../mc_exam/macros/templ_rootMgr ../rcp/rootMgr_sim.rcp
edit ../rcp/rootMgr_sim.rcp and name the output root file how you want
delete any old root file
./Analyze.x -rcp frame_sim.rcp
III Analyze the root-tuples( build
HRT)
source make_cl.csh
it will ask for inputs. give the name of the root tuple you want to be analyzed
inputfile_sim.root
sim
cp templ_Makefile
edit templ_Makefile. for P14 and below, use ARCH=linuxkcc, above use ARCH=Linux
edit make_exe.csh and delete "set echo"
source make_exe.csh
it will ask for type of root-tuple (sim,dig or rec). That will create the executable (anal_aaa.x with aaa= sim,dig or
rec)
source make_ps.csh that will make the root file containing the histos and a ps file
ignore errors
do ls *.root
./anal_sim.x and answer prompts
source compare_histos.csh
it will ask you the file type (sim, dig or rec) and the two HRTs you want to compare.
The final plots are in filename1_vs_filename2.ps