How to get CMKIN running on mill:


setenv VO_CMS_SW_DIR /home/opt/cms/software
source /home/opt/cms/xcmsi/cmsset_slc3_ia32_gcc323.csh

setenv CERN_LEVEL 2004/slc3_ia32_gcc323
setenv CVS_RSH ssh
setenv CVSROOT :pserver:anonymous@isscvs.cern.ch:/local/reps/cmkin

login to cvs

cvs co CMKIN

cd CMKIN/examples/make_ntpl_jobs

project CMKIN CMKIN_6_2_0

kine_make_ntpl.com pythia

Gives error message

Using Pythia version 6403
ar: /home/opt/cms/software/Releases/CMKIN/CMKIN_6_2_0/lib/slc3_ia32_gcc323/libpythia6403.a: No such file or directory
.
.
.
g77: pydata.o: No such file or directory

look at the library path
/home/opt/cms/software/Releases/CMKIN/CMKIN_6_2_0/lib/slc3_ia32_gcc323
to check the pythia version and modify the com file

kine_make_ntpl.com:
set npyt=6325

Gives error message
/usr/bin/ld: cannot find -lshift

Modify the com file to use normal compile library linkage instead of cernlib macro

set cernlibs="-L$CERN_ROOT/lib -l$PDFLIB -lpawlib -lgrafX11 -lpacklib_noshift -lmathlib -lkernlib"

Now it compiles ok.

Next create a datacard in datacards/, modify the kine_make_ntpl.run to read that datacard, set number of events to be run (NSEL command), set the correct pythia version and execute the job

kine_make_ntpl.run pythia