CLAS CED

From New IAC Wiki
Jump to navigation Jump to search

CLAS Event Display (CED)

How to compile CED

cvs co packages/ced

1.) cvs co packages/Hv

Got error message about no Motif so I had to install it

apt-get install libmotiv-dev

Got error message:

/usr/include/Xm/Xm.h:59:34: error: X11/extensions/Print.h: No such file or direc

Had to install:

 apt-get install libXplibXp-dev


Now Hv is compiled

Next checkout the dc routines

2.)cvs co packages/dc
3.) cvs co packages/recutl

got the error

bm_read_trig.F:43: clas_offsets.inc: No such file or directory

4.)now checkout and build the mapmanager library

cvs co Map

5.)cvs co fputil
6.)cvs co bos
7.)cvs co clasutil
8.)had to install CERNLIB packlib

apt-get install cernlib

9.) install patches library

cvs co patches

10.) install Xaw

/usr/lib# ln -s libXaw7.so.7 libXaw.a

11.) got error on debian machine


/home/tforest/src/CLAS/lib/Linux/libced.a(evdump.o): In function `DumpMCTKBank': evdump.c:(.text+0x1e7e): undefined reference to `jpname_'


12.) changed to CentOS machin
13.) cvs co c_bos_io
14.) cvs co inc_derived

This was not in the CVS repository but It is in release-3-4

15.) couldn't find jpname_

[tforest@daq1 ced]$ make g77 \ -O2 -m486 -fno-automatic -finit-local-zero -ffixed-line-length-none -fno-second-underscore \ /home/tforest/src/CLAS/lib/LinuxRH4/ced.o -L/home/tforest/src/CLAS/slib/LinuxRH4 -L/home/tforest/src/CLAS/lib/LinuxRH4 -L/home/tforest/src/CLAS/lib/Linux -L/home/tforest/src/cernlib/2005/lib -L/LinuxRH4 -L/usr/X11R6/lib -lced -lced -lHv -ldc -lrecutl -lc_bos_io -lmapmanager -lfputil -lbos -lfpack -lc_bos_io -lclasutil -lpacklib -lpatches -lHv -lXm -lXt -lX11 -lm -lXext -lXaw -lXp \ -o /home/tforest/src/CLAS/bin/LinuxRH4/ced /home/tforest/src/CLAS/lib/LinuxRH4/libHv.a(Hv_print.o)(.text+0x6bd): In function `Hv_PrinterSetup':

warning: the use of `tmpnam' is dangerous, better use `mkstemp'

/home/tforest/src/CLAS/lib/LinuxRH4/libced.a(evdump.o)(.text+0x1271): In function `DumpMCINBank':

undefined reference to `jpname_'

/home/tforest/src/CLAS/lib/LinuxRH4/libced.a(evdump.o)(.text+0x1465): In function `DumpMCTKBank':

undefined reference to `jpname_'

collect2: ld returned 1 exit status make: *** [/home/tforest/src/CLAS/bin/LinuxRH4/ced] Error 1

I commented out the two calls to jpname_

it looked like they are used to read montecarlo files

16.) CED binary was created but it couldn't find a geometry file
17.) CED uses a bunch of files located in the "parms" subdirectory

I copied /group/clas/parms to my local machine

scp -r tforest@ftp.jlab.org:/group/clas/parms ./

CLAS_PARMS to point to /home/tforest/src/CLAS/parm

CED apparently only needs the Maps subdirectory in CPAS_PARMS and the clas.geometry file in CLAS_PARMS.