How to install and run Moore


1. Copy and edit the cmt requirement file in $HOME, the value of the following variables has to be modified:

macro ATLAS_RELEASE  "X.Y.Z"                  where X.Y.Z is the wanted Atlas release
path_remove  CMTPATH      yourpath
path_prepend CMTPATH      yourpath               yourpath is the your development area


2.  Set up CMT version (ONCE except if CMT version is changed)
Recipe:   in $HOME

source /afs/cern.ch/sw/contrib/CMT/v1r12p20020605/mgr/setup.[c]sh
cmt config


3. Set up CMT (at each login and each time that $HOME/requirements is changed)
Recipe: in $HOME

source setup.[c]sh
4. Import the packages
Recipe: in yourpath of $CMTPATH
cmt co TestRelease
cmt co MuonSpectrometer/Moore
cmt co MuonSpectrometer/Moore/MooStatistics
cmt co MuonSpectrometer/Moore/MooAlgs
cmt co MuonSpectrometer/Moore/MooEvent
note: when the version is not specified you get the HEAD version

5. Configure the packages and compile
Recipe:

 
cd (yourpath)/MuonSpectrometer/Moore/Moore-00-00-19/cmt
edit the requirements file, put a # in front of the line:
 
use MooiPat       MooiPat-00-00-19       MuonSpectrometer/Moore
then
cd  (yourpath)/TestRelease/TestRelease-*/cmt
cp  ../../../MuonSpectrometer/Moore/Moore-*/share/TestRelease_requirements   requirements
cmt broadcast cmt config
source setup.[c]sh
cmt broadcast gmake
6. Copy the necessary files to run athena
Recipe:
cd  (yourpath)/TestRelease/TestRelease-*/run
ln -s /afs/cern.ch/atlas/offline/data/bmagatlas02.data fieldmap.dat
stagein -M /castor/cern.ch/atlas/tape/Y01345/Y01345.5.al mu20Gev
ln -sf mu20Gev ZEBRA.P
  note: you need to link the input data file, mu20Gev is an example using the single muon 20 GeV pt TDR data

7.  Run Moore in Athena framework
Recipe:  copy  Test_jobOptions.txt    (MooEvent-MooAlgs version)

 
cd  (yourpath)/TestRelease/TestRelease-*/run
athena Test_jobOptions.txt
see  also http://atlassw1.phy.bnl.gov/lxr/source/atlas/MuonSpectrometer/Moore/README