Installation instructions

To install the simulation, place the tar file in the src/ directory. Untar it:
% pwd
~/src/
% gunzip lct.tar.gz
% tar xvf lct.tar
This places the code in the appropriate places. Not that some routines replace existing ones-- make back up copies before you do anything!

First, you must edit the file muon/mubody/m_initg_csc.F. This file is the one that contains all the startup information for the LCT simulation. For example, it tells the LCT simulation how many strips there are in a given chamber. It also has a hard-coded path to the pattern tables. If there's a better way to do it, let me know!) So, you must edit the file to reflect the location of your version of CMSIM. Here's what they are for my installation at Florida:

      filename_ram_ctd(1) ='/export/cms/cms/cmsim/cmsim/cms113.benn/'//
     &'src/muon/mcpp/pat/ctd_lo'
      filename_ram_ctd(2) ='/export/cms/cms/cmsim/cmsim/cms113.benn/'//
     &'src/muon/mcpp/pat/ctd_hi'
      filename_ram_and(1) ='/export/cms/cms/cmsim/cmsim/cms113.benn/'//
     &'src/muon/mcpp/pat/and'

      pat_dir_name=
     &'/export/cms/cms/cmsim/cmsim/cms113.benn/src/muon/mcpp/pat'

These strings point directly to the locations of the pattern tables. So, to change them for your machine, you need to put in the correct path up to the src directory part. Once that's done, then you can move on to the next step.

Next, compile the libraries. First, re-compile the muon library:
% pwd
~/src/
% cd muon
% libbuild -L $CMS_LIBS
Now compile the new code into the library mcpp:
% pwd
~/src/muon/
% cd mcpp
$ libbuild -L $CMS_LIBS
Finally, compile the executable:
% pwd
~src/muon/mcpp/
% cd ../../
% cmsbuild -module mcpp
The flag, -module mcpp, is needed to include this code in the executable. Once it's officially included in CMSIM it won't be necessary.

Benn Tannenbaum (benn@physics.ucla.edu)
last updated 8 April 1999