, view all tags

Installing Musun on NPL machines.

Some installation material available online at: www.npl.illinois.edu/cgi-bin/twiki/bin/view/Main/AnalysisSoftwareInstructions

Here are some steps you should follow to install musun software from scratch to your NPL machine.

The default paths for installation put the directories daq/ mu/ and installation/ directly in your home directory. If you wish to create a separate directory to contain these, such as musun/daq/, musun/mu/, musun/installation/, you will need to pay attention to the environment variables and a few lines in the makefiles.
For example, you should use the env variable "export MU=$HOME/musun/mu/work", and the makefile for mu (mu/work/Makefile) has a few library paths like
"UNCOMPRESS_LIB = ../compress -L$(HOME)/installation/md5-lib/ -lmd5"
that you must change to
"UNCOMPRESS_LIB = ../compress -L$(HOME)/musun/installation/md5-lib/ -lmd5"

  • Java is already installed on NPL machines. But you need to install JavaCC. Crate installation folder on your home directory and copy javacc-4.0 (( from NPL:home/kizilgul/installation/ )) into your installation directory. In this directory

> tar -zxvf javacc-4.0.tar.gz

  • Add/Change these in your .bashrc file.

export MTA=$HOME/mu/src/uiuc/macros/EventTree
export MU=$HOME/mu/work
export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun
export JJTREE_HOME=$HOME/installation/javacc-4.0/bin

  • If you dont have CVS (( cvs checkout CVSROOT )). Then add these in your .bashrc file.

CVSROOT=(your npl login name)@login.npl.uiuc.edu:/site/npl/musun/cvsroot/
export CVSROOT
export CVS_RSH=ssh;

  • Get midas software from CVS and add these lines to your .bashrc file

> cvs co daq

export MIDAS_ROOT=$HOME/daq/midas
export MIDAS_EXPTAB=$HOME/odb/exptab
export MIDAS_EXPT_NAME=musun

  • run make in daq/midas directory

> make

  • Get musun software from CVS,

> cvs co mu

  • copy master.odb from my directory (/home/kizilgul/mu/odb/master.odb) --has some little changes for musun-- go to mu/odb and enter odbedit than load master.odb
> odbedit
odb > load master.odb

  • Now go to mu/mql directory and

> mv JavaCharStream.java JavaCharStream.obsolete

> make clean

> make

  • Run make in mu/compress/. A common error is related to 64-bit vs 32-bit systems. If you are running 64-bit linux, change the lines simlar to the following in the mu/compress/Makefile.

$(CXX) -o mucap_optimize mucap_optimize.o -L$(MIDAS_HOME)/linux 64/lib -lmidas -L. -lmucap_compress -lz -lpthread -lutil

  • Create a folder in installation/md5/lib and copy everything in /home/kizilgul/installation/md5-lib
  • Do these changes in mu makefile...add these lines, they are commented out in NCSA version.

CC = cc
CXX = gcc

  • Run make in mu/work/. Pay attention to the aformentioned directory structure issues if you get errors.

Running mu Level Analysis

Input data files (run0XXXX.mid) are processed in miscellaneous modules and Musun Event trees are created (mutreerun0XXXX.root), some histograms (murun0XXXX.root) are also created along with trees. Tree output will be used in mta analysis.

Note: Data files are originally have no '0' (zero) at the numbering, so you should add '0' manually to your files, like

> mv run6147.mid run06147.mid

I have copied some files in /data/npluser2/kizilgul/ directory

./mu -i /data/npluser2/kizilgul/run02017.mid -o /data/npluser2/kizilgul/mu_processed/murun02017.root -T /data/npluser2/kizilgul/mu_processed/tree/mutreerun02017.root -n 20 50

-i [mid file] -o [output file] -T [tree file] -n [range,not necessary]

The musun event structure is described here.

TMusunEvent Structure

TMusunEvent object stores Muons, Electrons, TPC FADC Pulses, WFD Gondola Pulses, TPC WFD pulses and Neutron pulses. TMusunEvent objects are created, sorted by incoming Muons and then saved into root trees (see TEventTreeAnalysis.cpp).

FADC Analysis

Raw FADC data is collected and processed inMFadcProcessRaw.cpp file. This file also includes the pulse finder. FDCR arrays are filled with pulses found here(with all bank samples). These arrays are then saved into trees with TMusunFadcPulse object structure (see TEventTreeAnalysis.cpp.

WFD Analysis

text here

Neutron Analysis

text here

MU Event Display

Mu Event display consist of two frames. One frame shows fadc bank with pulses and other frame shows fadc pulses on the TPC pad plane (see elog:89). Mu Event Display structure is described in elog:86.

Running mta Level Analysis

MTA analysis uses output tree of mu analysis and processes. The output file is saved in mtarun0XXXX.root format.

./mta -i /data/npluser2/kizilgul/mu_processed/tree/mutreerun06143.root -o /data/npluser2/kizilgul/mu_processed/tree/mta/mtarun06143.root

-i [input tree] -o [output file] -n [range]

The musun mta event structure is described here.

TMusunMTAEven Structure

text here

TPC Tracks

text here


text here

MTA Event Display

Mta Event display described here.

Edit | Attach | Watch | Print version | History: r11 | r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r4 - 2010-03-22 - MichaelMurray
  • 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