Tags:
, view all tags
-- PeterWinter - 18 Dec 2007

This page will describe in the future all necessary steps, to setup the various analysis tools. -- BrendanKiburg - 18 Dec 2007

-- PeterWinter - 09 Jan 2008

Setting your environment variables

In the following sections, you will often have to set some environment variables and/or change the PATH. Depending on the system you have to do this in different locations:
  • On your own cluster, PC, laptop etc. you can set them in your ~/.bashrc (or equivalent like ~/.tcshrc). To effect the changes execute
    > source ~/.bashrc
    Please refer to your shell manual for details.
  • On NCSA, you edit the ~/.soft file and execute
    > resoft 
    Please visit the softEnv manual at NCSA for more details.

Have Root installed:

If your system has Root installed, go on to the next section. If not (like on tungsten.ncsa.uiuc.edu), then install it locally:
  1. Downloaded source tar for root versions 5.08 from root.cern.ch
  2. tar -xzvf root_v5.08.00.source.tar.gz
  3. cd root
  4. > ./configure linuxicc --enable-shared --enable-thread --disable-ssl
    > make
    > make install
  5. Set $ROOTSYS to your current working version of Root (e.g. ROOTSYS = /u/ac/bkiburg/root)
  6. Add the Root libraries to LD_LIBRARY_PATH: LD_LIBRARY_PATH += $ROOTSYS/lib
  7. Add Root to your path: PATH += $ROOTSYS/bin

This can easily take several hours to build depending on your system, so go grab a coffee. If you are trying to install versions later than 5.08.00, you may have difficulty with the --enable-shared and --enable-thread options.

Java 2 SDK:

On NCSA:
  1. Copy j2sdk-1_4_2_09-linux-i586.bin to home dir from /u/ac/bkiburg/installs/
  2. Run j2sdk-1_4_2_09-linux-i586.bin file in the directory where you would like j2sdk installed.
  3. Set JAVA_HOME = $HOME/j2sdk.4.2_09 and add the java executables to your path: PATH += $JAVA_HOME/bin

On your own cluster, PC, laptop etc. install J2SDK:

  • You can download it from the web or ask your administrator to do so if you don't have permissions to install that.
  • Set the JAVA_HOME variable to the path where the J2SDK package was installed (e.g. JAVA_HOME = $HOME/j2sdk.4.2_09) and add the java executables to your path: PATH += $JAVA_HOME/bin

JavaCC (for mql compilation later):

  • If JavaCC is installed on your system, skip this and the next step and just set the variable in the last step. Otherwise, download it (try this java link). On NCSA you can also directly copy the javacc-4.0.tar.gz file from ~bkiburg/installs/ or ~pwinter/installation.
  • Untar (tar -zxvf javacc-4.0.tar.gz) the file in the directory where you like to have JavaCC installed.
  • Set the JJTREE to where JavaCC is installed (e.g. JJTREE = $HOME/javacc-4.0) and add the binaries to your path: PATH += $JJTREE/bin

CVS software

  • For the MIDAS and analysis software installation, you will have to get access to the CVS to retrieve the source code. Please check the Instructions to get this access.
  • Once you have that you can browse the CVS repository to see what we have in CVS. Use your NPL username and password to login.

Midas:

Even if you have MIDAS already installe on your system, you should probably recompile it with the mana.c from the mu/misc/ to avoid checksum errors (see one of the following steps).

  1. If you don't have the MIDAS sources yet you can either get them from the web or you check out the daq/ repository from CVS: > cvs co daq
  2. To compile MIDAS, ROOT must be installed first (and ROOTSYS defined). See section above to do that.
  3. Check out the mu/ repository from CVS: > cvs co mu
  4. Copy mana.c from mu/src/mana.c to avoid checksum error when analyzing skimmed data.
  5. Check the Makefile in daq/midas/ to use cc as compiler (not icc)
  6. Run make in daq/midas/. Before, you might need to adapt the Makefile a bit to set some library paths correctly. Especially, you probably need to change the path MYSQL_LIBS for the libmysqlclient.a to match your system. If this library is not installed, you have to install it first (on my Ubuntu laptop, I had to install the package libmysqlclient15-dev for that).
  7. Set your MIDAS paths to point to a working version
    • MIDAS_ROOT has to link to the directory where you just compiled MIDAS (e.g. MIDAS_ROOT=/$HOME/daq/midas/)
    • MIDAS_HOME = $MIDAS_ROOT
    • LD_LIBRARY_PATH += $MIDAS_ROOT/linux/lib
    • PATH += $MIDAS_ROOT/linux/bin
  8. Set your MIDAS_DIR for a place you want associated MIDAS files (SHMS) to be located (e.g. MIDAS_DIR=$HOME/mucap/mu/work)

Compiling the tree generating analysis: ./mu

  1. You need the mu/ directory from CVS, as well as MIDAS installed
  2. First compile the mql part in the mu repository by:
    > cd mu/mql
    > mv JavaCharStream.java JavaCharStream.obsolete
    > make clean
    > make
  3. Compile the compress part in the mu repository by:
    > cd mu/compress
    > make clean
    > make
    This might actually end up with some error messages (depending on your system) but normally that's not a problem. It's just important that the libmucap_compress.a was generated.
  4. Although it's up to you, it's a usual habit that we compile the tree generating software ./mu in the mu/work directory. Here you will also have the Makefile to do so. To compile go to this directory (e.g. >cd $HOME/mu/work) and run
    > make
  5. If you're lucky, you'll end up without an error and the compiled executable ./mu as well as the library libMucapEvent.so. If you end up with error message, please have a look at the ideas at the end of this section.
  6. Add the path to the compiled libMucapEvent.so to your LD_LIBRARY_PATH (e.g. LD_LIBRARY_PATH+=$HOME/mu/work)
  7. If you want to add new modules to the software, you have to add it to the mu/work/MODULES file. Only modules that are in this file will be compiled into ./mu and hence only they can be ran later on. Since you can later on switch modules individually on and off in the ODB (see below) it doesn't harm to have more modules than necessary in here. Any changes to this file require to recompile (i.e. > make clean; make) before it affects ./mu.

You were unlucky and ./mu didn't compile right away. Here are some ideas:

  • Check that the different include and library paths in the mu/work/Makefile are correct. Also check that the compiler is the one you have on your system (cc, gcc, g++, icc etc.)
  • Double check that all the environment variables in the above steps were set correctly
  • If you have a code error and can't figure out what's giong on, contact UIUC for help
  • ....

======== IN PROGRESS =========

Compiling the tree processing analysis: ./mta

  • Edit Makefile: Adapt $UIUCDIR

Running the tree generating analysis: ./mu

Running the tree processing analysis: ./mta

ODB settings

Edit | Attach | Watch | Print version | History: r25 | r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r6 - 2008-01-10 - PeterWinter
 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback